Skip to content

Commit

Permalink
Update search entry CSS selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmhewitt committed Sep 15, 2018
1 parent 03f505e commit b72108e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Clipped.MainWindow : Gtk.Dialog {

private const string SEARCH_CSS =
"""
.entry {
.large-search-entry {
font-size: 175%;
}
""";
Expand Down Expand Up @@ -72,7 +72,9 @@ public class Clipped.MainWindow : Gtk.Dialog {
} catch (Error e) {
warning ("Failed to load CSS style for search box: %s", e.message);
}
search_headerbar.get_style_context ().add_provider (font_size_provider, Gtk.STYLE_PROVIDER_PRIORITY_USER);
var style_context = search_headerbar.get_style_context ();
style_context.add_provider (font_size_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
style_context.add_class ("large-search-entry");

var background_provider = new Gtk.CssProvider ();
try {
Expand Down

0 comments on commit b72108e

Please sign in to comment.