Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
31cb0274
Commit
31cb0274
authored
Oct 07, 2022
by
Claudio Cambra
Browse files
Fix bottom padding of ScheduleView
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
32723d6e
Pipeline
#243066
passed with stage
in 2 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/MainViews/ScheduleView.qml
View file @
31cb0274
...
...
@@ -147,7 +147,6 @@ Kirigami.Page {
}
padding
:
0
bottomPadding
:
Kirigami
.
Settings
.
isMobile
?
Kirigami
.
Units
.
largeSpacing
*
2
:
Kirigami
.
Units
.
largeSpacing
PathView
{
id
:
pathView
...
...
@@ -222,18 +221,15 @@ Kirigami.Page {
ListView
{
id
:
scheduleListView
spacing
:
Kirigami
.
Settings
.
isMobile
?
Kirigami
.
Units
.
largeSpacing
*
2
:
Kirigami
.
Units
.
largeSpacing
/* Spacing in this view works thus:
* 1. scheduleListView's spacing adds space between each day delegate component (including separators)
* 2. Weekly listSectionHeader has spacing of the day delegate column removed from bottom margin
* 3. Delegate's Separator's spacing gives same space (minus some adjustment) between it and dayGrid
*/
Layout.bottomMargin
:
Kirigami
.
Units
.
largeSpacing
*
5
spacing
:
Kirigami
.
Settings
.
isMobile
?
Kirigami
.
Units
.
largeSpacing
*
2
:
Kirigami
.
Units
.
largeSpacing
highlightRangeMode
:
ListView
.
ApplyRange
onCountChanged
:
{
if
(
root
.
initialMonth
)
root
.
moveToSelected
();
}
onCountChanged
:
if
(
root
.
initialMonth
)
root
.
moveToSelected
();
model
:
Kalendar.MultiDayIncidenceModel
{
periodLength
:
1
...
...
@@ -249,7 +245,7 @@ Kirigami.Page {
id
:
dayMouseArea
width
:
dayColumn
.
width
height
:
dayColumn
.
height
height
:
model
.
index
===
scheduleListView
.
count
-
1
?
dayColumn
.
height
+
Kirigami
.
Units
.
largeSpacing
:
dayColumn
.
height
addDate
:
periodStartDate
onAddNewIncidence
:
addIncidence
(
type
,
addDate
)
...
...
@@ -301,7 +297,7 @@ Kirigami.Page {
id
:
weekHeading
Layout.fillWidth
:
true
Layout.bottomMargin
:
-
dayColumn
.
spacing
Layout.bottomMargin
:
-
dayColumn
.
spacing
// Remove default spacing, bring week header right down to day square
text
:
{
let
nextDay
=
DateUtils
.
getLastDayOfWeek
(
DateUtils
.
nextWeek
(
periodStartDate
)
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment