fix: use GTK_STYLE_PROVIDER_PRIORITY_APPLICATION
This commit is contained in:
parent
eb705533b5
commit
d48eebd4d3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue