@ -47,14 +47,14 @@ Rectangle {
property double partSize: height / 2
property double partSize: height / 2
property double pi2: Math . PI * 2
property double pi2: Math . PI * 2
property color alphaBackColor: Qt . rgba ( theme . backgroundColor . r , theme . backgroundColor . g , theme . backgroundColor . b , 0.45 )
property color alphaBackColor2: Qt . rgba ( theme . backgroundColor . r , theme . backgroundColor . g , theme . backgroundColor . b , 0.8 )
width: Math . max ( minimumWidth , valueText . width + 4 * units . smallSpacing )
width: Math . max ( minimumWidth , valueText . width + 4 * units . smallSpacing )
color: theme . backgroundColor / / m a i n I t e m C o n t a i n e r . b a d g e I n d i c a t o r > 0 ? a l p h a B a c k C o l o r 2 : a l p h a B a c k C o l o r
color: theme . backgroundColor
radius: ( radiusPerCentage / 100 ) * ( height / 2 )
radius: ( radiusPerCentage / 100 ) * ( height / 2 )
border.width: Math . max ( 1 , width / 64 )
border.width: 1 / / M a t h . m a x ( 1 , w i d t h / 6 4 )
property color textColor: theme . textColor
property color highlightedColor: theme . buttonFocusColor
onProportionChanged: {
onProportionChanged: {
/ / c o n s o l e . l o g ( p r e v i o u s P r o p o r t i o n + " - " + p r o p o r t i o n ) ;
/ / c o n s o l e . l o g ( p r e v i o u s P r o p o r t i o n + " - " + p r o p o r t i o n ) ;
@ -86,7 +86,7 @@ Rectangle {
anchors.centerIn: parent
anchors.centerIn: parent
property color drawColor: theme . buttonFocusColor ; / / m a i n I t e m C o n t a i n e r . b a d g e I n d i c a t o r > 0 ? t h e m e . b u t t o n F o c u s C o l o r : t h e m e . h i g h l i g h t C o l o r ;
property color drawColor: highlightedColor
onDrawColorChanged: requestPaint ( ) ;
onDrawColorChanged: requestPaint ( ) ;
@ -144,7 +144,7 @@ Rectangle {
}
}
font.pixelSize: 0.62 * parent . height
font.pixelSize: 0.62 * parent . height
font.bold: true
font.bold: true
color: textWithBackgroundColor ? theme.backgroundColor : theme . textColor
color: textWithBackgroundColor ? parent.color : parent . textColor
visible: showNumber || showText
visible: showNumber || showText
}
}
@ -155,9 +155,10 @@ Rectangle {
anchors.leftMargin: parent . border . width
anchors.leftMargin: parent . border . width
anchors.rightMargin: parent . border . width
anchors.rightMargin: parent . border . width
color: "transparent"
color: "transparent"
border.width: parent . border . width
border.width: parent . border . width + 1
border.color: parent . alphaBackColor2
border.color: "black"
radius: parent . radius
radius: parent . radius
opacity: 0.4
}
}
Rectangle {
Rectangle {