ags: add ask popup, make notifications work(finally :3) and more improvements

This commit is contained in:
retrozinndev
2025-03-09 13:45:07 -03:00
parent 161c811841
commit 59ef5e4aa7
67 changed files with 2005 additions and 731 deletions
+11 -4
View File
@@ -11,19 +11,26 @@ export interface SeparatorProps {
}
export function Separator(props: SeparatorProps) {
const alpha: number = props.alpha ?
(props.alpha > 1) ?
props.alpha / 100
: props.alpha
: 1;
return new Widget.Box({
className: `separator separator-${ props.orientation == Gtk.Orientation.VERTICAL ? "vertical" : "horizontal" } ${ props.class && props.class }`,
className: `separator separator-${ props.orientation == Gtk.Orientation.VERTICAL ?
"vertical" : "horizontal" } ${ props.class && props.class }`,
visible: props.visible,
css: `.separator {
background: ${ props.cssColor || "lightgray" };
opacity: ${ props.alpha || 1 };
opacity: ${alpha};
}
.separator-horizontal {
padding-bottom: ${props.size || 1 }px;
min-width: ${ props.size || 1 }px;
margin: 4px 4px;
}
.separator-vertical {
padding-right: ${props.size || 1 }px;
min-height: ${ props.size || 1 }px;
margin: 7px 7px;
}`,
} as Widget.BoxProps);