Improve text wrap on mining page

This commit is contained in:
Michael Campagnaro 2017-03-17 17:55:08 -04:00
parent 897bc582f0
commit 53d7962eaa

View file

@ -50,7 +50,9 @@ Rectangle {
/* main layout */ /* main layout */
ColumnLayout { ColumnLayout {
id: mainLayout id: mainLayout
anchors.margins: 10 anchors.margins: 40
anchors.bottomMargin: 10
anchors.left: parent.left anchors.left: parent.left
anchors.top: parent.top anchors.top: parent.top
anchors.right: parent.right anchors.right: parent.right
@ -60,7 +62,6 @@ Rectangle {
// solo // solo
ColumnLayout { ColumnLayout {
id: soloBox id: soloBox
anchors.margins: 40
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
@ -82,13 +83,9 @@ Rectangle {
Text { Text {
id: soloMainLabel id: soloMainLabel
text: qsTr("Mining helps the Monero network build resilience.<br>") text: qsTr("Mining helps the Monero network build resilience. The more mining is done, the harder it is to attack the network. Mining also gives you a small chance to earn some Monero. Your computer will search for Monero block solutions. If you find a block, you will get the associated reward.") + translationManager.emptyString
+ qsTr("The more mining is done, the harder it is to attack the network.<br>")
+ qsTr("Mining also gives you a small chance to earn some Monero.<br>")
+ qsTr("Your computer will search for Monero block solutions.<br>")
+ qsTr("If you find a block, you will get the associated reward.<br>")
+ translationManager.emptyString
wrapMode: Text.Wrap wrapMode: Text.Wrap
Layout.fillWidth: true
} }
RowLayout { RowLayout {
@ -193,7 +190,6 @@ Rectangle {
Text { Text {
id: statusText id: statusText
anchors.leftMargin: 40
anchors.topMargin: 17 anchors.topMargin: 17
text: qsTr("Status: not mining") text: qsTr("Status: not mining")
textFormat: Text.RichText textFormat: Text.RichText