put icons to fixed size
This commit is contained in:
parent
0d490310b8
commit
5e7af6969b
@ -70,7 +70,8 @@ Loader {
|
||||
|
||||
RowLayout {
|
||||
id: batRow
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.centerIn: parent
|
||||
height: parent.height
|
||||
spacing: 5
|
||||
CustomText {
|
||||
id: batText
|
||||
|
||||
@ -8,7 +8,7 @@ Rectangle {
|
||||
id: root
|
||||
radius: implicitHeight / 2
|
||||
color: pavuArea.containsMouse ? Colors.primaryContainer : Colors.surfaceContainer
|
||||
implicitWidth: volumeIcon.implicitWidth + 10
|
||||
implicitWidth: Settings.config.barHeight - 8
|
||||
implicitHeight: Settings.config.barHeight - 10
|
||||
CustomIcon {
|
||||
id: volumeIcon
|
||||
|
||||
@ -3,14 +3,11 @@ import qs
|
||||
import qs.settings
|
||||
|
||||
Text {
|
||||
property real fill: 0
|
||||
font.family: "Material Symbols Rounded"
|
||||
color: Colors.onSurfaceColor
|
||||
font.pixelSize: Settings.config.fontSize
|
||||
font.family: "Material Symbols Rounded"
|
||||
font.pixelSize: 14
|
||||
font.variableAxes: ({
|
||||
FILL: fill,
|
||||
GRAD: 200,
|
||||
opsz: 36,
|
||||
wght: 400
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user