mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
37 lines
875 B
QML
37 lines
875 B
QML
import qs.modules.common.widgets
|
|
import qs.modules.common
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
RowLayout {
|
|
id: root
|
|
property string text: ""
|
|
property string icon
|
|
property alias value: spinBoxWidget.value
|
|
property alias stepSize: spinBoxWidget.stepSize
|
|
property alias from: spinBoxWidget.from
|
|
property alias to: spinBoxWidget.to
|
|
spacing: 10
|
|
Layout.leftMargin: 8
|
|
Layout.rightMargin: 8
|
|
|
|
RowLayout {
|
|
OptionalMaterialSymbol {
|
|
icon: root.icon
|
|
}
|
|
StyledText {
|
|
id: labelWidget
|
|
Layout.fillWidth: true
|
|
text: root.text
|
|
font.pixelSize: Appearance.font.pixelSize.small
|
|
color: Appearance.colors.colOnSecondaryContainer
|
|
}
|
|
}
|
|
|
|
StyledSpinBox {
|
|
id: spinBoxWidget
|
|
Layout.fillWidth: false
|
|
value: root.value
|
|
}
|
|
}
|