port widget to dbus

This commit is contained in:
2024-03-08 17:32:07 +02:00
parent 0fcfb7d7e4
commit 423597dbd9
54 changed files with 921 additions and 693 deletions

View File

@ -15,32 +15,22 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
import QtQuick 2.0
import QtQuick.Controls.Styles 1.3 as QtStyles
import QtQuick.Dialogs 1.1 as QtDialogs
import QtQuick 2.15
import QtQuick.Dialogs
Row {
height: implicitHeight
width: parent.width
ButtonSelector {
// TODO somehow doesn't work
// background: Rectangle {
// color: value
// }
property alias text: selector.text
property alias value: selector.value
onButtonActivated: colorDialog.visible = true
ButtonSelector {
id: selector
style: QtStyles.ButtonStyle {
background: Rectangle {
color: value
}
}
onButtonActivated: colorDialog.visible = true
}
QtDialogs.ColorDialog {
ColorDialog {
id: colorDialog
title: i18n("Select a color")
color: value
onAccepted: value = colorDialog.color
selectedColor: value
onAccepted: value = selectedColor
}
}