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.
This commit is contained in:
Colomban Wendling 2013-02-11 03:20:49 +01:00
parent dbd6d12160
commit 23ef01ede8

View File

@ -7,18 +7,18 @@ style "geany-close-tab-button-style" {
xthickness = 0 xthickness = 0
ythickness = 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) # use monospaced font in search entries for easier reading of regexp (#1907117)
style "geany-monospace" { style "geany-monospace" {
font_name = "Monospace" font_name = "Monospace"
} }
widget "GeanyDialogSearch.*.GtkEntry" style "geany-monospace" widget "GeanyDialogSearch.*.GtkEntry" style:theme "geany-monospace"
widget "GeanyDialogSearch.*.geany-search-entry-no-match" style "geany-monospace" widget "GeanyDialogSearch.*.geany-search-entry-no-match" style:theme "geany-monospace"
# set red background for GtkEntries showing unmatched searches # set red background for GtkEntries showing unmatched searches
style "geany-search-entry-no-match-style" { style "geany-search-entry-no-match-style" {
base[NORMAL] = "#ffff66666666" base[NORMAL] = "#ffff66666666"
text[NORMAL] = "#ffffffffffff" 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"