diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-08 16:01:36 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-08 16:01:36 +1000 |
| commit | b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01 (patch) | |
| tree | fe3ede646c1a2f4f7abf3ba62cb3433113b35015 /src/modules/osds.tsx | |
| parent | dev: use typescript 5.7.3 to fix jsx type errors (diff) | |
| download | caelestia-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.tsx | 3 |
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> ); |