summaryrefslogtreecommitdiff
path: root/tests/testgtk.css
blob: f5e8694f12704c68095ecb7139ac1d5163b194a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* testgtk2.css sets all the buttons in the main window to blue by default */
@import url("testgtk2.css");

@binding-set entry-bindings {
    bind "<alt>s" { "move-cursor" (visual-positions, 3, 0) };
    bind "<alt>a" { "move-cursor" (visual-positions, -3, 0) };
}

* {
    -GtkButton-child-displacement-x: 1;
    -GtkButton-child-displacement-y: 1;

    -GtkToolbar-space-size: 10;
    -GtkToolbar-space-style: line;
    -GtkToolbar-button-relief: none;
    -GtkButtonBox-child-min-width: 0;
    -GtkButtonBox-child-min-height: 0;
    -GtkArrow-arrow-scaling: 1.0;
    -GtkEntry-invisible-char: 10046;

    font: Sans 12;

    -Gtest-foo: 47;
    -Gtest-bar: 47;
}

GtkLabel:selected {
    background-color: gray;
}

GtkLabel:prelight {
    background-color: mix (#a0a0a0, rgb (75%, 200, 0%), 0.9);
}

/* override testgtk2, introduce the green color in the button list */
#main_window GtkScrolledWindow GtkButton:prelight {
    background-color: rgb (0%, 75%, 0);
}

GtkEntry {
    gtk-key-bindings: entry-bindings;
}