@@ -176,7 +176,7 @@ FocusScope
176
176
z : menuShadow .z + 1
177
177
color : jaspTheme .fileMenuColorBackground
178
178
focus : true
179
- width : column .maxWidth + ( itemScrollbar . visible ? itemScrollbar .width : 0 )
179
+ width : column .maxWidth + jaspTheme . menuPadding + itemScrollbar .width
180
180
height : menuOffset .y + column .maxHeight > menuMaxPos .y ? menuMaxPos .y - menuOffset .y : column .maxHeight
181
181
182
182
MouseArea
@@ -238,7 +238,7 @@ FocusScope
238
238
anchors .fill : parent
239
239
anchors .topMargin : jaspTheme .menuPadding / 2
240
240
anchors .leftMargin : jaspTheme .menuPadding / 2
241
- anchors .rightMargin : itemScrollbar .width + anchors . margins
241
+ anchors .rightMargin : itemScrollbar .width + jaspTheme . menuPadding / 2
242
242
clip : true
243
243
boundsBehavior : Flickable .StopAtBounds
244
244
contentWidth : column .width
@@ -315,9 +315,9 @@ FocusScope
315
315
? jaspTheme .buttonColorHovered
316
316
: " transparent"
317
317
318
- property bool itemEnabled: menu .props .hasOwnProperty (" enabled" ) ? menu .props [" enabled" ][index] : (model .modelData !== undefined || model .isEnabled )
319
- property int padding: 4 + (menu .hasIcons ? 1 : 0 ) + (menuItemShortcut .text ? 1 : 0 )
320
- property double initWidth: (menu .hasIcons ? menuItemImage .width : 0 ) + menuItemText .implicitWidth + menuItemShortcut .implicitWidth + menu ._iconPad * padding
318
+ property bool itemEnabled: menu .props .hasOwnProperty (" enabled" ) ? menu .props [" enabled" ][index] : (model .modelData !== undefined || model .isEnabled )
319
+ property int padding: 4 + (menu .hasIcons ? 1 : 0 ) + (menuItemShortcut .text ? 1 : 0 )
320
+ property double initWidth: (menu .hasIcons ? menuItemImage .width : 0 ) + menuItemText .implicitWidth + menuItemShortcut .implicitWidth + menu ._iconPad * padding
321
321
322
322
Image
323
323
{
@@ -381,7 +381,7 @@ FocusScope
381
381
{
382
382
id : menuItem
383
383
width : initWidth
384
- height : (isSmall ? 0.5 : 1 ) * jaspTheme .menuGroupTitleHeight
384
+ height : (isSmall ? 0.666 : 1 ) * jaspTheme .menuGroupTitleHeight
385
385
386
386
property double initWidth: menuItemImage .width + menuItemText .implicitWidth + 15 * preferencesModel .uiScale
387
387
@@ -410,12 +410,15 @@ FocusScope
410
410
{
411
411
id : menuItemText
412
412
text : model .modelData !== undefined ? model .modelData .substring (3 ) : displayText
413
- font : jaspTheme .fontGroupTitle
413
+ font : isSmall ? jaspTheme . fontGroupTitleSmall : jaspTheme .fontGroupTitle
414
414
color : jaspTheme .textEnabled
415
+ verticalAlignment : Text .AlignVCenter
415
416
anchors
416
417
{
417
- left : menuItemImage .right
418
+ left : menuItemImage .visible ? menuItemImage .right : parent .left
419
+ right : parent .right
418
420
leftMargin : menu ._iconPad
421
+ rightMargin : menu ._iconPad
419
422
verticalCenter : parent .verticalCenter
420
423
}
421
424
}
0 commit comments