Index: sources/gui/qml/compounds/NumPad.qml =================================================================== diff -u -rb07595ece768d4093d78ca1ef068a993ff4f70a3 -r596aa427447d3757005ae759c64c52ebb26b9503 --- sources/gui/qml/compounds/NumPad.qml (.../NumPad.qml) (revision b07595ece768d4093d78ca1ef068a993ff4f70a3) +++ sources/gui/qml/compounds/NumPad.qml (.../NumPad.qml) (revision 596aa427447d3757005ae759c64c52ebb26b9503) @@ -123,11 +123,11 @@ Text { id: _title anchors { top : _root.top - topMargin : Variables.defaultMargin + topMargin : Variables.defaultMargin * 2.5 horizontalCenter: _root.horizontalCenter } font { - pixelSize : 26 + pixelSize : Fonts.fontPixelSection weight : Font.Medium } color : "white" @@ -140,7 +140,7 @@ horizontalCenter: parent.horizontalCenter } font { - pixelSize : 20 + pixelSize : 22 weight : Font.Medium } color : "#E0CDA9" @@ -152,8 +152,8 @@ topMargin : Variables.defaultMargin horizontalCenter: _root.horizontalCenter } - width : 300 - height : 75 + width : _root.width * 0.70 + height : 90 radius : 10 color : "#324867" @@ -185,7 +185,7 @@ top : _numRect.bottom topMargin : 5 } - font.pixelSize : 18 + font.pixelSize : 20 color : "white" } @@ -194,13 +194,13 @@ left : _root.left right : _root.right bottom : _root.bottom - margins : _numRect.visible ? 20 : 70 + margins : Variables.defaultMargin * 2 } columns : 3 columnSpacing : 2 rows : 4 rowSpacing : 2 - height : 275 + height : _root.height * 0.50 property bool replaceValueText: true property int cellWidth : _numPadGrid.width / columns @@ -215,19 +215,32 @@ delegate: Button { id: _keyButton width : _numPadGrid.cellWidth height : _numPadGrid.cellHeight - palette.buttonText : enabled ? "white" : "dimgrey" text : modelData === backSpace ? "" : modelData icon.source : modelData === backSpace ? modelData : "" - icon.width : 40 - icon.height : 40 + icon.height : 45 + icon.width : 45 enabled : modelData === "." ? precision > 0 : true - font.pixelSize : 30 - background: Rectangle { id: _keyBackground - color : _keyButton.pressed ? Colors.backgroundButtonSelectDark : - modelData === backSpace ? Qt.darker ("#263B57", 1.05) : - "#263B57" - } + contentItem: Rectangle { + anchors.fill : parent + color : _keyButton.pressed ? Colors.backgroundButtonSelectDark : + modelData === backSpace ? Qt.darker ("#263B57", 1.05) : + "#263B57" + Image { + anchors.centerIn: parent + source : _keyButton.icon.source + width : _keyButton.icon.width + height : _keyButton.icon.height + fillMode : Image.PreserveAspectFit + } + Text { + anchors.centerIn: parent + text : _keyButton.text + font.pixelSize : 40 + color : enabled ? "white" : "dimgrey" + } + } + onPressed: { if (modelData === backSpace ) { _numPadGrid.replaceValueText = false