weather widget

This commit is contained in:
wt committed 2024-09-03 12:22:09 +07:00
1 parent 44afecd7df
commit 54278273cb
14 files changed
+2688 -50

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { PopupContent } from '../bar/buttons/Weather.js';
import Widget from 'resource:///com/github/Aylur/ags/widget.js';
import PopupWindow from '../misc/PopupWindow.js';
import options from '../options.js';
export default () => PopupWindow({
name: 'weather',
anchor: ['top'],
setup: self => self.hook(options.bar.position, () => {
self.anchor = [options.bar.position.value];
if (options.bar.position.value === 'top')
self.transition = 'slide_down';
if (options.bar.position.value === 'bottom')
self.transition = 'slide_up';
}),
child: Widget.Box({
class_name: 'dashboard',
children: [
PopupContent(),
],
}),
});