From d5ec20cc5087af0db816923e383cddbe42f5f818 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Sun, 23 Mar 2025 17:55:27 +0700 Subject: [PATCH] updated font --- widget/Bar.scss | 2 ++ widget/modules/Cpu/helpers.ts | 2 +- widget/modules/Ram/helpers.ts | 2 +- widget/modules/Storage/helpers.ts | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/widget/Bar.scss b/widget/Bar.scss index 03149ab..a72a860 100644 --- a/widget/Bar.scss +++ b/widget/Bar.scss @@ -5,6 +5,8 @@ window.Bar { background: transparent; color: #{"@theme_fg_color"}; font-weight: bold; + font-family: 'JetBrainsMono Nerd Font Mono'; + font-size: 13px; > centerbox { background: transparent; diff --git a/widget/modules/Cpu/helpers.ts b/widget/modules/Cpu/helpers.ts index 74b1703..e5cf2bc 100644 --- a/widget/modules/Cpu/helpers.ts +++ b/widget/modules/Cpu/helpers.ts @@ -17,7 +17,7 @@ const computeCPU = (): string => { previousCpuData = currentCpuData; const cpuUsagePercentageString = - " " + Math.floor(cpuUsagePercentage) + "%"; + " " + Math.floor(cpuUsagePercentage) + "%"; return cpuUsagePercentageString; }; diff --git a/widget/modules/Ram/helpers.ts b/widget/modules/Ram/helpers.ts index 1eaf109..3081491 100644 --- a/widget/modules/Ram/helpers.ts +++ b/widget/modules/Ram/helpers.ts @@ -24,7 +24,7 @@ const calculateRamUsage = (): string => { usedRam = isNaN(usedRam) || usedRam < 0 ? 0 : usedRam; const ramstring = - " " + Math.floor((usedRam / totalRamInBytes) * 100) + "%"; + " " + Math.floor((usedRam / totalRamInBytes) * 100) + "%"; return ramstring; } catch (error) { diff --git a/widget/modules/Storage/helpers.ts b/widget/modules/Storage/helpers.ts index c69ad78..b61b10b 100644 --- a/widget/modules/Storage/helpers.ts +++ b/widget/modules/Storage/helpers.ts @@ -10,7 +10,7 @@ const computeStorage = (): string => { const available = currentFsUsage.bavail * currentFsUsage.block_size; const used = total - available; - const storagestring = " " + Math.floor((used / total) * 100) + "%"; + const storagestring = " " + Math.floor((used / total) * 100) + "%"; return storagestring; } catch (error) {