diff --git a/external/selenite b/external/selenite index 6ff7dd8..fe9e710 160000 --- a/external/selenite +++ b/external/selenite @@ -1 +1 @@ -Subproject commit 6ff7dd8ea890bec8f4f61304e64bbfeabd61e7a8 +Subproject commit fe9e7106f1c2d81603fd78f805490ee92ecce062 diff --git a/src/components/CreateTaskOrEvent.slint b/src/components/CreateTaskOrEvent.slint index 756c32a..bda2791 100644 --- a/src/components/CreateTaskOrEvent.slint +++ b/src/components/CreateTaskOrEvent.slint @@ -58,7 +58,9 @@ export component CreateTaskOrEvent inherits Rectangle { VText { text: "for"; vertical-alignment: bottom;} VerticalLayout { alignment: end; - sourceInput := ComboBox { + // This ComboBox cause UI lag when loaded first time. + // Same thing without the `model` set. + sourceInput := ComboBox { model: root.sources; } diff --git a/src/windows/AppWindow/AppWindow.slint b/src/windows/AppWindow/AppWindow.slint index 341a4f3..236439c 100644 --- a/src/windows/AppWindow/AppWindow.slint +++ b/src/windows/AppWindow/AppWindow.slint @@ -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 } } diff --git a/src/windows/AppWindow/views/CalendarView.slint b/src/windows/AppWindow/views/CalendarView.slint index 7808076..422c2e6 100644 --- a/src/windows/AppWindow/views/CalendarView.slint +++ b/src/windows/AppWindow/views/CalendarView.slint @@ -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(); } diff --git a/src/windows/AppWindow/views/SideBar.slint b/src/windows/AppWindow/views/SideBar.slint index 13476c4..d61fe3d 100644 --- a/src/windows/AppWindow/views/SideBar.slint +++ b/src/windows/AppWindow/views/SideBar.slint @@ -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 {