Name | Description |
---|---|
ActiveBorder |
Color of the active window's border |
ActiveCaption |
Background color of the active window's title bar |
ActiveCaptionText |
Color of the text in the active window's title bar |
AppWorkspace |
Color of the application workspace |
Control |
Face color of a three-dimensional display element |
ControlDark |
Shadow color of a three-dimensional display element |
ControlDarkDark |
Dark shadow color of a three-dimensional display element |
ControlLight |
Light color of a three-dimensional display element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Windows; | |
using System.Windows.Controls; | |
public class AutoGrid : Grid | |
{ | |
protected override void OnVisualChildrenChanged(DependencyObject visualAdded, DependencyObject visualRemoved) | |
{ | |
base.OnVisualChildrenChanged(visualAdded, visualRemoved); | |
SetCells(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<Style TargetType="CheckBox"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type CheckBox}"> | |
<Border Padding="0,6,0,5"> | |
<Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set terminal png size 640,480 | |
set output 'gradient.png' | |
set xrange [-5:5] | |
set yrange [-5:5] | |
set cbrange [0:1] | |
unset colorbox | |
unset key | |
set palette gray negative | |
set object 1 rectangle from 1,-10 to 10,10 behind fillcolor rgb 'black' fillstyle noborder | |
plot '< python gradient.py -x -1 1 -10 10 64' with image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
class IntRangeArg: | |
def __init__(self, start=None, stop=None): | |
assert start is None or stop is None or start < stop | |
self.start = start | |
self.stop = stop | |
def __contains__(self, value): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const LM = imports.ui.main.layoutManager; | |
let _updateHotCorners; | |
function _noop() { } | |
function _destroyHotCorners() { | |
LM.hotCorners.forEach(corner => { | |
if (corner) { | |
corner.destroy(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Input; | |
public partial class App : Application | |
{ | |
protected override void OnStartup(StartupEventArgs e) | |
{ | |
base.OnStartup(e); | |
RegisterClassHandlers(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Window x:Class="MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<CheckBox IsChecked="{Binding A}"> | |
<i:Interaction.Behaviors> | |
<local:UncheckOnSignalBehavior Signal="{Binding None}" /> | |
</i:Interaction.Behaviors> | |
Option A | |
</CheckBox> | |
<CheckBox IsChecked="{Binding B}"> |
NewerOlder