aboutsummaryrefslogtreecommitdiff
path: root/libtopmenu-client
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-12-28 17:48:38 +0100
committerJavier <dev.git@javispedro.com>2014-12-28 17:48:38 +0100
commit7f094e7ff2cf5a3bf1406c6bbac12519f820f360 (patch)
treed61d7936b013eb029c5b34fd9014b3ff41d24cfd /libtopmenu-client
parent5783a915aa46e01d92948dafa7922b685d9cfdd9 (diff)
downloadtopmenu-gtk-7f094e7ff2cf5a3bf1406c6bbac12519f820f360.tar.gz
topmenu-gtk-7f094e7ff2cf5a3bf1406c6bbac12519f820f360.zip
reduce the amount of hardcoded style
you will now need to change your theme to account for the "TopMenuAppMenuBar" widget class.
Diffstat (limited to 'libtopmenu-client')
-rw-r--r--libtopmenu-client/topmenu-appmenubar.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/libtopmenu-client/topmenu-appmenubar.c b/libtopmenu-client/topmenu-appmenubar.c
index ae4a467..b3769a4 100644
--- a/libtopmenu-client/topmenu-appmenubar.c
+++ b/libtopmenu-client/topmenu-appmenubar.c
@@ -85,21 +85,10 @@ static void topmenu_app_menu_bar_init(TopMenuAppMenuBar *self)
GtkCssProvider *provider = gtk_css_provider_new();
GtkStyleContext *style_context = gtk_widget_get_style_context(GTK_WIDGET(self));
static const char *css =
- "TopMenuAppMenuBar {\n"
- " box-shadow: none;\n"
- " padding: 0;\n"
- " background-color: @os_chrome_bg_color;\n"
- " background-image: none;\n"
- " color: @os_chrome_fg_color;\n"
- "}\n"
- "\n"
- "TopMenuAppMenuBar .menu .menuitem *:active {\n"
- " color: @theme_text_color;\n"
- "}\n"
- "\n"
- "TopMenuAppMenuBar .menu .menuitem *:selected {\n"
- " color: @theme_selected_fg_color;\n"
- "}\n";
+ "TopMenuAppMenuBar {\n"
+ " box-shadow: none;\n"
+ " padding: 0;\n"
+ "}\n";
if (gtk_css_provider_load_from_data(provider, css, -1, &error)) {
gtk_style_context_add_provider(style_context,
GTK_STYLE_PROVIDER(provider),