mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 09:23:18 +00:00
[WIP] full views rework
This commit is contained in:
parent
9de3972630
commit
15bd0f58a7
30 changed files with 812 additions and 1175 deletions
|
@ -1,4 +1,4 @@
|
|||
import { AppModels, TaskData } from "../../../shared/Models.slint";
|
||||
import { AppModels } from "../../../shared/Models.slint";
|
||||
import { AppActions } from "../../../shared/Actions.slint";
|
||||
import { VButton, ToggleButton, VActionButton, VText, Svg, Palette } from "@selenite";
|
||||
import { EditSourceModal } from "../../../modals/EditSourceModal.slint";
|
||||
|
@ -10,7 +10,7 @@ export component SideBar inherits Rectangle {
|
|||
editSourcePopup.edit(source-id)
|
||||
}
|
||||
|
||||
addSourcePopup := AddSourceModal{}
|
||||
addSourcePopup := AddSourceModal{}
|
||||
editSourcePopup := EditSourceModal {}
|
||||
|
||||
VerticalLayout {
|
||||
|
@ -46,17 +46,17 @@ export component SideBar inherits Rectangle {
|
|||
ToggleButton {
|
||||
text: "All";
|
||||
text-alignment: left;
|
||||
active: AppModels.no-source-selected;
|
||||
active: AppModels.sidebar-view.all-active;
|
||||
clicked => { AppActions.source-clicked(-1) }
|
||||
|
||||
|
||||
}
|
||||
for item[index] in AppModels.sources-selected: ToggleButton {
|
||||
text: item.name;
|
||||
for source[index] in AppModels.sidebar-view.sources: ToggleButton {
|
||||
text: source.name;
|
||||
text-alignment: left;
|
||||
active: item.selected;
|
||||
clicked => { AppActions.source-clicked(item.id) }
|
||||
right-clicked => { editSourcePopup.edit(item.id) }
|
||||
active: source.active;
|
||||
clicked => { AppActions.source-clicked(source.id) }
|
||||
right-clicked => { editSourcePopup.edit(source.id) }
|
||||
}
|
||||
}
|
||||
VerticalLayout {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue