diff options
author | Fernando Farfan <fernando@endlessm.com> | 2014-07-29 13:25:29 -0600 |
---|---|---|
committer | Fernando Farfan <fernando@endlessm.com> | 2014-07-29 13:25:29 -0600 |
commit | 7c9f24b0b834a41da29d43440b367d9d71a7322f (patch) | |
tree | 17691079265fb036ad8b50a679446c37b6ccb7ab | |
parent | 02dad9727a3922ac724a03c6912823b1fcb1482b (diff) | |
parent | 98145c25d1c82f719eaf4a146e8ae38ddb3a57b8 (diff) |
Merge pull request #1830 from endlessm/sdk/617
Copy system theme for context menu styling
-rw-r--r-- | data/css/endless-widgets.css | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/data/css/endless-widgets.css b/data/css/endless-widgets.css index 9d9b56f..cc3bcdc 100644 --- a/data/css/endless-widgets.css +++ b/data/css/endless-widgets.css @@ -162,3 +162,38 @@ EosWindow { .scrollbar { -GtkScrollbar-min-slider-length: 28; } + +/* + * Themeing for context menus, to get Adwaita look + * FIXME: Really gross to be duplicating all this Adwaita theme here. If the + * :not selector is ever supported in gtk css, just :not(.context-menu) and + * children in reset.css and drop all of this. + */ +@define-color endless_menu_fg_color #2e3436; +@define-color endless_menu_bg_color shade (#ededed, 1.1); + +.context-menu { + font: initial; + color: @endless_menu_fg_color; + background-color: @endless_menu_bg_color; +} + +.context-menu .menuitem { + padding: 4px; + -GtkMenuItem-arrow-scaling: 0.4; +} + +.context-menu .menuitem:active, +.context-menu .menuitem:hover { + color: #ffffff; + background-color: #4a90d9; +} + +.context-menu .menuitem *:insensitive { + color: mix (@endless_menu_fg_color, @endless_menu_bg_color, 0.6); +} + +.context-menu .menuitem.separator { + color: mix (@endless_menu_fg_color, @endless_menu_bg_color, 0.9); + -GtkMenuItem-horizontal-padding: 0; +} |