aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-08 23:50:23 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-08 23:50:23 +0200
commit1588f1ba7bf5336d599e8f1b9748c918fd2b920e (patch)
tree0508ee8a1bd48abc1b19dcc9926400c9303c0bdd /components
parent26abdee5c47017a80117b1bed5ee36586a240c62 (diff)
parenteef11bf22a2cd40a9fd4288c48e62bd214cb8fef (diff)
downloadmonzero-gui-1588f1ba7bf5336d599e8f1b9748c918fd2b920e.tar.gz
monzero-gui-1588f1ba7bf5336d599e8f1b9748c918fd2b920e.tar.xz
monzero-gui-1588f1ba7bf5336d599e8f1b9748c918fd2b920e.zip
Merge pull request #196
eef11bf remove qtquick 2.6 dependency (Jaquee) 3245d7d redesign daemon progress bar to fit smaller screens (Jaquee) a0756ff adjust menuButton height dynamically (Jaquee) 4274167 adjust appwindow min height to fit content (Jaquee)
Diffstat (limited to 'components')
-rw-r--r--components/DaemonProgress.qml37
-rw-r--r--components/MenuButton.qml2
2 files changed, 23 insertions, 16 deletions
diff --git a/components/DaemonProgress.qml b/components/DaemonProgress.qml
index 1ed533e3..5fac2079 100644
--- a/components/DaemonProgress.qml
+++ b/components/DaemonProgress.qml
@@ -31,8 +31,8 @@ import QtQuick 2.0
Item {
id: item
property int fillLevel: 0
- height: 44
- anchors.margins: 10
+ height: 22
+ anchors.margins:15
visible: false
//clip: true
@@ -42,7 +42,6 @@ Item {
fillLevel = progressLevel
console.log("target block: ",progressLevel)
progressText.text = qsTr("Synchronizing blocks %1/%2").arg(currentBlock.toFixed(0)).arg(targetBlock.toFixed(0));
- console.log("Progress text: " + progressText.text);
// TODO: lower daemon block height cache, ttl and refresh interval?
@@ -56,8 +55,8 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
- height: 18
- //radius: 4
+ height: 22
+ radius: 2
color: "#FFFFFF"
Rectangle {
@@ -66,25 +65,33 @@ Item {
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.margins: 2
+ height: bar.height
property int maxWidth: parent.width - 4
width: (maxWidth * fillLevel) / 100
-
color: {
- if(item.fillLevel < 99) return "#FF6C3C"
+ if(item.fillLevel < 99 ) return "#FF6C3C"
//if(item.fillLevel < 99) return "#FFE00A"
return "#36B25C"
}
}
- }
- Text {
- id:progressText
- anchors.bottom: parent.bottom
- font.family: "Arial"
- font.pixelSize: 12
- color: "#545454"
- text: qsTr("Synchronizing blocks")
+ Rectangle {
+ color:"#333"
+ anchors.bottom: parent.bottom
+ anchors.left: parent.left
+ anchors.leftMargin: 8
+
+ Text {
+ id:progressText
+ anchors.bottom: parent.bottom
+ font.family: "Arial"
+ font.pixelSize: 12
+ color: "#000"
+ text: qsTr("Synchronizing blocks")
+ height:18
+ }
+ }
}
}
diff --git a/components/MenuButton.qml b/components/MenuButton.qml
index 95790662..50238bd8 100644
--- a/components/MenuButton.qml
+++ b/components/MenuButton.qml
@@ -36,7 +36,7 @@ Rectangle {
property alias symbol: symbolText.text
signal clicked()
- height: 64
+ height: (appWindow.height >= 800) ? 64 : 60
color: checked ? "#FFFFFF" : "#1C1C1C"
Item {