Replace tons of hardcoded stuff

This commit is contained in:
Ly-sec
2025-08-16 01:17:44 +02:00
parent 2a5a3a1b78
commit c673b897cb
27 changed files with 155 additions and 161 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ Rectangle {
anchors.right: parent.right
anchors.top: parent.top
anchors.rightMargin: -6 * scaling * contentScale
anchors.topMargin: 4 * scaling * contentScale
anchors.topMargin: Style.marginTiniest * scaling * contentScale
Text {
anchors.centerIn: parent
+1 -1
View File
@@ -58,7 +58,7 @@ ColumnLayout {
}
background: Rectangle {
implicitWidth: 120 * scaling
implicitWidth: Style.baseWidgetSize * 3.75 * scaling
implicitHeight: preferredHeight
color: Colors.mSurface
border.color: combo.activeFocus ? Colors.mTertiary : Colors.mOutline
+3 -3
View File
@@ -9,12 +9,12 @@ RadioButton {
indicator: Rectangle {
id: outerCircle
implicitWidth: 20 * scaling
implicitHeight: 20 * scaling
implicitWidth: Style.baseWidgetSize * 0.625 * scaling
implicitHeight: Style.baseWidgetSize * 0.625 * scaling
radius: width * 0.5
color: "transparent"
border.color: root.checked ? Colors.mPrimary : Colors.mOnSurface
border.width: 2
border.width: Math.max(1, Style.borderMedium * scaling)
anchors.verticalCenter: parent.verticalCenter
Rectangle {
+1 -1
View File
@@ -17,7 +17,7 @@ Item {
signal editingFinished
// Sizing
implicitWidth: 320 * scaling
implicitWidth: Style.sliderWidth * 1.6 * scaling
implicitHeight: Style.baseWidgetSize * 2.75 * scaling
ColumnLayout {
+1 -1
View File
@@ -60,7 +60,7 @@ RowLayout {
Behavior on x {
NumberAnimation {
duration: 200
duration: Style.animationFast
easing.type: Easing.OutCubic
}
}
+1 -1
View File
@@ -121,7 +121,7 @@ Window {
// Timer to trigger show animation
Timer {
id: showTimer
interval: 10 // Very short delay to ensure component is visible
interval: Style.animationFast / 15 // Very short delay to ensure component is visible
repeat: false
onTriggered: {
// Animate to final values