sidebar: style disabled state for buttons

Also no silent fail for removing network
This commit is contained in:
2 * r + 2 * t 2025-03-26 20:25:15 +11:00
parent 5a1ea91e35
commit 1afe054f7a
2 changed files with 9 additions and 1 deletions

View file

@ -342,6 +342,10 @@
&:active {
background-color: color.change(scheme.$overlay0, $alpha: 0.5);
}
&:disabled {
color: scheme.$subtext0;
}
}
}
}
@ -404,6 +408,10 @@
&:active {
background-color: color.change(scheme.$overlay0, $alpha: 0.5);
}
&:disabled {
color: scheme.$subtext0;
}
}
}
}

View file

@ -30,7 +30,7 @@ const Network = (accessPoint: AstalNetwork.AccessPoint) => (
valign={Gtk.Align.CENTER}
visible={false}
cursor="pointer"
onClicked={() => execAsync(`nmcli c delete id '${accessPoint.ssid}'`).catch(() => {})}
onClicked={() => execAsync(`nmcli c delete id '${accessPoint.ssid}'`).catch(console.error)}
label="delete_forever"
setup={self => {
let destroyed = false;