Set window theme to match color scheme of active theme

This commit is contained in:
Héctor Ramón Jiménez 2025-09-08 10:12:04 +02:00
parent e92c87061d
commit 74425d5cb1
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 40 additions and 6 deletions

View file

@ -634,6 +634,10 @@ async fn run_instance<P>(
system_theme,
);
window.raw.set_theme(conversion::window_theme(
window.state.theme_mode(),
));
debug::theme_changed(|| {
if is_first {
theme::Base::palette(window.state.theme())