mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 09:23:18 +00:00
Move Models and Actions slint definitions in the shared directory
This commit is contained in:
parent
f2f472a595
commit
72b004b7b0
15 changed files with 58 additions and 66 deletions
|
@ -1,5 +1,5 @@
|
|||
import { AppWindowModels, TaskData } from "../Models.slint";
|
||||
import { AppWindowActions } from "../Actions.slint";
|
||||
import { AppModels, TaskData } 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";
|
||||
import { AddSourceModal } from "../../../modals/AddSourceModal.slint";
|
||||
|
@ -46,16 +46,16 @@ export component SideBar inherits Rectangle {
|
|||
ToggleButton {
|
||||
text: "All";
|
||||
text-alignment: left;
|
||||
active: AppWindowModels.no-source-selected;
|
||||
clicked => { AppWindowActions.source-clicked(-1) }
|
||||
active: AppModels.no-source-selected;
|
||||
clicked => { AppActions.source-clicked(-1) }
|
||||
|
||||
|
||||
}
|
||||
for item[index] in AppWindowModels.sources-selected: ToggleButton {
|
||||
for item[index] in AppModels.sources-selected: ToggleButton {
|
||||
text: item.name;
|
||||
text-alignment: left;
|
||||
active: item.selected;
|
||||
clicked => { AppWindowActions.source-clicked(item.id) }
|
||||
clicked => { AppActions.source-clicked(item.id) }
|
||||
VActionButton {
|
||||
visible: parent.active;
|
||||
icon-svg: Svg.cog;
|
||||
|
@ -70,7 +70,7 @@ export component SideBar inherits Rectangle {
|
|||
icon-svg: Svg.cog;
|
||||
text: "Settings";
|
||||
background: transparent;
|
||||
clicked => { AppWindowModels.open-settings-window() }
|
||||
clicked => { AppModels.open-settings-window() }
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue