mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Replace tons of hardcoded stuff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
@@ -60,7 +60,7 @@ RowLayout {
|
||||
|
||||
Behavior on x {
|
||||
NumberAnimation {
|
||||
duration: 200
|
||||
duration: Style.animationFast
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user