fix(projects/khora): override user theme event styles

Register Khora component CSS above GTK user-theme priority so generated themes cannot erase event backgrounds and foreground contrast.

Assisted-by: pi (gpt-5.6-sol)
This commit is contained in:
Gabriel Fontes
2026-08-15 16:35:49 -03:00
parent ba52a64c4a
commit c3bf58ba38
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ class KhoraApplication(Adw.Application):
Gtk.StyleContext.add_provider_for_display(
display,
provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION,
Gtk.STYLE_PROVIDER_PRIORITY_USER + 1,
)
def _on_appearance_changed(self, *_args) -> None:
+1 -1
View File
@@ -718,7 +718,7 @@ class KhoraWindow(Adw.ApplicationWindow):
Gtk.StyleContext.add_provider_for_display(
self.get_display(),
provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION,
Gtk.STYLE_PROVIDER_PRIORITY_USER + 1,
)
self._event_color_providers[class_name] = provider
return class_name