sidebar: style disabled state for buttons
Also no silent fail for removing network
This commit is contained in:
parent
5a1ea91e35
commit
1afe054f7a
2 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue