fix(appearance): window hint
This commit is contained in:
parent
f312513ffb
commit
22748bb938
3 changed files with 2 additions and 3 deletions
|
|
@ -491,7 +491,7 @@ impl Page {
|
|||
}
|
||||
|
||||
Message::UseDefaultWindowHint(v) => {
|
||||
if !v {
|
||||
if v {
|
||||
let _ = self
|
||||
.theme_manager
|
||||
.selected_customizer_mut()
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ pub fn section() -> Section<crate::pages::Message> {
|
|||
.add(
|
||||
settings::item::builder(&descriptions[label_keys["window_hint_toggle"]])
|
||||
.toggler(
|
||||
theme_manager.custom_window_hint().is_some(),
|
||||
theme_manager.custom_window_hint().is_none(),
|
||||
Message::UseDefaultWindowHint,
|
||||
),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -189,7 +189,6 @@ impl Manager {
|
|||
cosmic::Task::future(async move {
|
||||
if let Some(config) = config {
|
||||
let new_theme = builder.build();
|
||||
|
||||
theme_transaction!(config, current_theme, new_theme, {
|
||||
accent;
|
||||
accent_text;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue