summaryrefslogtreecommitdiff
path: root/src/modules/launcher/index.tsx
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-01 16:24:06 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-01 16:24:06 +1100
commit3d4577044ee400fc26b0d36ee90d562cf37e969c (patch)
treecb6bcf13f1cad2933adf75244a57a865b4bde7aa /src/modules/launcher/index.tsx
parentconfig: lazy update arrays (diff)
downloadcaelestia-shell-3d4577044ee400fc26b0d36ee90d562cf37e969c.tar.gz
caelestia-shell-3d4577044ee400fc26b0d36ee90d562cf37e969c.tar.bz2
caelestia-shell-3d4577044ee400fc26b0d36ee90d562cf37e969c.zip
launcher: add round style
Diffstat (limited to 'src/modules/launcher/index.tsx')
-rw-r--r--src/modules/launcher/index.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/launcher/index.tsx b/src/modules/launcher/index.tsx
index d355c79..b75ecce 100644
--- a/src/modules/launcher/index.tsx
+++ b/src/modules/launcher/index.tsx
@@ -24,7 +24,10 @@ const isAction = (text: string, action: string = "") => text.startsWith(config.a
const SearchBar = ({ mode, entry }: { mode: Variable<Mode>; entry: Widget.Entry }) => (
<box className="search-bar">
- <label className="mode" label={bind(mode)} />
+ <box className="mode">
+ <label className="icon" label={bind(mode).as(getModeIcon)} />
+ <label label={bind(mode).as(getPrettyMode)} />
+ </box>
{entry}
</box>
);
@@ -61,6 +64,7 @@ export default class Launcher extends PopupWindow {
const mode = Variable<Mode>("apps");
const content = Modes();
const actions = new Actions(mode, entry);
+ const className = Variable.derive([mode, config.style], (m, s) => `launcher ${m} ${s}`);
super({
name: "launcher",
@@ -86,7 +90,8 @@ export default class Launcher extends PopupWindow {
vertical
halign={Gtk.Align.CENTER}
valign={Gtk.Align.CENTER}
- className={bind(mode).as(m => `launcher ${m}`)}
+ className={bind(className)}
+ onDestroy={() => className.drop()}
>
<SearchBar mode={mode} entry={entry} />
<stack