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
Plasma
Plasma Desktop
Commits
0edf5382
Commit
0edf5382
authored
Jan 13, 2022
by
Jan Blackquill
🌈
Browse files
taskmanager/Badge: blue ocean style
parent
57dae632
Pipeline
#124557
passed with stage
in 4 minutes and 4 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
applets/taskmanager/package/contents/ui/Badge.qml
View file @
0edf5382
...
...
@@ -17,8 +17,11 @@ Rectangle {
property
int
number
:
0
implicitWidth
:
Math
.
max
(
height
,
Math
.
round
(
label
.
contentWidth
+
radius
/
2
))
// Add some padding around.
color
:
PlasmaCore
.
Theme
.
highlightColor
readonly
property
color
color_
:
PlasmaCore
.
Theme
.
highlightColor
color
:
Qt
.
rgba
(
color_
.
r
,
color_
.
g
,
color_
.
b
,
0.3
)
radius
:
height
/
2
border.color
:
color_
border.width
:
1
PlasmaComponents.Label
{
id
:
label
...
...
@@ -30,7 +33,6 @@ Rectangle {
fontSizeMode
:
Text
.
VerticalFit
font.pointSize
:
1024
minimumPointSize
:
5
color
:
PlasmaCore
.
Theme
.
highlightedTextColor
text
:
{
if
(
badgeRect
.
number
<
0
)
{
return
i18nc
(
"
Invalid number of new messages, overlay, keep short
"
,
"
—
"
);
...
...
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