mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Tons of small changes, add SidePanel, NCard, NCircleStat, NSystemMnitor
This commit is contained in:
@@ -73,8 +73,28 @@ NLoader {
|
||||
// NSlider
|
||||
ColumnLayout {
|
||||
spacing: 16 * scaling
|
||||
NText { text: "NSlider"; color: Colors.accentSecondary }
|
||||
NSlider {}
|
||||
NText { text: "Scaling"; color: Colors.accentSecondary }
|
||||
RowLayout {
|
||||
spacing: Style.marginSmall * scaling
|
||||
NText { text: `${Math.round(Scaling.overrideScale * 100)}%`; Layout.alignment: Qt.AlignVCenter }
|
||||
NSlider {
|
||||
id: scaleSlider
|
||||
from: 0.6
|
||||
to: 1.8
|
||||
stepSize: 0.01
|
||||
value: Scaling.overrideScale
|
||||
onMoved: function() { Scaling.overrideScale = value }
|
||||
onPressedChanged: function() { Scaling.overrideEnabled = true }
|
||||
}
|
||||
NIconButton {
|
||||
icon: "restart_alt"
|
||||
sizeMultiplier: 0.7
|
||||
onClicked: function() {
|
||||
Scaling.overrideEnabled = false
|
||||
Scaling.overrideScale = 1.0
|
||||
}
|
||||
}
|
||||
}
|
||||
NDivider { Layout.fillWidth: true }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user