This commit is contained in:
Ly-sec 2025-08-25 06:48:58 +02:00
parent 9e41697001
commit f42fa11862
3 changed files with 10 additions and 10 deletions

View file

@ -275,7 +275,7 @@ NPanel {
} }
// Defer selectedIndex reset to avoid binding loops // Defer selectedIndex reset to avoid binding loops
Qt.callLater(() => selectedIndex = 0) Qt.callLater(() => selectedIndex = 0)
// Reset cursor position if needed // Reset cursor position if needed
if (shouldResetCursor && text === "") { if (shouldResetCursor && text === "") {
cursorPosition = 0 cursorPosition = 0

View file

@ -27,7 +27,7 @@ Item {
}) })
} }
ScrollView { ScrollView {
anchors.fill: parent anchors.fill: parent
clip: true clip: true
ScrollBar.vertical.policy: ScrollBar.AsNeeded ScrollBar.vertical.policy: ScrollBar.AsNeeded
@ -37,7 +37,7 @@ Item {
ColumnLayout { ColumnLayout {
id: contentColumn id: contentColumn
width: Math.max(parent.width, 300) // Minimum reasonable width without scaling width: Math.max(parent.width, 300) // Minimum reasonable width without scaling
ColumnLayout { ColumnLayout {
spacing: Style.marginL * scaling spacing: Style.marginL * scaling
Layout.margins: Style.marginL * scaling Layout.margins: Style.marginL * scaling
@ -147,12 +147,12 @@ Item {
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
ColumnLayout { ColumnLayout {
spacing: Style.marginXXS * scaling spacing: Style.marginXXS * scaling
Layout.fillWidth: true Layout.fillWidth: true
Layout.minimumWidth: 0 Layout.minimumWidth: 0
NText { NText {
text: "Scale" text: "Scale"
font.pointSize: Style.fontSizeM * scaling font.pointSize: Style.fontSizeM * scaling
@ -167,7 +167,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
} }
} }
NText { NText {
text: `${Math.round(ScalingService.scaleByName(modelData.name) * 100)}%` text: `${Math.round(ScalingService.scaleByName(modelData.name) * 100)}%`
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
@ -179,7 +179,7 @@ Item {
spacing: Style.marginS * scaling spacing: Style.marginS * scaling
Layout.fillWidth: true Layout.fillWidth: true
Layout.minimumWidth: 0 Layout.minimumWidth: 0
NSlider { NSlider {
id: scaleSlider id: scaleSlider
from: 0.6 from: 0.6
@ -219,4 +219,4 @@ Item {
} }
} }
} }
} }

View file

@ -10,8 +10,8 @@ Singleton {
// Widget registry object mapping widget names to components // Widget registry object mapping widget names to components
property var widgets: ({ property var widgets: ({
"ActiveWindow": activeWindowComponent, "ActiveWindow": activeWindowComponent,
// "ArchUpdater": archUpdaterComponent, "Battery"// "ArchUpdater": archUpdaterComponent,
"Battery": batteryComponent, : batteryComponent,
"Bluetooth": bluetoothComponent, "Bluetooth": bluetoothComponent,
"Brightness": brightnessComponent, "Brightness": brightnessComponent,
"Clock": clockComponent, "Clock": clockComponent,