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
@import "./widgets/bar/style.scss";
// app-launcher
@import "./widgets/app-launcher/style.scss";
// launcher
@import "./widgets/launcher/style.scss";
// notifications
@import "./widgets/notifications/style.scss";

View File

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

View File

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

View File

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

View File

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