Fix custom search entry background on Adwaita 3.20 under GTK2
[geany-mirror.git] / data / geany.gtkrc
blob8e1c0226302db3e3626ed286c70cafd5791b53cf
1 # custom GTK2 style for Geany
3 # make close button on the editor's tabs smaller
4 style "geany-close-tab-button-style" {
5         GtkWidget::focus-padding = 0
6         GtkWidget::focus-line-width = 0
7         xthickness = 0
8         ythickness = 0
10 widget "*.geany-close-tab-button" style "geany-close-tab-button-style"
12 # use monospaced font in search entries for easier reading of regexp (#1907117)
13 style "geany-monospace" {
14         font_name = "Monospace"
16 widget "GeanyDialogSearch.*.GtkEntry" style "geany-monospace"
17 widget "GeanyDialogSearch.*.geany-search-entry-no-match" style "geany-monospace"
19 # set red background for GtkEntries showing unmatched searches
20 style "geany-search-entry-no-match-style" {
21         base[NORMAL] = "#ffff66666666"
22         text[NORMAL] = "#ffffffffffff"
23         # try and remove the entry background image on pixmap engine so that our
24         # background color is visible, and we don't end up with white text on white
25         # background (workaround for Adwaita 3.20).
26         engine "pixmap" {
27                 image {
28                         function = FLAT_BOX
29                         detail   = "entry_bg"
30                 }
31         }
33 widget "*.geany-search-entry-no-match" style "geany-search-entry-no-match-style"
35 # document status colors
36 style "geany-document-status-changed-style" {
37         fg[NORMAL] = "#ffff00000000"
38         fg[ACTIVE] = "#ffff00000000"
40 style "geany-document-status-disk-changed-style" {
41         fg[NORMAL] = "#ffff7fff0000"
42         fg[ACTIVE] = "#ffff7fff0000"
44 style "geany-document-status-readonly-style" {
45         fg[NORMAL] = "#00007fff0000"
46         fg[ACTIVE] = "#00007fff0000"
48 widget "*.geany-document-status-changed" style "geany-document-status-changed-style"
49 widget "*.geany-document-status-disk-changed" style "geany-document-status-disk-changed-style"
50 widget "*.geany-document-status-readonly" style "geany-document-status-readonly-style"
52 # red "Terminal" label when terminal dirty
53 widget "*.geany-terminal-dirty" style "geany-document-status-changed-style"