mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-14 12:26:32 +02:00
redesign daemon progress bar to fit smaller screens
This commit is contained in:
parent
a0756ff64f
commit
3245d7d860
@ -26,13 +26,13 @@
|
|||||||
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
||||||
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.6
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: item
|
id: item
|
||||||
property int fillLevel: 0
|
property int fillLevel: 0
|
||||||
height: 44
|
height: 22
|
||||||
anchors.margins: 10
|
anchors.margins:15
|
||||||
visible: false
|
visible: false
|
||||||
//clip: true
|
//clip: true
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ Item {
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
height: 18
|
height: 22
|
||||||
//radius: 4
|
//radius: 4
|
||||||
color: "#FFFFFF"
|
color: "#FFFFFF"
|
||||||
|
|
||||||
@ -66,9 +66,9 @@ Item {
|
|||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.margins: 2
|
anchors.margins: 2
|
||||||
|
height: bar.height
|
||||||
property int maxWidth: parent.width - 4
|
property int maxWidth: parent.width - 4
|
||||||
width: (maxWidth * fillLevel) / 100
|
width: (maxWidth * fillLevel) / 100
|
||||||
|
|
||||||
color: {
|
color: {
|
||||||
if(item.fillLevel < 99 ) return "#FF6C3C"
|
if(item.fillLevel < 99 ) return "#FF6C3C"
|
||||||
//if(item.fillLevel < 99) return "#FFE00A"
|
//if(item.fillLevel < 99) return "#FFE00A"
|
||||||
@ -76,15 +76,18 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id:progressText
|
id:progressText
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
color: "#545454"
|
leftPadding: 8
|
||||||
|
color: "#000"
|
||||||
|
height: 18
|
||||||
|
verticalAlignment: Text.alignVCenter
|
||||||
text: qsTr("Synchronizing blocks")
|
text: qsTr("Synchronizing blocks")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user