-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1775 from KomodoPlatform/zombie_pirates
Pirate (ARRR) integration
- Loading branch information
Showing
116 changed files
with
3,795 additions
and
776 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
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
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,69 @@ | ||
// Qt Imports | ||
import QtQuick 2.15 | ||
import QtQuick.Layouts 1.15 | ||
import QtQuick.Controls 2.15 | ||
|
||
// Project Imports | ||
import "../Constants" as Dex | ||
import "../Components" as Dex | ||
import App 1.0 | ||
|
||
RowLayout | ||
{ | ||
id: root | ||
property double label_width: 175 | ||
property double bar_width_pct: 0 | ||
property color bar_color: Dex.DexTheme.greenColor | ||
property alias label: _label | ||
property alias pct_bar: _pct_bar | ||
property alias pct_value: _pct_value | ||
anchors.leftMargin: 10 | ||
anchors.rightMargin: 10 | ||
width: parent.width | ||
height: 42 | ||
spacing: 10 | ||
|
||
Dex.DexLabel | ||
{ | ||
id: _label | ||
font.bold: true | ||
Layout.preferredWidth: label_width | ||
Layout.alignment: Qt.AlignVCenter | ||
Component.onCompleted: font.weight = Font.Bold | ||
} | ||
|
||
// Progress bar | ||
Item | ||
{ | ||
Layout.alignment: Qt.AlignVCenter | ||
Layout.fillWidth: true | ||
height: 5 | ||
|
||
Rectangle | ||
{ | ||
id: bg_bar | ||
anchors.fill: parent | ||
radius: 5 | ||
opacity: 0.1 | ||
color: DexTheme.foregroundColorLightColor5 | ||
} | ||
|
||
Rectangle | ||
{ | ||
id: _pct_bar | ||
height: parent.height | ||
radius: 5 | ||
width: bar_width_pct / 100 * parent.width | ||
color: root.bar_color | ||
} | ||
} | ||
|
||
Dex.DexLabel | ||
{ | ||
id: _pct_value | ||
Layout.preferredWidth: 60 | ||
text: "0.00 %" | ||
Layout.alignment: Qt.AlignVCenter | ||
Component.onCompleted: font.family = 'lato' | ||
} | ||
} |
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
Oops, something went wrong.