-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new Style for ProgressBar and ReachedDataLimit part
- Loading branch information
Showing
5 changed files
with
185 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Controls.Basic | ||
import "../Style.js" as Style | ||
import "." | ||
|
||
Item { | ||
id: control | ||
|
||
property Component comp: component | ||
required property string dataToSync | ||
required property string dataUsing | ||
required property string plan | ||
required property real usedData // [0 = 1] | ||
|
||
width: parent.width | ||
|
||
Component { | ||
id: component | ||
|
||
Column { | ||
width: control.width - 2 * Style.commonSpacing | ||
spacing: Style.commonSpacing / 2 | ||
topPadding: Style.commonSpacing | ||
|
||
Item { | ||
width: parent.width | ||
height: dataToSyncText.height | ||
|
||
Text { | ||
width: parent.width | ||
text: qsTr("Data to sync") | ||
font: Qt.font(Style.p5) | ||
color: Style.night | ||
horizontalAlignment: Text.AlignLeft | ||
verticalAlignment: Text.AlignVCenter | ||
} | ||
Text { | ||
id: dataToSyncText | ||
|
||
width: parent.width | ||
text: control.dataToSync | ||
font: Qt.font(Style.t3) | ||
color: Style.night | ||
horizontalAlignment: Text.AlignRight | ||
verticalAlignment: Text.AlignVCenter | ||
} | ||
} | ||
|
||
Rectangle { width: parent.width; height: 1; color: Style.gray } | ||
|
||
Item { | ||
width: parent.width | ||
height: dataUsingText.height | ||
|
||
Text { | ||
width: parent.width | ||
text: qsTr("Using") | ||
font: Qt.font(Style.p5) | ||
color: Style.night | ||
horizontalAlignment: Text.AlignLeft | ||
verticalAlignment: Text.AlignVCenter | ||
} | ||
Text { | ||
id: dataUsingText | ||
|
||
width: parent.width | ||
text: control.dataUsing | ||
font: Qt.font(Style.t3) | ||
color: Style.night | ||
horizontalAlignment: Text.AlignRight | ||
verticalAlignment: Text.AlignVCenter | ||
} | ||
} | ||
|
||
MMProgressBar { | ||
position: control.usedData | ||
} | ||
|
||
Rectangle { width: parent.width; height: 1; color: Style.gray } | ||
|
||
Item { | ||
width: parent.width | ||
height: planText.height | ||
|
||
Text { | ||
width: parent.width | ||
text: qsTr("Plan") | ||
font: Qt.font(Style.p5) | ||
color: Style.night | ||
horizontalAlignment: Text.AlignLeft | ||
verticalAlignment: Text.AlignVCenter | ||
} | ||
Text { | ||
id: planText | ||
|
||
width: parent.width | ||
text: control.plan | ||
font: Qt.font(Style.t3) | ||
color: Style.night | ||
horizontalAlignment: Text.AlignRight | ||
verticalAlignment: Text.AlignVCenter | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
import QtQuick | ||
import "../Style.js" as Style | ||
import "." | ||
|
||
Rectangle { | ||
id: control | ||
|
||
required property real position // [0 - 1] | ||
|
||
width: parent.width | ||
height: 12 * __dp | ||
color: Style.lightGreen | ||
radius: height / 2 | ||
|
||
Rectangle { | ||
width: parent.width * control.position | ||
height: parent.height | ||
color: Style.grass | ||
radius: height / 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
022a771
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS - version 23.10.467211 just submitted!