aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2018-04-09 16:26:25 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2018-04-10 13:18:44 +0000
commit3c08fb2668bd18eeb7a5ad167164f215f66e6999 (patch)
tree8283216d1bb71e2dc3b8082cd316b2cdd170941f /share/qtcreator
parenta4e9624ce122f9db256ad4f0bbc94063003e29fa (diff)
QmlDesigner: Adjust font pixel size if pixel density is high
We define some fonts in pixel size and those have to be increased if the pixel density is high. Change-Id: I88e932d967aaa9d8757e733048d457e9e7c17f5b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'share/qtcreator')
-rw-r--r--share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml2
-rw-r--r--share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml2
-rw-r--r--share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml2
3 files changed, 3 insertions, 3 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml
index 09f4f6c8fe4..6d0d42dd6ec 100644
--- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml
+++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml
@@ -50,7 +50,7 @@ Item {
Text {
id: text
- font.pixelSize: 9
+ font.pixelSize: Theme.smallFontPixelSize()
elide: Text.ElideMiddle
wrapMode: Text.WordWrap
anchors.top: itemIcon.bottom
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml
index 35217c2553d..30b741f99da 100644
--- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml
+++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml
@@ -69,7 +69,7 @@ ScrollView {
readonly property color lighterBackgroundColor: Theme.color(Theme.FancyToolBarSeparatorColor)
property int textWidth: 58
- property int textHeight: 22
+ property int textHeight: Theme.smallFontPixelSize() * 2
property int cellHorizontalMargin: 1
property int cellVerticalSpacing: 2
diff --git a/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml b/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml
index 769a43eb318..f3f220562ea 100644
--- a/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml
+++ b/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml
@@ -134,7 +134,7 @@ Rectangle {
TextField {
id: stateNameField
y: 4
- font.pixelSize: 9
+ font.pixelSize: Theme.smallFontPixelSize()
anchors.left: whenButton.right
// use the spacing which the image to the delegate rectangle has
anchors.leftMargin: 4