mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
testgtk: fix css
This commit is contained in:
parent
ac31a00dcf
commit
b9a304cf6f
@ -9443,7 +9443,8 @@ main (int argc, char *argv[])
|
|||||||
gtk_css_provider_load_from_data (memory_provider,
|
gtk_css_provider_load_from_data (memory_provider,
|
||||||
"#testgtk-version-label {\n"
|
"#testgtk-version-label {\n"
|
||||||
" color: #f00;\n"
|
" color: #f00;\n"
|
||||||
" font: Sans 18;\n"
|
" font-family: Sans;\n"
|
||||||
|
" font-size: 18px;\n"
|
||||||
"}",
|
"}",
|
||||||
-1, NULL);
|
-1, NULL);
|
||||||
gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (memory_provider),
|
gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (memory_provider),
|
||||||
|
@ -7,9 +7,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
-GtkButton-child-displacement-x: 1;
|
|
||||||
-GtkButton-child-displacement-y: 1;
|
|
||||||
|
|
||||||
-GtkToolbar-space-size: 10;
|
-GtkToolbar-space-size: 10;
|
||||||
-GtkToolbar-space-style: line;
|
-GtkToolbar-space-style: line;
|
||||||
-GtkToolbar-button-relief: none;
|
-GtkToolbar-button-relief: none;
|
||||||
@ -18,25 +15,26 @@
|
|||||||
-GtkArrow-arrow-scaling: 1.0;
|
-GtkArrow-arrow-scaling: 1.0;
|
||||||
-GtkEntry-invisible-char: 10046;
|
-GtkEntry-invisible-char: 10046;
|
||||||
|
|
||||||
font: Sans 12;
|
font-family: Sans;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
-Gtest-foo: 47;
|
-Gtest-foo: 47;
|
||||||
-Gtest-bar: 47;
|
-Gtest-bar: 47;
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkLabel:selected {
|
label:selected {
|
||||||
background-color: gray;
|
background-color: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkLabel:prelight {
|
label:hover {
|
||||||
background-color: mix (#a0a0a0, rgb (75%, 200, 0%), 0.9);
|
background-color: mix (#a0a0a0, rgb (75%, 200, 0%), 0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* override testgtk2, introduce the green color in the button list */
|
/* override testgtk2, introduce the green color in the button list */
|
||||||
#main_window GtkScrolledWindow GtkButton:prelight {
|
#main_window scrolledwindow button:hover {
|
||||||
background-color: rgb (0%, 75%, 0);
|
background-color: rgb (0%, 75%, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkEntry {
|
entry {
|
||||||
gtk-key-bindings: entry-bindings;
|
-gtk-key-bindings: entry-bindings;
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
/* this file gets included from testgtk.css */
|
/* this file gets included from testgtk.css */
|
||||||
|
|
||||||
#main_window GtkButton {
|
#main_window button {
|
||||||
font: Monospace 10;
|
font-family: Monospace;
|
||||||
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main_window GtkButton:hover {
|
#main_window button:hover {
|
||||||
background-color: rgba(0%, 0%, 75%, 0.1);
|
background-color: rgba(0%, 0%, 75%, 0.1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user