refactor: rename app-launcher to launcher

This commit is contained in:
tux
2025-09-24 16:58:13 +05:30
parent 9649ab0b6e
commit 290326f849
5 changed files with 9 additions and 9 deletions

View File

@@ -13,8 +13,8 @@ $font-size: 1rem;
// bar // bar
@import "./widgets/bar/style.scss"; @import "./widgets/bar/style.scss";
// app-launcher // launcher
@import "./widgets/app-launcher/style.scss"; @import "./widgets/launcher/style.scss";
// notifications // notifications
@import "./widgets/notifications/style.scss"; @import "./widgets/notifications/style.scss";

View File

@@ -1,6 +1,6 @@
import { Gdk } from "ags/gtk4"; import { Gdk } from "ags/gtk4";
import app from "ags/gtk4/app"; import app from "ags/gtk4/app";
import { WINDOW_NAME } from "../app-launcher"; import { WINDOW_NAME } from "../launcher";
export const Launcher = () => { export const Launcher = () => {
return ( return (

View File

@@ -3,7 +3,7 @@ import { Astal, Gdk, Gtk } from "ags/gtk4";
import app from "ags/gtk4/app"; import app from "ags/gtk4/app";
import AstalApps from "gi://AstalApps"; import AstalApps from "gi://AstalApps";
export const WINDOW_NAME = "app-launcher"; export const WINDOW_NAME = "launcher";
let searchEntry: Gtk.Entry; let searchEntry: Gtk.Entry;
const apps = new AstalApps.Apps(); const apps = new AstalApps.Apps();
@@ -59,11 +59,11 @@ const AppSearch = () => {
); );
}; };
export const AppLauncher = (gdkmonitor: Gdk.Monitor) => { export const Launcher = (gdkmonitor: Gdk.Monitor) => {
return ( return (
<window <window
name={WINDOW_NAME} name={WINDOW_NAME}
cssClasses={["app-launcher"]} cssClasses={["launcher"]}
gdkmonitor={gdkmonitor} gdkmonitor={gdkmonitor}
application={app} application={app}
exclusivity={Astal.Exclusivity.EXCLUSIVE} exclusivity={Astal.Exclusivity.EXCLUSIVE}

View File

@@ -1,4 +1,4 @@
window.app-launcher { window.launcher {
background: $bg-color; background: $bg-color;
border-radius: $rounded; border-radius: $rounded;
padding: 10px; padding: 10px;

View File

@@ -1,5 +1,5 @@
import { Bar } from "./widgets/bar"; import { Bar } from "./widgets/bar";
import { AppLauncher } from "./widgets/app-launcher"; import { Launcher } from "./widgets/launcher";
import { Notifications } from "./widgets/notifications"; import { Notifications } from "./widgets/notifications";
export default [Bar, AppLauncher, Notifications]; export default [Bar, Launcher, Notifications];