summaryrefslogtreecommitdiff
path: root/src/utils
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/utils
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/utils')
-rw-r--r--src/utils/strings.ts2
-rw-r--r--src/utils/widgets.ts7
2 files changed, 2 insertions, 7 deletions
diff --git a/src/utils/strings.ts b/src/utils/strings.ts
index 4786c6b..77608e8 100644
--- a/src/utils/strings.ts
+++ b/src/utils/strings.ts
@@ -9,3 +9,5 @@ export const pathToFileName = (path: string, ext?: string) => {
const dir = path.slice(start, path.lastIndexOf("/")).replaceAll("/", "-");
return `${dir}-${basename(path, ext !== undefined)}${ext ? `.${ext}` : ""}`;
};
+
+export const capitalize = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);
diff --git a/src/utils/widgets.ts b/src/utils/widgets.ts
index e0e512d..9fb1e29 100644
--- a/src/utils/widgets.ts
+++ b/src/utils/widgets.ts
@@ -72,13 +72,6 @@ export class MenuItem extends astalify(Gtk.MenuItem) {
}
@register()
-export class Calendar extends astalify(Gtk.Calendar) {
- constructor(props: ConstructProps<Calendar, Gtk.Calendar.ConstructorProps>) {
- super(props as any);
- }
-}
-
-@register()
export class FlowBox extends astalify(Gtk.FlowBox) {
constructor(props: ConstructProps<FlowBox, Gtk.FlowBox.ConstructorProps>) {
super(props as any);