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
9a5b33d4
Commit
9a5b33d4
authored
Sep 06, 2022
by
Claudio Cambra
Browse files
Fix incidence delegate text color in hourly views
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
f04ea460
Pipeline
#228151
passed with stage
in 2 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/MainViews/HourlyView.qml
View file @
9a5b33d4
...
...
@@ -1009,7 +1009,9 @@ Kirigami.Page {
ColumnLayout
{
id
:
incidenceContents
readonly
property
color
textColor
:
LabelUtils
.
getIncidenceLabelColor
(
modelData
.
color
,
root
.
isDark
)
readonly
property
color
textColor
:
isOpenOccurrence
?
(
LabelUtils
.
isDarkColor
(
modelData
.
color
)
?
"
white
"
:
"
black
"
)
:
LabelUtils
.
getIncidenceLabelColor
(
modelData
.
color
,
root
.
isDark
)
readonly
property
bool
isTinyHeight
:
parent
.
height
<=
Kirigami
.
Units
.
gridUnit
clip
:
true
...
...
@@ -1048,8 +1050,7 @@ Kirigami.Page {
implicitHeight
:
Kirigami
.
Units
.
iconSizes
.
smallMedium
source
:
modelData
.
incidenceTypeIcon
isMask
:
true
color
:
isOpenOccurrence
?
(
LabelUtils
.
isDarkColor
(
modelData
.
color
)
?
"
white
"
:
"
black
"
)
:
incidenceContents
.
textColor
color
:
incidenceContents
.
textColor
Behavior
on
color
{
ColorAnimation
{
duration
:
Kirigami
.
Units
.
shortDuration
;
easing.type
:
Easing
.
OutCubic
}
}
visible
:
parent
.
width
>
Kirigami
.
Units
.
gridUnit
*
4
}
...
...
@@ -1060,8 +1061,7 @@ Kirigami.Page {
text
:
modelData
.
startTime
.
toLocaleTimeString
(
Qt
.
locale
(),
Locale
.
NarrowFormat
)
+
"
–
"
+
modelData
.
endTime
.
toLocaleTimeString
(
Qt
.
locale
(),
Locale
.
NarrowFormat
)
wrapMode
:
Text
.
Wrap
renderType
:
Text
.
QtRendering
color
:
isOpenOccurrence
?
(
LabelUtils
.
isDarkColor
(
modelData
.
color
)
?
"
white
"
:
"
black
"
)
:
incidenceContents
.
textColor
color
:
incidenceContents
.
textColor
Behavior
on
color
{
ColorAnimation
{
duration
:
Kirigami
.
Units
.
shortDuration
;
easing.type
:
Easing
.
OutCubic
}
}
visible
:
parent
.
width
>
Kirigami
.
Units
.
gridUnit
*
3
}
...
...
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