From 23ef01ede828ffd565ff1acf6a025fb193deb591 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Mon, 11 Feb 2013 03:20:49 +0100 Subject: [PATCH] Allow user gtkrc to override our gtkrc styles This allows the user to override the custom styles we apply to some widgets, like e.g. the unmatched search entry colors. We use the :theme priority rather than the :application one because it seems that the :application one cannot override theme settings, even if it matches against a name the theme don't have rules for but have rules for the class of that widget. This prevents a theme from overriding our styles, but it's unlikely a theme actually provide some specific stuff for us anyway. --- data/geany.gtkrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/geany.gtkrc b/data/geany.gtkrc index 4e66d72f..0624ed45 100644 --- a/data/geany.gtkrc +++ b/data/geany.gtkrc @@ -7,18 +7,18 @@ style "geany-close-tab-button-style" { xthickness = 0 ythickness = 0 } -widget "*.geany-close-tab-button" style "geany-close-tab-button-style" +widget "*.geany-close-tab-button" style:theme "geany-close-tab-button-style" # use monospaced font in search entries for easier reading of regexp (#1907117) style "geany-monospace" { font_name = "Monospace" } -widget "GeanyDialogSearch.*.GtkEntry" style "geany-monospace" -widget "GeanyDialogSearch.*.geany-search-entry-no-match" style "geany-monospace" +widget "GeanyDialogSearch.*.GtkEntry" style:theme "geany-monospace" +widget "GeanyDialogSearch.*.geany-search-entry-no-match" style:theme "geany-monospace" # set red background for GtkEntries showing unmatched searches style "geany-search-entry-no-match-style" { base[NORMAL] = "#ffff66666666" text[NORMAL] = "#ffffffffffff" } -widget "*.geany-search-entry-no-match" style "geany-search-entry-no-match-style" +widget "*.geany-search-entry-no-match" style:theme "geany-search-entry-no-match-style"