2024-09-24 16:19:56 -04:00
|
|
|
import { App, Astal, Gtk, idle, Variable } from 'astal';
|
|
|
|
|
2024-09-26 11:11:31 -04:00
|
|
|
import FullscreenState from './fullscreen';
|
2024-09-24 16:19:56 -04:00
|
|
|
|
2024-09-26 11:11:31 -04:00
|
|
|
|
|
|
|
FullscreenState.subscribe((v) => {
|
|
|
|
console.log(v);
|
|
|
|
});
|
2024-09-24 16:19:56 -04:00
|
|
|
const isVisible = Variable<boolean>(false);
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
return (
|
|
|
|
<window
|
|
|
|
className="Bar"
|
|
|
|
exclusivity={Astal.Exclusivity.EXCLUSIVE}
|
|
|
|
anchor={
|
|
|
|
Astal.WindowAnchor.TOP |
|
|
|
|
Astal.WindowAnchor.LEFT |
|
|
|
|
Astal.WindowAnchor.RIGHT
|
|
|
|
}
|
|
|
|
application={App}
|
|
|
|
setup={() => idle(() => {
|
|
|
|
isVisible.set(true);
|
|
|
|
})}
|
|
|
|
>
|
|
|
|
<revealer
|
|
|
|
revealChild={isVisible()}
|
|
|
|
transitionType={Gtk.RevealerTransitionType.SLIDE_DOWN}
|
|
|
|
transitionDuration={500}
|
|
|
|
>
|
|
|
|
<label label="hi" />
|
|
|
|
</revealer>
|
|
|
|
</window>
|
|
|
|
);
|
|
|
|
};
|