fix: use GTK_STYLE_PROVIDER_PRIORITY_APPLICATION

This commit is contained in:
Alex 2022-11-03 14:10:18 +01:00
parent eb705533b5
commit d48eebd4d3
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ AButton::AButton(const Json::Value& config, const std::string& name, const std::
/* https://github.com/Alexays/Waybar/issues/1731 */
auto css = Gtk::CssProvider::create();
css->load_from_data("button { all: unset; min-width: 0; }");
button_.get_style_context()->add_provider(css, GTK_STYLE_PROVIDER_PRIORITY_USER);
button_.get_style_context()->add_provider(css, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
if (!id.empty()) {
button_.get_style_context()->add_class(id);