diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2010-11-13 21:19:41 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:07 +0100 |
commit | 37f9f491d29620898bbfc146ab1bd7e7c8c4596d (patch) | |
tree | 923f3e0baf10106e1203ddcf0fec5c081444aa78 /tests/testgtk.css | |
parent | 9ffaf1122d7598415bed9fd35b4e436b1386d538 (diff) | |
download | gtk+-37f9f491d29620898bbfc146ab1bd7e7c8c4596d.tar.gz |
Make testgtk load CSS for custom styling.
Diffstat (limited to 'tests/testgtk.css')
-rw-r--r-- | tests/testgtk.css | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/testgtk.css b/tests/testgtk.css new file mode 100644 index 0000000000..9af02572c2 --- /dev/null +++ b/tests/testgtk.css @@ -0,0 +1,33 @@ +/* testgtk2.css sets all the buttons in the main window to blue by default */ +@import url(testgtk2.css); + +* { + -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); +} |