mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 04:41:55 +05:30
refactor: rename app-launcher to launcher
This commit is contained in:
@@ -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";
|
||||
|
@@ -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 (
|
||||
|
@@ -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}
|
@@ -1,4 +1,4 @@
|
||||
window.app-launcher {
|
||||
window.launcher {
|
||||
background: $bg-color;
|
||||
border-radius: $rounded;
|
||||
padding: 10px;
|
@@ -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];
|
||||
|
Reference in New Issue
Block a user