mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-01 17:03:19 +00:00
Minor visual improvements with icons usage
This commit is contained in:
parent
ef56efd314
commit
e10b466b60
5 changed files with 9 additions and 10 deletions
2
external/selenite
vendored
2
external/selenite
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 6ff7dd8ea890bec8f4f61304e64bbfeabd61e7a8
|
Subproject commit fe9e7106f1c2d81603fd78f805490ee92ecce062
|
|
@ -58,7 +58,9 @@ export component CreateTaskOrEvent inherits Rectangle {
|
||||||
VText { text: "for"; vertical-alignment: bottom;}
|
VText { text: "for"; vertical-alignment: bottom;}
|
||||||
VerticalLayout {
|
VerticalLayout {
|
||||||
alignment: end;
|
alignment: end;
|
||||||
sourceInput := ComboBox {
|
// This ComboBox cause UI lag when loaded first time.
|
||||||
|
// Same thing without the `model` set.
|
||||||
|
sourceInput := ComboBox {
|
||||||
model: root.sources;
|
model: root.sources;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { MainView } from "views/TasksView.slint";
|
||||||
import { Palette } from "@selenite";
|
import { Palette } from "@selenite";
|
||||||
import { CalendarView } from "views/CalendarView.slint";
|
import { CalendarView } from "views/CalendarView.slint";
|
||||||
import { VButton } from "../../../external/selenite/components/Button.slint";
|
import { VButton } from "../../../external/selenite/components/Button.slint";
|
||||||
import { ToggleButton } from "../../../external/selenite/components/index.slint";
|
import { ToggleButton, Svg } from "../../../external/selenite/components/index.slint";
|
||||||
import { VTextInput } from "../../../external/selenite/components/TextInput.slint";
|
import { VTextInput } from "../../../external/selenite/components/TextInput.slint";
|
||||||
import { AppActions } from "../../shared/Actions.slint";
|
import { AppActions } from "../../shared/Actions.slint";
|
||||||
import { SideBar } from "views/SideBar.slint";
|
import { SideBar } from "views/SideBar.slint";
|
||||||
|
@ -33,12 +33,14 @@ export component AppWindow inherits Window {
|
||||||
spacing: 8px;
|
spacing: 8px;
|
||||||
ToggleButton {
|
ToggleButton {
|
||||||
text: "Calendar";
|
text: "Calendar";
|
||||||
|
icon-svg: Svg.calendar;
|
||||||
active: !show-tasks;
|
active: !show-tasks;
|
||||||
clicked => { show-tasks = false }
|
clicked => { show-tasks = false }
|
||||||
}
|
}
|
||||||
|
|
||||||
ToggleButton {
|
ToggleButton {
|
||||||
text: "Tasks";
|
text: "Tasks";
|
||||||
|
icon-svg: Svg.tasks;
|
||||||
active: show-tasks;
|
active: show-tasks;
|
||||||
clicked => { show-tasks = true }
|
clicked => { show-tasks = true }
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ export component CalendarView inherits Rectangle {
|
||||||
VButton {
|
VButton {
|
||||||
text: "New event";
|
text: "New event";
|
||||||
icon-svg: Svg.plus;
|
icon-svg: Svg.plus;
|
||||||
icon-colorize: greenyellow;
|
icon-colorize: Palette.green;
|
||||||
clicked => {
|
clicked => {
|
||||||
createEventPopup.show();
|
createEventPopup.show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,12 +56,7 @@ export component SideBar inherits Rectangle {
|
||||||
text-alignment: left;
|
text-alignment: left;
|
||||||
active: item.selected;
|
active: item.selected;
|
||||||
clicked => { AppActions.source-clicked(item.id) }
|
clicked => { AppActions.source-clicked(item.id) }
|
||||||
VActionButton {
|
right-clicked => { editSourcePopup.edit(item.id) }
|
||||||
visible: parent.active;
|
|
||||||
icon-svg: Svg.cog;
|
|
||||||
background: transparent;
|
|
||||||
clicked => { editSourcePopup.edit(item.id) }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VerticalLayout {
|
VerticalLayout {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue