From 996eb4878f81240e60d69a1b20cefcae04d4a3b1 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Thu, 20 Feb 2025 13:03:28 -0300 Subject: [PATCH] frontend: update networking widgets for using the pi svg with css colors --- .../{public => src/assets}/img/icons/pi.svg | 2 +- .../src/components/wifi/WifiTrayMenu.vue | 2 +- core/frontend/src/widgets/Networking.vue | 20 ++++++++++++++++--- core/frontend/src/widgets/WifiNetworking.vue | 18 +++++++++++++++-- 4 files changed, 35 insertions(+), 7 deletions(-) rename core/frontend/{public => src/assets}/img/icons/pi.svg (99%) diff --git a/core/frontend/public/img/icons/pi.svg b/core/frontend/src/assets/img/icons/pi.svg similarity index 99% rename from core/frontend/public/img/icons/pi.svg rename to core/frontend/src/assets/img/icons/pi.svg index 518d46139a..b479077640 100644 --- a/core/frontend/public/img/icons/pi.svg +++ b/core/frontend/src/assets/img/icons/pi.svg @@ -37,7 +37,7 @@ inkscape:groupmode="layer" id="layer1" transform="translate(-4.7110638,-0.72454897)"> diff --git a/core/frontend/src/components/wifi/WifiTrayMenu.vue b/core/frontend/src/components/wifi/WifiTrayMenu.vue index 823214d995..093c7d79f5 100644 --- a/core/frontend/src/components/wifi/WifiTrayMenu.vue +++ b/core/frontend/src/components/wifi/WifiTrayMenu.vue @@ -85,7 +85,7 @@ export default Vue.extend({ }, mounted() { commander.getEnvironmentVariables().then((environment_variables) => { - this.disabled_services = ((environment_variables?.BLUEOS_DISABLE_SERVICES as string) ?? '').split(',') as string[] + this.disabled_services = (environment_variables?.BLUEOS_DISABLE_SERVICES as string ?? '').split(',') as string[] }) }, }) diff --git a/core/frontend/src/widgets/Networking.vue b/core/frontend/src/widgets/Networking.vue index 7c91364a73..8852bdd4e2 100644 --- a/core/frontend/src/widgets/Networking.vue +++ b/core/frontend/src/widgets/Networking.vue @@ -2,7 +2,8 @@ eth0 - Pi + +
@@ -22,11 +23,12 @@ @@ -71,4 +80,9 @@ export default Vue.extend({ width: 20px; margin-left: -18px; } + +.pi-icon :deep(svg) { + width: 35px; + margin-bottom: -10px; +} diff --git a/core/frontend/src/widgets/WifiNetworking.vue b/core/frontend/src/widgets/WifiNetworking.vue index a377201a5a..7adde2bdf3 100644 --- a/core/frontend/src/widgets/WifiNetworking.vue +++ b/core/frontend/src/widgets/WifiNetworking.vue @@ -2,7 +2,8 @@ Wifi - Pi + +
@@ -22,6 +23,7 @@ @@ -71,4 +80,9 @@ export default Vue.extend({ width: 20px; margin-left: -18px; } + +.pi-icon :deep(svg) { + width: 35px; + margin-bottom: -10px; +}