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
@@ -153,14 +153,15 @@ const CurrentNetwork = () => {
label: '', label: '',
}); });
const cancelAuthButton = Button({ const cancelAuthButton = Button({
className: 'txt sidebar-centermodules-rightbar-button', className: 'txt sidebar-wifinetworks-network-button',
label: 'Cancel', label: 'Cancel',
hpack: 'end', hpack: 'end',
onClicked: () => { onClicked: () => {
networkAuth.revealChild = false; networkAuth.revealChild = false;
networkAuthSSID.label = ''; networkAuthSSID.label = '';
networkName.children[1].label = Network.wifi?.ssid; networkName.children[1].label = Network.wifi?.ssid;
} },
setup: setupCursorHover,
}); });
const authHeader = Box({ const authHeader = Box({
vertical: false, vertical: false,
@@ -174,7 +175,7 @@ const CurrentNetwork = () => {
const forgetButton = Button({ const forgetButton = Button({
label: 'Forget', label: 'Forget',
hexpand: true, hexpand: true,
className: 'txt sidebar-centermodules-rightbar-button', className: 'txt sidebar-wifinetworks-network-button',
onClicked: () => { onClicked: () => {
execAsync(['nmcli', '-t', '-f', 'ACTIVE,NAME', 'connection', 'show']) execAsync(['nmcli', '-t', '-f', 'ACTIVE,NAME', 'connection', 'show'])
.then(output => { .then(output => {
@@ -196,7 +197,7 @@ const CurrentNetwork = () => {
}); });
const settingsButton = Button({ const settingsButton = Button({
label: 'Properties', label: 'Properties',
className: 'txt sidebar-centermodules-rightbar-button', className: 'txt sidebar-wifinetworks-network-button',
hexpand: true, hexpand: true,
onClicked: () => { onClicked: () => {
Utils.execAsync('nmcli -t -f uuid connection show --active').then(uuid => { Utils.execAsync('nmcli -t -f uuid connection show --active').then(uuid => {
@@ -206,7 +207,8 @@ const CurrentNetwork = () => {
}).catch(error => { }).catch(error => {
Utils.notify('Failed to get connection UUID'); Utils.notify('Failed to get connection UUID');
}); });
} },
setup: setupCursorHover,
}); });
const networkProp = Box({ const networkProp = Box({
vertical: false, vertical: false,
@@ -216,7 +218,8 @@ const CurrentNetwork = () => {
children: [ children: [
settingsButton, settingsButton,
forgetButton, forgetButton,
] ],
setup: setupCursorHover,
}); });
networkAuth = Revealer({ networkAuth = Revealer({
transition: 'slide_down', transition: 'slide_down',
+4 -3
View File
@@ -1011,6 +1011,7 @@ $waifu_image_overlay_transparency: 0.7;
background-color: $layer1; background-color: $layer1;
color: $onLayer1; color: $onLayer1;
padding: 0.682rem; padding: 0.682rem;
caret-color: $onLayer2;
} }
.sidebar-wifinetworks-bandwidth { .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); background: linear-gradient(to top, $layer1 0%, transparentize($layer1, 1) 1.023rem);
} }
.sidebar-centermodules-rightbar-button { .sidebar-wifinetworks-network-button {
@include full-rounding; @include full-rounding;
@include element_decel; @include element_decel;
min-width: 6.818rem; min-width: 6.818rem;
@@ -1049,7 +1050,7 @@ $waifu_image_overlay_transparency: 0.7;
color: $onLayer2; color: $onLayer2;
} }
.sidebar-centermodules-rightbar-button:hover, .sidebar-wifinetworks-network-button:hover,
.sidebar-centermodules-rightbar-button:focus { .sidebar-wifinetworks-network-button:focus {
background-color: $layer2Active; background-color: $layer2Active;
} }