diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2016-07-25 16:46:47 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-07-25 14:51:20 +0000 |
commit | ce36804665c00bf9b74f9f8f299becaa4f2f4baa (patch) | |
tree | 39ba4164c41480c5109dd8767ee70f9660f6e9fb /share | |
parent | dc8fcdf028f9fd1bcff17a215977090ed41df790 (diff) | |
download | qt-creator-ce36804665c00bf9b74f9f8f299becaa4f2f4baa.tar.gz |
QmlDesigner: New anchor icons
Themable and High-DPI
Change-Id: Ic073a6a8c5f3fc7eb28b9b498d3dddbebedb243c
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Diffstat (limited to 'share')
12 files changed, 21 insertions, 21 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/AnchorButtons.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/AnchorButtons.qml index 58e8df834d..e7f9859ee4 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/AnchorButtons.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/AnchorButtons.qml @@ -33,7 +33,7 @@ ButtonRow { id: buttonRow ButtonRowButton { - iconSource: "images/anchor-top.png" + iconSource: "image://icons/anchor-top" tooltip: qsTr("Anchor item to the top.") property bool topAnchored: anchorBackend.topAnchored @@ -53,7 +53,7 @@ ButtonRow { } ButtonRowButton { - iconSource: "images/anchor-bottom.png" + iconSource: "image://icons/anchor-bottom" tooltip: qsTr("Anchor item to the bottom.") property bool bottomAnchored: anchorBackend.bottomAnchored @@ -74,7 +74,7 @@ ButtonRow { } ButtonRowButton { - iconSource: "images/anchor-left.png" + iconSource: "image://icons/anchor-left" tooltip: qsTr("Anchor item to the left.") property bool leftAnchored: anchorBackend.leftAnchored @@ -94,7 +94,7 @@ ButtonRow { } ButtonRowButton { - iconSource: "images/anchor-right.png" + iconSource: "image://icons/anchor-right" tooltip: qsTr("Anchor item to the right.") property bool rightAnchored: anchorBackend.rightAnchored @@ -119,7 +119,7 @@ ButtonRow { ButtonRowButton { - iconSource: "images/anchor-fill.png" + iconSource: "image://icons/anchor-fill" tooltip: qsTr("Fill parent item.") property bool isFilled: anchorBackend.isFilled @@ -141,7 +141,7 @@ ButtonRow { } ButtonRowButton { - iconSource: "images/anchor-vertical.png" + iconSource: "image://icons/anchor-vertical" tooltip: qsTr("Anchor item vertically.") property bool verticalCentered: anchorBackend.verticalCentered; @@ -163,7 +163,7 @@ ButtonRow { } ButtonRowButton { - iconSource: "images/anchor-horizontal.png" + iconSource: "image://icons/anchor-horizontal" tooltip: qsTr("Anchor item horizontally.") property bool horizontalCentered: anchorBackend.horizontalCentered; diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ButtonRowButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ButtonRowButton.qml index 794cdd0053..61975a6946 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ButtonRowButton.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ButtonRowButton.qml @@ -69,7 +69,7 @@ Item { anchors.fill: parent visible: checked - color: creatorTheme.QmlDesignerBackgroundColorDarker + color: creatorTheme.QmlDesignerBackgroundColorDarkAlternate } RoundedPanel { @@ -78,15 +78,15 @@ Item { anchors.fill: parent visible: !checked - color: creatorTheme.BackgroundColorDark + color: creatorTheme.QmlDesignerBackgroundColorDarker } } Image { id: image - //source: iconSource + width: 16 + height: 16 anchors.centerIn: parent - anchors.leftMargin: leftPadding } ToolTipArea { diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/IconLabel.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/IconLabel.qml index 50bdd33965..9306539a3b 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/IconLabel.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/IconLabel.qml @@ -38,7 +38,7 @@ Item { height: 16 Image { id: image - anchors.centerIn: parent + anchors.fill: parent } } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-bottom.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-bottom.png Binary files differdeleted file mode 100644 index e3fe210293..0000000000 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-bottom.png +++ /dev/null diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-fill.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-fill.png Binary files differdeleted file mode 100644 index 5416866937..0000000000 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-fill.png +++ /dev/null diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-horizontal.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-horizontal.png Binary files differdeleted file mode 100644 index 8a9075a676..0000000000 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-horizontal.png +++ /dev/null diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-left.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-left.png Binary files differdeleted file mode 100644 index 3d3df4048c..0000000000 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-left.png +++ /dev/null diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-right.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-right.png Binary files differdeleted file mode 100644 index b0a20b110b..0000000000 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-right.png +++ /dev/null diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-top.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-top.png Binary files differdeleted file mode 100644 index 4220e37a2d..0000000000 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-top.png +++ /dev/null diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-vertical.png b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-vertical.png Binary files differdeleted file mode 100644 index eedb058608..0000000000 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/images/anchor-vertical.png +++ /dev/null diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml index 75e815098c..2e2446a03b 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml @@ -128,7 +128,7 @@ RowLayout { exclusive: true ButtonRowButton { - iconSource: verticalAnchor ? "../HelperWidgets/images/anchor-top.png" : "../HelperWidgets/images/anchor-left.png" + iconSource: "image://icons/anchor-" + (verticalAnchor ? "top" : "left") tooltip: verticalAnchor ? qsTr("Anchor to the top of the target.") : qsTr("Anchor to the left of the target.") onClicked: { if (!invertRelativeTargets) @@ -139,14 +139,14 @@ RowLayout { } ButtonRowButton { - iconSource: verticalAnchor ? "../HelperWidgets/images/anchor-vertical.png" : "../HelperWidgets/images/anchor-horizontal.png" + iconSource: "image://icons/anchor-" + (verticalAnchor ? "vertical" : "horizontal") tooltip: verticalAnchor ? qsTr("Anchor to the vertical center of the target.") : qsTr("Anchor to the horizontal center of the target.") onClicked: centerButtonClicked(); } ButtonRowButton { - iconSource: verticalAnchor ? "../HelperWidgets/images/anchor-bottom.png" : "../HelperWidgets/images/anchor-right.png" + iconSource: "image://icons/anchor-" + (verticalAnchor ? "bottom" : "right") tooltip: verticalAnchor ? qsTr("Anchor to the bottom of the target.") : qsTr("Anchor to the right of the target.") onClicked: { if (!invertRelativeTargets) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml index 6ae989f67e..f211a4b37f 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml @@ -50,7 +50,7 @@ Section { AnchorRow { visible: anchorBackend.topAnchored; - iconSource: "../HelperWidgets/images/anchor-top.png" + iconSource: "image://icons/anchor-top" anchorMargin: backendValues.anchors_topMargin targetName: anchorBackend.topTarget onTargetChanged: { @@ -73,7 +73,7 @@ Section { AnchorRow { visible: anchorBackend.bottomAnchored; - iconSource: "../HelperWidgets/images/anchor-bottom.png" + iconSource: "image://icons/anchor-bottom" anchorMargin: backendValues.anchors_bottomMargin targetName: anchorBackend.bottomTarget onTargetChanged: { @@ -97,7 +97,7 @@ Section { AnchorRow { visible: anchorBackend.leftAnchored; - iconSource: "../HelperWidgets/images/anchor-left.png" + iconSource: "image://icons/anchor-left" anchorMargin: backendValues.anchors_leftMargin targetName: anchorBackend.leftTarget onTargetChanged: { @@ -120,7 +120,7 @@ Section { AnchorRow { visible: anchorBackend.rightAnchored; - iconSource: "../HelperWidgets/images/anchor-right.png" + iconSource: "image://icons/anchor-right" anchorMargin: backendValues.anchors_rightMargin targetName: anchorBackend.rightTarget onTargetChanged: { @@ -145,7 +145,7 @@ Section { AnchorRow { showAlternativeTargets: false visible: anchorBackend.horizontalCentered; - iconSource: "../HelperWidgets/images/anchor-horizontal.png" + iconSource: "image://icons/anchor-horizontal" anchorMargin: backendValues.anchors_horizontalCenterOffset targetName: anchorBackend.horizontalTarget onTargetChanged: { @@ -158,7 +158,7 @@ Section { AnchorRow { showAlternativeTargets: false visible: anchorBackend.verticalCentered; - iconSource: "../HelperWidgets/images/anchor-vertical.png" + iconSource: "image://icons/anchor-vertical" anchorMargin: backendValues.anchors_verticalCenterOffset targetName: anchorBackend.verticalTarget onTargetChanged: { |