mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-16 19:17:25 -04:00
Wizard: add scaleRatio
This commit is contained in:
@@ -60,13 +60,13 @@ ColumnLayout {
|
||||
id: headerColumn
|
||||
Layout.leftMargin: wizardLeftMargin
|
||||
Layout.rightMargin: wizardRightMargin
|
||||
Layout.bottomMargin: 40
|
||||
spacing: 20
|
||||
Layout.bottomMargin: 40 * scaleRatio
|
||||
spacing: 20 * scaleRatio
|
||||
|
||||
Text {
|
||||
Layout.fillWidth: true
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 28
|
||||
font.pixelSize: 28 * scaleRatio
|
||||
color: "#3F3F3F"
|
||||
wrapMode: Text.Wrap
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
@@ -76,7 +76,7 @@ ColumnLayout {
|
||||
Text {
|
||||
Layout.fillWidth: true
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 18
|
||||
font.pixelSize: 18 * scaleRatio
|
||||
color: "#4A4646"
|
||||
wrapMode: Text.Wrap
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
@@ -116,17 +116,16 @@ ColumnLayout {
|
||||
property int margin: (isMobile) ? 0 : Math.floor(appWindow.width/12);
|
||||
|
||||
id: gridView
|
||||
cellWidth: 140
|
||||
cellHeight: 120
|
||||
cellWidth: 140 * scaleRatio
|
||||
cellHeight: 120 * scaleRatio
|
||||
model: languagesModel
|
||||
// Hack to center the flag grid
|
||||
property int columns: Math.floor(appWindow.width/140)
|
||||
Layout.leftMargin: margin + (appWindow.width - cellWidth*columns) /2
|
||||
property int columns: Math.floor(appWindow.width/cellWidth)
|
||||
Layout.leftMargin: margin + (appWindow.width - cellWidth*columns) /2
|
||||
Layout.rightMargin: margin
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
|
||||
clip: true
|
||||
|
||||
delegate: ColumnLayout {
|
||||
@@ -136,9 +135,9 @@ ColumnLayout {
|
||||
// Layout.alignment: Qt.AlignHCenter
|
||||
Rectangle {
|
||||
id: flagRect
|
||||
width: 60; height: 60
|
||||
width: 60 * scaleRatio; height: 60 * scaleRatio
|
||||
// anchors.centerIn: parent
|
||||
radius: 30
|
||||
radius: 30 * scaleRatio
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
color: gridView.currentIndex === index ? "#DBDBDB" : "#FFFFFF"
|
||||
Image {
|
||||
@@ -149,7 +148,7 @@ ColumnLayout {
|
||||
|
||||
Text {
|
||||
font.family: "Arial"
|
||||
font.pixelSize: 18
|
||||
font.pixelSize: 18 * scaleRatio
|
||||
// anchors.horizontalCenter: parent.horizontalCenter
|
||||
font.bold: gridView.currentIndex === index
|
||||
// elide: Text.ElideRight
|
||||
|
||||
Reference in New Issue
Block a user