mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
42 lines
1011 B
QML
42 lines
1011 B
QML
import qs.modules.common.widgets
|
|
import qs.modules.common
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
RowLayout {
|
|
id: root
|
|
spacing: 10
|
|
Layout.leftMargin: 8
|
|
Layout.rightMargin: 8
|
|
|
|
property string text: ""
|
|
property string buttonIcon: ""
|
|
property alias value: slider.value
|
|
property bool usePercentTooltip: true
|
|
property real from: slider.from
|
|
property real to: slider.to
|
|
|
|
RowLayout {
|
|
spacing: 10
|
|
OptionalMaterialSymbol {
|
|
id: iconWidget
|
|
icon: root.buttonIcon
|
|
iconSize: Appearance.font.pixelSize.larger
|
|
}
|
|
StyledText {
|
|
id: labelWidget
|
|
text: root.text
|
|
color: Appearance.colors.colOnSecondaryContainer
|
|
}
|
|
}
|
|
|
|
StyledSlider {
|
|
id: slider
|
|
Layout.fillWidth: true
|
|
configuration: StyledSlider.Configuration.XS
|
|
usePercentTooltip: root.usePercentTooltip
|
|
value: root.value
|
|
from: root.from
|
|
to: root.to
|
|
}
|
|
} |