Add scaling to everything, edit SidePanel

This commit is contained in:
Ly-sec 2025-08-07 15:38:27 +02:00
parent 68d7add474
commit 0b49aff13d
52 changed files with 3138 additions and 3043 deletions

View file

@ -4,11 +4,11 @@ import qs.Settings
Item {
id: root
property int innerRadius: 34
property int outerRadius: 48
property int innerRadius: 34 * Theme.uiScale
property int outerRadius: 48 * Theme.uiScale
property color fillColor: "#fff"
property color strokeColor: "#fff"
property int strokeWidth: 0
property int strokeWidth: 0 * Theme.uiScale
property var values: []
property int usableOuter: 48
@ -24,7 +24,7 @@ Item {
Rectangle {
property real value: root.values[index]
property real angle: (index / root.values.length) * 360
width: Math.max(2, (root.innerRadius * 2 * Math.PI) / root.values.length - 4)
width: Math.max(2 * Theme.uiScale, (root.innerRadius * 2 * Math.PI) / root.values.length - 4 * Theme.uiScale)
height: Settings.settings.visualizerType === "diamond" ? value * 2 * (usableOuter - root.innerRadius) : value * (usableOuter - root.innerRadius)
radius: width / 2
color: root.fillColor