wifi networks: styles: rename + fix light theme caret color

This commit is contained in:
end-4 2025-03-28 17:30:21 +01:00
parent c1ab074de5
commit d9a1793bfc
2 changed files with 13 additions and 9 deletions

View file

@ -153,14 +153,15 @@ const CurrentNetwork = () => {
label: '',
});
const cancelAuthButton = Button({
className: 'txt sidebar-centermodules-rightbar-button',
className: 'txt sidebar-wifinetworks-network-button',
label: 'Cancel',
hpack: 'end',
onClicked: () => {
networkAuth.revealChild = false;
networkAuthSSID.label = '';
networkName.children[1].label = Network.wifi?.ssid;
}
},
setup: setupCursorHover,
});
const authHeader = Box({
vertical: false,
@ -174,7 +175,7 @@ const CurrentNetwork = () => {
const forgetButton = Button({
label: 'Forget',
hexpand: true,
className: 'txt sidebar-centermodules-rightbar-button',
className: 'txt sidebar-wifinetworks-network-button',
onClicked: () => {
execAsync(['nmcli', '-t', '-f', 'ACTIVE,NAME', 'connection', 'show'])
.then(output => {
@ -196,7 +197,7 @@ const CurrentNetwork = () => {
});
const settingsButton = Button({
label: 'Properties',
className: 'txt sidebar-centermodules-rightbar-button',
className: 'txt sidebar-wifinetworks-network-button',
hexpand: true,
onClicked: () => {
Utils.execAsync('nmcli -t -f uuid connection show --active').then(uuid => {
@ -206,7 +207,8 @@ const CurrentNetwork = () => {
}).catch(error => {
Utils.notify('Failed to get connection UUID');
});
}
},
setup: setupCursorHover,
});
const networkProp = Box({
vertical: false,
@ -216,7 +218,8 @@ const CurrentNetwork = () => {
children: [
settingsButton,
forgetButton,
]
],
setup: setupCursorHover,
});
networkAuth = Revealer({
transition: 'slide_down',

View file

@ -1011,6 +1011,7 @@ $waifu_image_overlay_transparency: 0.7;
background-color: $layer1;
color: $onLayer1;
padding: 0.682rem;
caret-color: $onLayer2;
}
.sidebar-wifinetworks-bandwidth {
@ -1040,7 +1041,7 @@ $waifu_image_overlay_transparency: 0.7;
background: linear-gradient(to top, $layer1 0%, transparentize($layer1, 1) 1.023rem);
}
.sidebar-centermodules-rightbar-button {
.sidebar-wifinetworks-network-button {
@include full-rounding;
@include element_decel;
min-width: 6.818rem;
@ -1049,7 +1050,7 @@ $waifu_image_overlay_transparency: 0.7;
color: $onLayer2;
}
.sidebar-centermodules-rightbar-button:hover,
.sidebar-centermodules-rightbar-button:focus {
.sidebar-wifinetworks-network-button:hover,
.sidebar-wifinetworks-network-button:focus {
background-color: $layer2Active;
}