refactor: only use medium nerdfont

This commit is contained in:
Pihkaal
2024-09-12 21:38:34 +02:00
parent b70dcce9ed
commit e046860c7c
14 changed files with 23 additions and 35 deletions

View File

@@ -128,7 +128,9 @@ const InnerSpotifyPlayer = (props: InnerKittyProps<typeof SpotifyPlayer>) => {
{/* body */}
<div className="overflow-hidden" style={{ gridArea: "2 / 2 / 3 / 4" }}>
<span className="font-extrabold text-color6">
<span>{false ? "\udb81\udc0a " : "\udb80\udfe4 "}</span>
<span className="font-normal">
{false ? "\udb81\udc0a " : "\udb80\udfe4 "}
</span>
{props.playing.item.name} ·{" "}
{props.playing.item.artists.map((a) => a.name).join(", ")}
</span>

View File

@@ -39,7 +39,8 @@ export const WaybarBatteryWidget = (props: { frequency: number }) => {
className="pl-[0.625rem] pr-3 text-[#1d7715]"
tooltip={tooltip}
>
{lerpIcon(ICONS, battery, 100)} {battery}%
<span className="font-normal">{lerpIcon(ICONS, battery, 100)}</span>{" "}
{battery}%
</WaybarWidget>
);
};

View File

@@ -34,7 +34,8 @@ export const WaybarBrightnessWidget = () => {
return (
<WaybarWidget className="pl-3 pr-[0.625rem]" tooltip={tooltip}>
<span onWheel={handleScroll}>
{lerpIcon(ICONS, brightness, 100)} {brightness}%
<span className="font-normal">{lerpIcon(ICONS, brightness, 100)}</span>{" "}
{brightness}%
</span>
</WaybarWidget>
);

View File

@@ -45,7 +45,7 @@ export const WaybarCPUWidget = (props: {
</ul>
}
>
{totalUsage}%
<span className="font-normal"></span> {totalUsage}%
</WaybarWidget>
);
};

View File

@@ -21,7 +21,7 @@ export const WaybarDiskWidget = (props: {
props.capacity
}GiB on / (${usage}%)`}
>
󰋊 {usage}%
<span className="font-normal">󰋊</span> {usage}%
</WaybarWidget>
);
};

View File

@@ -1,5 +1,7 @@
import { WaybarWidget } from "../WaybarWidget";
export const WaybarHomeWidget = () => (
<WaybarWidget className="text-[#407cdd]"></WaybarWidget>
<WaybarWidget className="text-[#407cdd]">
<span className="font-normal"></span>
</WaybarWidget>
);

View File

@@ -10,7 +10,7 @@ export const WaybarLockWidget = () => {
onClick={() => setState("login")}
interactable
>
<button></button>
<span className="font-normal"></span>
</WaybarWidget>
);
};

View File

@@ -37,7 +37,7 @@ export const WaybarMicrophoneWidget = () => {
onWheel={handleWheel}
onClick={handleClick}
>
{icon} {!muted && `${volume}%`}
<span className="font-normal">{icon}</span> {!muted && `${volume}%`}
</span>
</WaybarWidget>
);

View File

@@ -10,7 +10,7 @@ export const WaybarPowerWidget = () => {
onClick={() => setState("off")}
interactable
>
<button></button>
<span className="font-normal"></span>
</WaybarWidget>
);
};

View File

@@ -33,7 +33,7 @@ export const WaybarRAMWidget = (props: {
className="px-[0.625rem]"
tooltip={`Memory - ${used.toFixed(1)}GB used`}
>
{usage}%
<span className="font-normal"></span> {usage}%
</WaybarWidget>
);
};

View File

@@ -26,7 +26,7 @@ export const WaybarTemperatureWidget = (props: {
className="pl-3 pr-[0.625rem]"
tooltip="All good until I start playing btd6"
>
{temperature}°C
<span className="font-normal"></span> {temperature}°C
</WaybarWidget>
);
};

View File

@@ -2,6 +2,6 @@ import { WaybarWidget } from "../WaybarWidget";
export const WaybarToggleThemeWidget = () => (
<WaybarWidget className="pl-[0.625rem] pr-3" interactable>
󰐾
<span className="font-normal">󰐾</span>
</WaybarWidget>
);

View File

@@ -39,7 +39,7 @@ export const WaybarVolumeWidget = () => {
onWheel={handleWheel}
onClick={handleClick}
>
{icon} {!muted && `${volume}%`}
<span className="font-normal">{icon}</span> {!muted && `${volume}%`}
</span>
</WaybarWidget>
);