summaryrefslogtreecommitdiff
path: root/src/modules/osds.tsx
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-08 16:01:36 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-08 16:01:36 +1000
commitb0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01 (patch)
treefe3ede646c1a2f4f7abf3ba62cb3433113b35015 /src/modules/osds.tsx
parentdev: use typescript 5.7.3 to fix jsx type errors (diff)
downloadcaelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.tar.gz
caelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.tar.bz2
caelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.zip
feat: add navbar
For controlling sidebar panes + other stuff later
Diffstat (limited to 'src/modules/osds.tsx')
-rw-r--r--src/modules/osds.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/osds.tsx b/src/modules/osds.tsx
index 4bbc87b..0f38823 100644
--- a/src/modules/osds.tsx
+++ b/src/modules/osds.tsx
@@ -1,4 +1,5 @@
import Monitors, { type Monitor } from "@/services/monitors";
+import { capitalize } from "@/utils/strings";
import PopupWindow from "@/widgets/popupwindow";
import { bind, execAsync, register, timeout, Variable, type Time } from "astal";
import { App, Astal, Gtk, Widget } from "astal/gtk3";
@@ -282,7 +283,7 @@ class LockOsd extends Widget.Window {
this.add(
<box vertical halign={Gtk.Align.CENTER} valign={Gtk.Align.CENTER} className={`lock ${type}`}>
<label vexpand className="icon" label={icon} />
- <label vexpand className="text" label={type.slice(0, 1).toUpperCase() + type.slice(1) + "lock"} />
+ <label vexpand className="text" label={capitalize(type) + "lock"} />
</box>
);