First commit

This commit is contained in:
Vyn 2024-10-16 11:40:45 +02:00
commit dd0c8c326a
16 changed files with 534 additions and 0 deletions

27
PopupIconMenu.slint Normal file
View file

@ -0,0 +1,27 @@
import { Palette } from "Palette.slint";
import { VButton } from "Button.slint";
export component VPopupIconMenu inherits Rectangle {
private property<length> popup-x: 200px;
private property<length> popup-y: 200px;
public function show(x: length, y: length) {
popup-x = x;
popup-y = y;
popup.show();
}
popup := PopupWindow {
x: popup-x;
y: popup-y;
Rectangle {
background: Palette.background.brighter(0.2);
border-radius: 8px;
clip: true;
HorizontalLayout {
alignment: start;
@children
}
}
}
}