Commit 7db0023e authored by Alessandro Portale's avatar Alessandro Portale

QmlDesigner: HighDpi fixes for some graphics

- Fresh arrow_down, which is used in many places
- Fresh arrow_up and some tweaks in spinbox
- Fresh graphics for "submenu", "expression and "placeholder"
- Fresh graphics for checkbox indicator
- Removed unused hover checkbox variants
- Added pressed state for checkbox_tr
- Removed radius of focus rectangle in the lineedit

Change-Id: I710ec6ac8ebf86c85a155a812e581cca88845ce3
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent 6980ccf8
......@@ -43,9 +43,8 @@ SpinBoxStyle {
opacity: styleData.upEnabled ? styleData.upPressed ? 0.5 : 1 : 0.5
Image {
source: "images/up-arrow.png"
anchors.centerIn: parent
anchors.verticalCenterOffset: 2
anchors.horizontalCenterOffset: -2
x: 1
y: 5
}
}
......@@ -55,9 +54,8 @@ SpinBoxStyle {
opacity: styleData.downEnabled ? styleData.downPressed ? 0.5 : 1 : 0.5
Image {
source: "images/down-arrow.png"
anchors.centerIn: parent
anchors.verticalCenterOffset: -1
anchors.horizontalCenterOffset: -2
x: 1
y: 2.5 // Hack! Spinbox sets an non-int offset, somewhere
}
}
......
......@@ -127,7 +127,6 @@ Controls.TextField {
anchors.fill: parent
anchors.margins: -1
color: "transparent"
radius: 4
opacity: 0.3
visible: control.activeFocus
}
......@@ -179,6 +178,8 @@ Controls.TextField {
indicator: Item {
implicitWidth: 16
implicitHeight: 16
x: 7
y: 1
Image { source: "qrc:qmldesigner/images/checkbox_tr_" +
(control.checked ? "checked": "unchecked") +
(control.pressed ? "_pressed": "") + ".png" }
......
<RCC>
<qresource prefix="/qmldesigner">
<file>images/checkbox_checked.png</file>
<file>images/checkbox_checked_hover.png</file>
<file>images/checkbox_checked@2x.png</file>
<file>images/checkbox_checked_pressed.png</file>
<file>images/checkbox_checked_pressed@2x.png</file>
<file>images/checkbox_unchecked.png</file>
<file>images/checkbox_unchecked_hover.png</file>
<file>images/checkbox_unchecked@2x.png</file>
<file>images/checkbox_unchecked_pressed.png</file>
<file>images/checkbox_unchecked_pressed@2x.png</file>
<file>images/checkbox_tr_checked.png</file>
<file>images/checkbox_tr_checked_hover.png</file>
<file>images/checkbox_tr_checked@2x.png</file>
<file>images/checkbox_tr_checked_pressed.png</file>
<file>images/checkbox_tr_checked_pressed@2x.png</file>
<file>images/checkbox_tr_unchecked.png</file>
<file>images/checkbox_tr_unchecked_hover.png</file>
<file>images/checkbox_tr_unchecked@2x.png</file>
<file>images/checkbox_tr_unchecked_pressed.png</file>
<file>images/checkbox_tr_unchecked_pressed@2x.png</file>
<file>images/eye_open.png</file>
<file>images/lock.png</file>
<file>images/hole.png</file>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment