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
Qt.callLater(() => selectedIndex = 0)
// Reset cursor position if needed
if (shouldResetCursor && text === "") {
cursorPosition = 0

View file

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

View file

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