2023-11-15 16:01:30 -05:00
|
|
|
import { Window } from 'resource:///com/github/Aylur/ags/widget.js';
|
|
|
|
|
2024-01-13 23:38:31 -05:00
|
|
|
import RoundedCorner from './screen-corners.ts';
|
2023-11-15 16:01:30 -05:00
|
|
|
|
|
|
|
|
|
|
|
const TopLeft = () => Window({
|
|
|
|
name: 'cornertl',
|
|
|
|
layer: 'overlay',
|
|
|
|
exclusivity: 'ignore',
|
|
|
|
anchor: ['top', 'left'],
|
|
|
|
visible: true,
|
2024-01-15 09:20:41 -05:00
|
|
|
click_through: true,
|
2023-11-15 16:01:30 -05:00
|
|
|
child: RoundedCorner('topleft'),
|
|
|
|
});
|
2023-11-21 01:29:46 -05:00
|
|
|
|
2023-11-15 16:01:30 -05:00
|
|
|
const TopRight = () => Window({
|
|
|
|
name: 'cornertr',
|
|
|
|
layer: 'overlay',
|
|
|
|
exclusivity: 'ignore',
|
|
|
|
anchor: ['top', 'right'],
|
|
|
|
visible: true,
|
2024-01-15 09:20:41 -05:00
|
|
|
click_through: true,
|
2023-11-15 16:01:30 -05:00
|
|
|
child: RoundedCorner('topright'),
|
|
|
|
});
|
2023-11-21 01:29:46 -05:00
|
|
|
|
2023-11-15 16:01:30 -05:00
|
|
|
const BottomLeft = () => Window({
|
|
|
|
name: 'cornerbl',
|
|
|
|
layer: 'overlay',
|
|
|
|
exclusivity: 'ignore',
|
|
|
|
anchor: ['bottom', 'left'],
|
|
|
|
visible: true,
|
2024-01-15 09:20:41 -05:00
|
|
|
click_through: true,
|
2023-11-15 16:01:30 -05:00
|
|
|
child: RoundedCorner('bottomleft'),
|
|
|
|
});
|
2023-11-21 01:29:46 -05:00
|
|
|
|
2023-11-15 16:01:30 -05:00
|
|
|
const BottomRight = () => Window({
|
|
|
|
name: 'cornerbr',
|
|
|
|
layer: 'overlay',
|
|
|
|
exclusivity: 'ignore',
|
|
|
|
anchor: ['bottom', 'right'],
|
|
|
|
visible: true,
|
2024-01-15 09:20:41 -05:00
|
|
|
click_through: true,
|
2023-11-15 16:01:30 -05:00
|
|
|
child: RoundedCorner('bottomright'),
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export default () => [
|
|
|
|
TopLeft(),
|
|
|
|
TopRight(),
|
|
|
|
BottomLeft(),
|
|
|
|
BottomRight(),
|
|
|
|
];
|