diff --git a/sources/awesome-widget/package/contents/ui/widget.qml b/sources/awesome-widget/package/contents/ui/widget.qml index a5ce79b..cadc9e7 100644 --- a/sources/awesome-widget/package/contents/ui/widget.qml +++ b/sources/awesome-widget/package/contents/ui/widget.qml @@ -61,7 +61,22 @@ Item { height: implicitHeight width: parent.width QtControls.Button { - width: parent.width * 3 / 12 + width: parent.width * 3 / 15 + text: i18n("Bgcolor") + + onClicked: backgroundDialog.visible = true + + QtDialogs.ColorDialog { + id: backgroundDialog + title: i18n("Select a color") + onAccepted: { + var text = textPattern.text + textPattern.text = "" + text + "" + } + } + } + QtControls.Button { + width: parent.width * 3 / 15 text: i18n("Font") iconName: "font" @@ -88,7 +103,7 @@ Item { } } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-indent-more" onClicked: { @@ -100,7 +115,7 @@ Item { } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-text-bold" onClicked: { @@ -111,7 +126,7 @@ Item { } } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-text-italic" onClicked: { @@ -122,7 +137,7 @@ Item { } } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-text-underline" onClicked: { @@ -133,7 +148,7 @@ Item { } } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-text-strikethrough" onClicked: { @@ -145,7 +160,7 @@ Item { } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-justify-left" onClicked: { @@ -156,7 +171,7 @@ Item { } } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-justify-center" onClicked: { @@ -167,7 +182,7 @@ Item { } } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-justify-right" onClicked: { @@ -178,7 +193,7 @@ Item { } } QtControls.Button { - width: parent.width / 12 + width: parent.width / 15 iconName: "format-justify-fill" onClicked: {