diff --git a/modules/ags/gtk4/app.ts b/modules/ags/gtk4/app.ts index 85ac427c..5a499189 100644 --- a/modules/ags/gtk4/app.ts +++ b/modules/ags/gtk4/app.ts @@ -2,7 +2,7 @@ import { App } from 'astal/gtk4'; import style from './style.scss'; -import Bar from './widget/Bar'; +import Bar from './widget/bar'; App.start({ diff --git a/modules/ags/gtk4/widget/Bar.tsx b/modules/ags/gtk4/widget/bar.tsx similarity index 83% rename from modules/ags/gtk4/widget/Bar.tsx rename to modules/ags/gtk4/widget/bar.tsx index dc39b8e2..0f31673c 100644 --- a/modules/ags/gtk4/widget/Bar.tsx +++ b/modules/ags/gtk4/widget/bar.tsx @@ -1,13 +1,12 @@ import { App, Astal, Gtk } from 'astal/gtk4'; import { Variable } from 'astal'; -import { StyledBox } from './styled-box'; +import { Box, Button, CenterBox } from './subclasses'; const { EXCLUSIVE } = Astal.Exclusivity; const { TOP, LEFT, RIGHT } = Astal.WindowAnchor; const { CENTER } = Gtk.Align; - const time = Variable(0); setInterval(() => { @@ -16,10 +15,10 @@ setInterval(() => { export default () => { const styledBox = ( - `* { background: red; min-height: 10px; min-width: ${t}px; }`)} /> - ) as StyledBox; + ) as Box; return ( { anchor={TOP | LEFT | RIGHT} application={App} > - - + +