From 92cb2427f8d8e5cd3c1b662070715b4e5110f0b5 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Thu, 21 Oct 2021 15:18:23 +0200 Subject: [PATCH] QmlDesigner: Fix hex label eliding in ColorEditor Change-Id: I144511f8cfe4caabaf84d19331a6cb4222884cdf Reviewed-by: Thomas Hartmann --- .../imports/HelperWidgets/ColorEditor.qml | 4 +++- .../propertyEditorQmlSources/imports/StudioTheme/Values.qml | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml index 8006be8ffa1..30dbeccea9e 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml @@ -787,7 +787,9 @@ SecondColumnLayout { ControlLabel { text: "Hex" - width: StudioTheme.Values.colorEditorPopupHexLabelWidth + width: 2 * StudioTheme.Values.colorEditorPopupSpinBoxWidth + + StudioTheme.Values.controlGap + horizontalAlignment: Text.AlignLeft } } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml index 716dfc3b28a..9e72fea4153 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml @@ -199,8 +199,6 @@ QtObject { property real colorEditorPopupCmoboBoxWidth: 110 property real colorEditorPopupSpinBoxWidth: 54 - property real colorEditorPopupHexLabelWidth: 20 - // Theme Colors property string themePanelBackground: Theme.color(Theme.DSpanelBackground)