add some workarounds/fixes for css stuff

adds a separate css file registered with a lower priority to allow for application-wide css while allowing the main css file to override more general selectors
This commit is contained in:
ouwou
2021-05-28 04:04:06 -04:00
parent 484e21e693
commit c43b39fe70
4 changed files with 121 additions and 89 deletions

View File

@@ -128,5 +128,6 @@ private:
mutable std::mutex m_mutex;
Glib::RefPtr<Gtk::Application> m_gtk_app;
Glib::RefPtr<Gtk::CssProvider> m_css_provider;
std::unique_ptr<MainWindow> m_main_window; // wah wah cant create a gtkstylecontext fuck you
Glib::RefPtr<Gtk::CssProvider> m_css_low_provider; // registered with a lower priority to allow better customization
std::unique_ptr<MainWindow> m_main_window; // wah wah cant create a gtkstylecontext fuck you
};