mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 02:14:13 -05:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user