feat(ui): frameless transparent window with drag

This commit is contained in:
2026-08-25 18:05:12 +05:00
parent 26ac5e6003
commit e336cf7e86
8 changed files with 104 additions and 38 deletions
+12
View File
@@ -4,6 +4,18 @@ import { GradientIcon } from "./gradient-icon.slint";
export component Header inherits Rectangle {
in property <string> url;
callback request-drag();
TouchArea {
width: 100%;
height: 100%;
mouse-cursor: move;
pointer-event(event) => {
if (event.kind == PointerEventKind.down) {
root.request-drag();
}
}
}
VerticalLayout {
width: 100%;