wip: support desktop portal color-scheme, and accent variables

This commit is contained in:
Ashley Wulber 2024-03-01 20:21:52 -05:00 committed by Ashley Wulber
parent c390b2614d
commit 06b46f455b
6 changed files with 107 additions and 34 deletions

View file

@ -511,6 +511,24 @@ where
iced::Command::none()
}
/// Respond to a system theme change
fn system_theme_update(
&mut self,
keys: &[&'static str],
new_theme: &cosmic_theme::Theme,
) -> iced::Command<Message<Self::Message>> {
iced::Command::none()
}
/// Respond to a system theme mode change
fn system_theme_mode_update(
&mut self,
keys: &[&'static str],
new_theme: &cosmic_theme::ThemeMode,
) -> iced::Command<Message<Self::Message>> {
iced::Command::none()
}
/// Constructs the view for the main window.
fn view(&self) -> Element<Self::Message>;