[Github-comments] [geany/geany] Font size is bigger when the search field is red (#1384)

jamdev notifications at xxxxx
Mon Feb 13 16:30:01 UTC 2017


Would it be an acceptable fix to perform the checking for windows in the ui_utils.c file and adding a new style for windows in the gtkrc. 

I have modified ui_utils.c which defines  ui_set_search_entry_background at line 1100 to check for OS:

#ifdef G_OS_WIN32
        gtk_widget_set_name(widget, success ? NULL : "win-geany-search-entry-no-match");
    #else
       gtk_widget_set_name(widget, success ? NULL : "geany-search-entry-no-match");
    #endif

and then made the corresponding changes to the gtkrc file:

# set windows search to prevent 
widget "GeanyDialogSearch.*.win-geany-search-entry-no-match" style "geany-monospace"

# set red background for GtkEntries on windows showing unmatched searches
style "win-geany-search-entry-no-match-style" {
	base[NORMAL] = "#ffff66666666"
	text[NORMAL] = "#ffffffffffff"
}
widget "*.win-geany-search-entry-no-match" style "win-geany-search-entry-no-match-style"

This seems to preserve the Adwaita workaround while fixing the issue on windows.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1384#issuecomment-279443705
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170213/a016f467/attachment.html>


More information about the Github-comments mailing list