mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Ui changes, remove unused buttons
This commit is contained in:
parent
36a2fe9220
commit
e28ba796cd
53 changed files with 133 additions and 27125 deletions
|
@ -30,22 +30,6 @@ export component MainView inherits Rectangle {
|
|||
horizontal-stretch: 1;
|
||||
alignment: start;
|
||||
spacing: 8px;
|
||||
VButton {
|
||||
text: "New task";
|
||||
clicked => { Backend.open_new_task_form({
|
||||
eventSourceId: -1,
|
||||
eventId: -1,
|
||||
})}
|
||||
icon-source: @image-url("./images/add.png");
|
||||
icon-colorize: Colors.greenyellow;
|
||||
}
|
||||
|
||||
VButton {
|
||||
text: "New event";
|
||||
clicked => { Backend.open_new_event_form() }
|
||||
icon-source: @image-url("./images/add.png");
|
||||
icon-colorize: Colors.greenyellow;
|
||||
}
|
||||
VButton {
|
||||
text: "Show/Hide completed tasks";
|
||||
clicked => {
|
||||
|
@ -71,9 +55,10 @@ export component MainView inherits Rectangle {
|
|||
VerticalLayout {
|
||||
alignment: start;
|
||||
spacing: 16px;
|
||||
if Backend.visible_tasks.length == 0 : VText {
|
||||
if Backend.visible_tasks.length == 0 && Backend.unscheduled-tasks.length == 0 : VText {
|
||||
text: "There is no task to show";
|
||||
horizontal-alignment: center;
|
||||
vertical-alignment: center;
|
||||
}
|
||||
for day[dayIndex] in Backend.visible_tasks: VerticalLayout {
|
||||
Rectangle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue