Skip to content
GitLab
Menu
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
916a4172
Commit
916a4172
authored
Nov 14, 2021
by
Claudio Cambra
Browse files
Made currently selected time more obvious with bolding in the time picker
parent
90714f29
Pipeline
#97527
passed with stage
in 6 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/TimePicker.qml
View file @
916a4172
...
@@ -106,6 +106,7 @@ Item {
...
@@ -106,6 +106,7 @@ Item {
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
opacity
:
hourView
.
currentIndex
==
thisIndex
?
1
:
0.7
opacity
:
hourView
.
currentIndex
==
thisIndex
?
1
:
0.7
font.bold
:
hourView
.
currentIndex
==
thisIndex
text
:
modelData
<
10
?
String
(
modelData
).
padStart
(
2
,
"
0
"
)
:
modelData
text
:
modelData
<
10
?
String
(
modelData
).
padStart
(
2
,
"
0
"
)
:
modelData
}
}
...
@@ -149,6 +150,7 @@ Item {
...
@@ -149,6 +150,7 @@ Item {
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
opacity
:
minuteView
.
currentIndex
==
thisIndex
?
1
:
0.7
opacity
:
minuteView
.
currentIndex
==
thisIndex
?
1
:
0.7
font.bold
:
minuteView
.
currentIndex
==
thisIndex
text
:
minuteToDisplay
<
10
?
String
(
minuteToDisplay
).
padStart
(
2
,
"
0
"
)
:
minuteToDisplay
text
:
minuteToDisplay
<
10
?
String
(
minuteToDisplay
).
padStart
(
2
,
"
0
"
)
:
minuteToDisplay
}
}
...
@@ -165,6 +167,7 @@ Item {
...
@@ -165,6 +167,7 @@ Item {
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
visible
:
timePicker
.
secondsPicker
visible
:
timePicker
.
secondsPicker
font.bold
:
true
text
:
"
:
"
text
:
"
:
"
}
}
...
@@ -186,6 +189,7 @@ Item {
...
@@ -186,6 +189,7 @@ Item {
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignVCenter
opacity
:
secondsView
.
currentIndex
==
thisIndex
?
1
:
0.7
opacity
:
secondsView
.
currentIndex
==
thisIndex
?
1
:
0.7
font.bold
:
secondsView
.
currentIndex
==
thisIndex
text
:
modelData
<
10
?
String
(
modelData
).
padStart
(
2
,
"
0
"
)
:
modelData
text
:
modelData
<
10
?
String
(
modelData
).
padStart
(
2
,
"
0
"
)
:
modelData
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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