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
14c4adfb
Commit
14c4adfb
authored
Nov 12, 2021
by
Claudio Cambra
Browse files
Account for current time label boldness in week view hour label width
parent
62119132
Pipeline
#96954
passed with stage
in 5 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/WeekView.qml
View file @
14c4adfb
...
...
@@ -43,13 +43,18 @@ Kirigami.Page {
readonly
property
real
dayWidth
:
((
root
.
width
-
hourLabelWidth
-
leftPadding
-
scrollbarWidth
)
/
daysToShow
)
-
gridLineWidth
readonly
property
real
incidenceSpacing
:
Kirigami
.
Units
.
smallSpacing
/
2
readonly
property
real
gridLineWidth
:
1.0
readonly
property
real
hourLabelWidth
:
font
Metrics
.
boundingRect
(
new
Date
(
0
,
0
,
0
,
2
,
0
,
0
,
0
).
toLocaleTimeString
(
Qt
.
locale
(),
Locale
.
NarrowFormat
)).
width
+
Kirigami
.
Units
.
largeSpacing
*
2
readonly
property
real
hourLabelWidth
:
hourLabel
Metrics
.
boundingRect
(
new
Date
(
0
,
0
,
0
,
0
,
0
,
0
,
0
).
toLocaleTimeString
(
Qt
.
locale
(),
Locale
.
NarrowFormat
)).
width
+
Kirigami
.
Units
.
largeSpacing
*
2
.5
readonly
property
real
periodHeight
:
Kirigami
.
Units
.
gridUnit
/
2
Kirigami.Theme.inherit
:
false
Kirigami.Theme.colorSet
:
Kirigami
.
Theme
.
View
FontMetrics
{
id
:
hourLabelMetrics
font.bold
:
true
}
background
:
Rectangle
{
color
:
Kirigami
.
Theme
.
backgroundColor
}
...
...
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