]> Pileus Git - ~andy/gtk/blob - tests/testgtk.css
stylecontext: Do invalidation on first resize container
[~andy/gtk] / tests / testgtk.css
1 /* testgtk2.css sets all the buttons in the main window to blue by default */
2 @import url("testgtk2.css");
3
4 @binding-set entry-bindings {
5     bind "<alt>s" { "move-cursor" (visual-positions, 3, 0) };
6     bind "<alt>a" { "move-cursor" (visual-positions, -3, 0) };
7 }
8
9 * {
10     -GtkButton-child-displacement-x: 1;
11     -GtkButton-child-displacement-y: 1;
12
13     -GtkToolbar-space-size: 10;
14     -GtkToolbar-space-style: line;
15     -GtkToolbar-button-relief: none;
16     -GtkButtonBox-child-min-width: 0;
17     -GtkButtonBox-child-min-height: 0;
18     -GtkArrow-arrow-scaling: 1.0;
19     -GtkEntry-invisible-char: 10046;
20
21     font: Sans 12;
22
23     -Gtest-foo: 47;
24     -Gtest-bar: 47;
25 }
26
27 GtkLabel:selected {
28     background-color: gray;
29 }
30
31 GtkLabel:prelight {
32     background-color: mix (#a0a0a0, rgb (75%, 200, 0%), 0.9);
33 }
34
35 /* override testgtk2, introduce the green color in the button list */
36 #main_window GtkScrolledWindow GtkButton:prelight {
37     background-color: rgb (0%, 75%, 0);
38 }
39
40 GtkEntry {
41     gtk-key-bindings: entry-bindings;
42 }