forked from Shinonome/dots-hyprland
sidebar: night light dialog
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import qs.modules.common
|
||||
import qs.modules.common.widgets
|
||||
import qs.services
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Widgets
|
||||
|
||||
Column {
|
||||
id: root
|
||||
|
||||
property alias text: sliderName.text
|
||||
property alias from: sliderWidget.from
|
||||
property alias to: sliderWidget.to
|
||||
property alias value: sliderWidget.value
|
||||
property alias tooltipContent: sliderWidget.tooltipContent
|
||||
property alias stopIndicatorValues: sliderWidget.stopIndicatorValues
|
||||
|
||||
signal moved()
|
||||
|
||||
spacing: -2
|
||||
ContentSubsectionLabel {
|
||||
id: sliderName
|
||||
visible: text?.length > 0
|
||||
text: ""
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
}
|
||||
}
|
||||
StyledSlider {
|
||||
id: sliderWidget
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
leftMargin: 4
|
||||
rightMargin: leftMargin
|
||||
}
|
||||
configuration: StyledSlider.Configuration.S
|
||||
onMoved: root.moved()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user