mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Switch from Qt6 to Slint
This commit is contained in:
parent
f8be14bcf8
commit
63bf267a22
107 changed files with 27532 additions and 2896 deletions
35
ui/SideBar.slint
Normal file
35
ui/SideBar.slint
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { Backend } from "Backend.slint";
|
||||
import { ToggleButton, VText, Palette } from "@vynui";
|
||||
|
||||
export component SideBar inherits Rectangle {
|
||||
background: Palette.pane;
|
||||
VerticalLayout {
|
||||
alignment: start;
|
||||
padding: 16px;
|
||||
spacing: 16px;
|
||||
VText {
|
||||
text: "Sources";
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
VerticalLayout {
|
||||
spacing: 4px;
|
||||
for item[index] in Backend.resources: ToggleButton {
|
||||
text: item;
|
||||
text-alignment: left;
|
||||
clicked => { Backend.source_clicked(index) }
|
||||
}
|
||||
}
|
||||
/*VText {
|
||||
text: "Tags";
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
VerticalLayout {
|
||||
spacing: 4px;
|
||||
for item[index] in Backend.tags: ToggleButton {
|
||||
text: item;
|
||||
text-alignment: left;
|
||||
clicked => { Backend.tag_clicked(index) }
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue