diff options
author | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-07-01 14:35:40 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-07-01 13:47:50 +0000 |
commit | 2fc7b791ff8648bbd8d3a81ad8c37229e8a2129a (patch) | |
tree | bb1b6f58255cf8cdaddd7b728e525f0aed78ce61 /share | |
parent | eb34226adbec79c749940b3cdc65330aaf4c9571 (diff) | |
download | qt-creator-2fc7b791ff8648bbd8d3a81ad8c37229e8a2129a.tar.gz |
QmlDesigner: Use smaller font in item library
This allows to show more items in the library.
While we get more and more components it is important
that we can show the increasing amount of items properly.
Change-Id: Ifc5db011b65b7accf96af5192ce2702b6f112da6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml | 2 | ||||
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml index cd74f453f9..d5b0e37b6f 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml @@ -48,7 +48,7 @@ Rectangle { Text { id: text - font.pixelSize: 11 + font.pixelSize: 9 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 9f1c33ea76..3edab94482 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml @@ -67,12 +67,12 @@ ScrollView { property color backgroundColor: "#4f4f4f" property color lighterBackgroundColor: "#5f5f5f" - property int textWidth: 55 - property int textHeight: 26 + property int textWidth: 58 + property int textHeight: 22 - property int cellHorizontalMargin: 5 - property int cellVerticalSpacing: 3 - property int cellVerticalMargin: 7 + property int cellHorizontalMargin: 1 + property int cellVerticalSpacing: 2 + property int cellVerticalMargin: 4 // the following depend on the actual shape of the item delegate property int cellWidth: textWidth + 2 * cellHorizontalMargin |