mirror of
https://codeberg.org/vyn/selenite.git
synced 2025-07-02 01:23:23 +00:00
Compare commits
No commits in common. "810607c01fa659f31bd11bd41a9ee5611e5db8ea" and "acbd56205d758bf74d7f121ce8085898acbacc9f" have entirely different histories.
810607c01f
...
acbd56205d
1 changed files with 0 additions and 31 deletions
|
@ -1,31 +0,0 @@
|
|||
import { Palette } from "Palette.slint";
|
||||
|
||||
export component Modal inherits Rectangle {
|
||||
public function show() {
|
||||
if (self.absolute-position.x < 500px) {
|
||||
self.x += 500px - self.absolute-position.x;
|
||||
}
|
||||
if (self.absolute-position.y != 100px) {
|
||||
self.y += 100px - self.absolute-position.y;
|
||||
}
|
||||
popup.show()
|
||||
}
|
||||
|
||||
public function close() {
|
||||
popup.close()
|
||||
}
|
||||
|
||||
popup := PopupWindow {
|
||||
close-policy: close-on-click-outside;
|
||||
background := Rectangle {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: Palette.background1;
|
||||
border-color: Palette.popup-border;
|
||||
border-width: 1px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@children
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue