mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 18:23: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
|
@ -4,7 +4,7 @@ import { MainView } from "views/TasksView.slint";
|
|||
import { Palette } from "@selenite";
|
||||
import { CalendarView } from "views/CalendarView.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 { AppActions } from "../../shared/Actions.slint";
|
||||
import { SideBar } from "views/SideBar.slint";
|
||||
|
@ -33,12 +33,14 @@ export component AppWindow inherits Window {
|
|||
spacing: 8px;
|
||||
ToggleButton {
|
||||
text: "Calendar";
|
||||
icon-svg: Svg.calendar;
|
||||
active: !show-tasks;
|
||||
clicked => { show-tasks = false }
|
||||
}
|
||||
|
||||
ToggleButton {
|
||||
text: "Tasks";
|
||||
icon-svg: Svg.tasks;
|
||||
active: show-tasks;
|
||||
clicked => { show-tasks = true }
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ export component CalendarView inherits Rectangle {
|
|||
VButton {
|
||||
text: "New event";
|
||||
icon-svg: Svg.plus;
|
||||
icon-colorize: greenyellow;
|
||||
icon-colorize: Palette.green;
|
||||
clicked => {
|
||||
createEventPopup.show();
|
||||
}
|
||||
|
|
|
@ -56,12 +56,7 @@ export component SideBar inherits Rectangle {
|
|||
text-alignment: left;
|
||||
active: item.selected;
|
||||
clicked => { AppActions.source-clicked(item.id) }
|
||||
VActionButton {
|
||||
visible: parent.active;
|
||||
icon-svg: Svg.cog;
|
||||
background: transparent;
|
||||
clicked => { editSourcePopup.edit(item.id) }
|
||||
}
|
||||
right-clicked => { editSourcePopup.edit(item.id) }
|
||||
}
|
||||
}
|
||||
VerticalLayout {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue