mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-29 05:47:23 +03:00
introduce 3D style option for BadgeText
This commit is contained in:
parent
eb0c52c52b
commit
d7a41ab264
@ -27,6 +27,8 @@ Rectangle {
|
||||
|
||||
property double previousProportion: 0
|
||||
|
||||
property bool style3d: true
|
||||
|
||||
property int numberValue
|
||||
property string textValue
|
||||
|
||||
@ -59,6 +61,8 @@ Rectangle {
|
||||
property color textColor: theme.textColor
|
||||
property color highlightedColor: theme.buttonFocusColor
|
||||
|
||||
readonly property bool singleCharacter: (showNumber && numberValue<=9 && numberValue>=0)|| (showText && textValue.length===1)
|
||||
|
||||
onProportionChanged: {
|
||||
// console.log(previousProportion + " - "+proportion);
|
||||
if ((proportion - 0.03 >= previousProportion) || (proportion===1)) {
|
||||
@ -162,12 +166,14 @@ Rectangle {
|
||||
border.color: "black"
|
||||
radius: parent.radius
|
||||
opacity: 0.4
|
||||
|
||||
visible: style3d
|
||||
}
|
||||
|
||||
Rectangle{
|
||||
anchors.fill: parent
|
||||
border.width: parent.borderWidth
|
||||
border.color: parent.borderColor
|
||||
border.color: style3d ? parent.borderColor : parent.color
|
||||
color: "transparent"
|
||||
radius: parent.radius
|
||||
opacity: parent.borderOpacity
|
||||
|
Loading…
x
Reference in New Issue
Block a user