refactor(agsV2): separate some widgets from popup-window for binto prep
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
ae2c8c2db2
commit
e2d8754f81
4 changed files with 19 additions and 15 deletions
|
@ -7,11 +7,11 @@ export default async() => {
|
||||||
const AppLauncher = (await import('../widgets/applauncher/main')).default;
|
const AppLauncher = (await import('../widgets/applauncher/main')).default;
|
||||||
const Bar = (await import('../widgets/bar/wim')).default;
|
const Bar = (await import('../widgets/bar/wim')).default;
|
||||||
const BgFade = (await import('../widgets/bg-fade/main')).default;
|
const BgFade = (await import('../widgets/bg-fade/main')).default;
|
||||||
const Calendar = (await import('../widgets/date/main')).default;
|
const Calendar = (await import('../widgets/date/wim')).default;
|
||||||
const Clipboard = (await import('../widgets/clipboard/main')).default;
|
const Clipboard = (await import('../widgets/clipboard/main')).default;
|
||||||
const Corners = (await import('../widgets/corners/main')).default;
|
const Corners = (await import('../widgets/corners/main')).default;
|
||||||
const IconBrowser = (await import('../widgets/icon-browser/main')).default;
|
const IconBrowser = (await import('../widgets/icon-browser/main')).default;
|
||||||
const { NotifPopups, NotifCenter } = await import('../widgets/notifs/main');
|
const { NotifPopups, NotifCenter } = await import('../widgets/notifs/wim');
|
||||||
const OSD = (await import('../widgets/osd/main')).default;
|
const OSD = (await import('../widgets/osd/main')).default;
|
||||||
const PowerMenu = (await import('../widgets/powermenu/main')).default;
|
const PowerMenu = (await import('../widgets/powermenu/main')).default;
|
||||||
const Screenshot = (await import('../widgets/screenshot/main')).default;
|
const Screenshot = (await import('../widgets/screenshot/main')).default;
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
import { bind, Variable } from 'astal';
|
import { bind, Variable } from 'astal';
|
||||||
import { Astal, Gtk } from 'astal/gtk3';
|
import { Gtk } from 'astal/gtk3';
|
||||||
|
|
||||||
import GLib from 'gi://GLib';
|
import GLib from 'gi://GLib';
|
||||||
|
|
||||||
import PopupWindow from '../misc/popup-window';
|
|
||||||
|
|
||||||
|
|
||||||
const Divider = () => (
|
const Divider = () => (
|
||||||
<box
|
<box
|
||||||
|
@ -65,7 +63,7 @@ const Time = () => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const DateWidget = () => {
|
export default () => {
|
||||||
const cal = new Gtk.Calendar({
|
const cal = new Gtk.Calendar({
|
||||||
show_day_names: true,
|
show_day_names: true,
|
||||||
show_heading: true,
|
show_heading: true,
|
||||||
|
@ -86,12 +84,3 @@ const DateWidget = () => {
|
||||||
</box>
|
</box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default () => (
|
|
||||||
<PopupWindow
|
|
||||||
name="calendar"
|
|
||||||
anchor={Astal.WindowAnchor.TOP}
|
|
||||||
>
|
|
||||||
<DateWidget />
|
|
||||||
</PopupWindow>
|
|
||||||
);
|
|
||||||
|
|
15
nixosModules/ags-v2/config/widgets/date/wim.tsx
Normal file
15
nixosModules/ags-v2/config/widgets/date/wim.tsx
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import { Astal } from 'astal/gtk3';
|
||||||
|
|
||||||
|
import PopupWindow from '../misc/popup-window';
|
||||||
|
|
||||||
|
import DateWidget from './main';
|
||||||
|
|
||||||
|
|
||||||
|
export default () => (
|
||||||
|
<PopupWindow
|
||||||
|
name="calendar"
|
||||||
|
anchor={Astal.WindowAnchor.TOP}
|
||||||
|
>
|
||||||
|
<DateWidget />
|
||||||
|
</PopupWindow>
|
||||||
|
);
|
Loading…
Reference in a new issue