ClearClock/package/contents/ui/lib/ShadowConfig.qml

76 lines
1.3 KiB
QML

import QtQuick 2.4
import QtQuick.Controls 2.12 as QtControls
import QtQuick.Layouts 1.15 as QtLayouts
import QtQuick.Dialogs 1.2
import "."
QtLayouts.RowLayout {
property color colorValue
property int radiusValue
property int offsetXValue
property int offsetYValue
QtControls.Label {
text: i18n("Shadow style:")
opacity: if (enabled) 1
else 0.4
}
ColorButton {
id: shadowColorButton
value: colorValue
onValueChanged: {
colorValue = value
}
}
QtControls.Label {
text: i18n("Radius")
opacity: if (enabled) 1
else 0.4
}
QtControls.SpinBox {
id: radiusSpinBox
from: 0
to: 50
value: radiusValue
onValueChanged: {
radiusValue = value
}
}
QtControls.Label {
text: i18n("Offset")
opacity: if (enabled) 1
else 0.4
}
QtControls.SpinBox {
id: offsetXSpinBox
from: 0
to: 100
value: offsetXValue
onValueChanged: {
offsetXValue = value
}
}
QtControls.SpinBox {
id: offsetYSpinBox
from: 0
to: 100
value: offsetYValue
onValueChanged: {
offsetYValue = value
}
}
}