mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 01:13:19 +00:00
Improve calendar's lines color contrast
This commit is contained in:
parent
84760b603d
commit
6ca4fd718d
5 changed files with 48 additions and 32 deletions
|
@ -8,46 +8,65 @@ import { EditSourceWindow } from "../EditSourceWindow/EditSourceWindow.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";
|
||||
|
||||
export component AppWindow inherits Window {
|
||||
|
||||
title: "Mirai";
|
||||
//min-height: 100px;
|
||||
//max-height: 4000px; // needed, otherwise the window wants to fit the content (on Swaywm)
|
||||
background: Palette.pane;
|
||||
background: Palette.background;
|
||||
|
||||
private property<bool> show-tasks: false;
|
||||
|
||||
HorizontalLayout {
|
||||
// padding: 16px;
|
||||
//spacing: 16px;
|
||||
VerticalLayout {
|
||||
VerticalLayout {
|
||||
padding: 16px;
|
||||
alignment: LayoutAlignment.stretch;
|
||||
spacing: 8px;
|
||||
VButton {
|
||||
text: "Calendar";
|
||||
clicked => { show-tasks = false }
|
||||
}
|
||||
Rectangle {
|
||||
background: Palette.pane;
|
||||
// border-radius: 8px;
|
||||
//clip: true;
|
||||
VerticalLayout {
|
||||
VerticalLayout {
|
||||
padding: 16px;
|
||||
alignment: LayoutAlignment.stretch;
|
||||
spacing: 8px;
|
||||
ToggleButton {
|
||||
text: "Calendar";
|
||||
active: !show-tasks;
|
||||
clicked => { show-tasks = false }
|
||||
}
|
||||
|
||||
VButton {
|
||||
text: "Tasks";
|
||||
clicked => { show-tasks = true }
|
||||
ToggleButton {
|
||||
text: "Tasks";
|
||||
active: show-tasks;
|
||||
clicked => { show-tasks = true }
|
||||
}
|
||||
}
|
||||
SideBar {
|
||||
min-width: 256px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
width: 1px;
|
||||
background: Palette.card-background;
|
||||
}
|
||||
Rectangle {
|
||||
background: Palette.background;
|
||||
//border-radius: 8px;
|
||||
//clip: true;
|
||||
VerticalLayout {
|
||||
if show-tasks : MainView {
|
||||
horizontal-stretch: 1;
|
||||
}
|
||||
if !show-tasks : CalendarView {
|
||||
horizontal-stretch: 1;
|
||||
}
|
||||
}
|
||||
SideBar {
|
||||
min-width: 256px;
|
||||
}
|
||||
}
|
||||
VerticalLayout {
|
||||
|
||||
|
||||
if show-tasks : MainView {
|
||||
horizontal-stretch: 1;
|
||||
}
|
||||
if !show-tasks : CalendarView {
|
||||
horizontal-stretch: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue