mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
refactor: rename app-launcher to launcher
This commit is contained in:
@@ -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";
|
||||||
|
@@ -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 (
|
||||||
|
@@ -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}
|
@@ -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;
|
@@ -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];
|
||||||
|
Reference in New Issue
Block a user