Skip to content

Commit ded6cbb

Browse files
committed
Insure that the main menu's undo / redo items respect the font size setting
1 parent ee893e2 commit ded6cbb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/qml/qgismobileapp.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3450,7 +3450,7 @@ ApplicationWindow {
34503450
topMargin: sceneTopMargin
34513451
bottomMargin: sceneBottomMargin
34523452
skipFirstRow: true
3453-
minimumRowWidth: Math.max(50, undoRedoMetrics.width + undoButton.leftPadding * 2 + undoButton.rightPadding * 2 + 42 * 2)
3453+
minimumRowWidth: Math.max(50, undoRedoMetrics.width + (undoButton.leftPadding + undoButton.rightPadding + 42) * 2)
34543454

34553455
TextMetrics {
34563456
id: undoRedoMetrics
@@ -3470,6 +3470,7 @@ ApplicationWindow {
34703470
width: parent.width / 2
34713471
anchors.left: parent.left
34723472
text: qsTr("Undo")
3473+
font: Theme.defaultFont
34733474
icon.source: Theme.getThemeVectorIcon("ic_undo_black_24dp")
34743475
leftPadding: Theme.menuItemLeftPadding
34753476

@@ -3496,6 +3497,7 @@ ApplicationWindow {
34963497
width: parent.width / 2
34973498
anchors.right: parent.right
34983499
text: qsTr("Redo")
3500+
font: Theme.defaultFont
34993501
icon.source: Theme.getThemeVectorIcon("ic_redo_black_24dp")
35003502

35013503
contentItem: IconLabel {

0 commit comments

Comments
 (0)