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
Plasma
Plasma Desktop
Commits
196547fd
Commit
196547fd
authored
Jan 13, 2022
by
Jan Blackquill
🌈
Committed by
Nate Graham
Jan 19, 2022
Browse files
taskmanager/Badge: blue ocean style
parent
81ff6aa5
Pipeline
#125837
passed with stage
in 3 minutes and 50 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
applets/taskmanager/package/contents/ui/Badge.qml
View file @
196547fd
...
...
@@ -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
:
PlasmaCore
.
Units
.
devicePixelRatio
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
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