forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -48,7 +48,7 @@ Rectangle {
|
|||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: text
|
id: text
|
||||||
font.pixelSize: 11
|
font.pixelSize: 9
|
||||||
elide: Text.ElideMiddle
|
elide: Text.ElideMiddle
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
anchors.top: itemIcon.bottom
|
anchors.top: itemIcon.bottom
|
||||||
|
@@ -67,12 +67,12 @@ ScrollView {
|
|||||||
property color backgroundColor: "#4f4f4f"
|
property color backgroundColor: "#4f4f4f"
|
||||||
property color lighterBackgroundColor: "#5f5f5f"
|
property color lighterBackgroundColor: "#5f5f5f"
|
||||||
|
|
||||||
property int textWidth: 55
|
property int textWidth: 58
|
||||||
property int textHeight: 26
|
property int textHeight: 22
|
||||||
|
|
||||||
property int cellHorizontalMargin: 5
|
property int cellHorizontalMargin: 1
|
||||||
property int cellVerticalSpacing: 3
|
property int cellVerticalSpacing: 2
|
||||||
property int cellVerticalMargin: 7
|
property int cellVerticalMargin: 4
|
||||||
|
|
||||||
// the following depend on the actual shape of the item delegate
|
// the following depend on the actual shape of the item delegate
|
||||||
property int cellWidth: textWidth + 2 * cellHorizontalMargin
|
property int cellWidth: textWidth + 2 * cellHorizontalMargin
|
||||||
|
Reference in New Issue
Block a user