Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve tendermint withdraws #15

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Addressbook/AddAddressForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Dex.Rectangle
Layout.fillHeight: true
Layout.leftMargin: 4
}
Dex.DefaultText {
Dex.DexLabel {
Layout.minimumWidth: 120
Layout.maximumWidth: 120
text: qsTr("Use standard network address")
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Components/Blank.qml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Item {
anchors.fill: bBox2
source: bBox2
radius: 32
DefaultText {
DexLabel {
anchors.centerIn: parent
text: "Jemm"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MultipageModal
MultipageModalContent
{
titleText: qsTr("Failed to enable %1").arg(coin_to_enable_ticker)
DefaultText
DexLabel
{
Layout.fillWidth: true
text: qsTr("Enabling %1 did not succeed. Limit of enabled coins might have been reached.")
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Components/CexInfoModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MultipageModal {
MultipageModalContent {
titleText: General.cex_icon + " " + qsTr("Market Data")

DefaultText {
DexLabel {
Layout.preferredHeight: 200
Layout.fillWidth: true

Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Components/CheckEye.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Item
iconSize: 17
}

DefaultText
DexLabel
{
id: _label
font.pixelSize: 15
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ ComboBox
width: control.width
highlighted: control.highlightedIndex === index

contentItem: DefaultText
contentItem: DexLabel
{
width: control.width
font: DexTypo.subtitle2
Expand Down
4 changes: 2 additions & 2 deletions atomic_defi_design/Dex/Components/DatePicker.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DefaultMouseArea
id: column
width: parent.width

DefaultText
DexLabel
{
id: title
text: qsTr("Date")
Expand All @@ -39,7 +39,7 @@ DefaultMouseArea
{
width: parent.width

DefaultText
DexLabel
{
id: label
text: selectedDate.toLocaleDateString(Locale.ShortFormat, "yyyy-MM-dd")
Expand Down
4 changes: 2 additions & 2 deletions atomic_defi_design/Dex/Components/DefaultCalendar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Calendar
onClicked: control.showPreviousMonth()
}

DefaultText
DexLabel
{
id: dateText
text: styleData.title
Expand Down Expand Up @@ -113,7 +113,7 @@ Calendar
readonly property color selectedDateTextColor: Dex.CurrentTheme.foregroundColor
readonly property color differentMonthDateTextColor: Dex.CurrentTheme.foregroundColor3
readonly property color invalidDateColor: Dex.CurrentTheme.textDisabledColor
DefaultText
DexLabel
{
id: dayDelegateText
text: styleData.hasOwnProperty('date') ? styleData.date.getDate() : ""
Expand Down
4 changes: 2 additions & 2 deletions atomic_defi_design/Dex/Components/DefaultRangeSlider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ RangeSlider
}
}

DefaultText
DexLabel
{
id: _left_item
anchors.left: parent.left
anchors.top: parent.bottom
text_value: qsTr("Min")
}

DefaultText
DexLabel
{
id: _right_item
anchors.right: parent.right
Expand Down
9 changes: 0 additions & 9 deletions atomic_defi_design/Dex/Components/DefaultSwitch.qml

This file was deleted.

7 changes: 0 additions & 7 deletions atomic_defi_design/Dex/Components/DefaultText.qml

This file was deleted.

52 changes: 0 additions & 52 deletions atomic_defi_design/Dex/Components/DefaultTextArea.qml

This file was deleted.

2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Components/DexCheckBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ CheckBox
height: _label.height
spacing: 0

DefaultText
DexLabel
{
id: _label
text: control.text
Expand Down
4 changes: 2 additions & 2 deletions atomic_defi_design/Dex/Components/DexComboBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ComboBox
// Main, selected text
contentItem: Item
{
DefaultText
DexLabel
{
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
Expand Down Expand Up @@ -108,7 +108,7 @@ ComboBox
width: control.width
highlighted: control.highlightedIndex === index

contentItem: DefaultText
contentItem: DexLabel
{
width: control.width
font: DexTypo.subtitle2
Expand Down
4 changes: 2 additions & 2 deletions atomic_defi_design/Dex/Components/DexItemBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ InnerBackground {
anchors.fill: parent
Layout.rightMargin: 10
Layout.leftMargin: 10
DefaultText {
DexLabel {
id: _texto
leftPadding: 10
Layout.alignment: Qt.AlignVCenter
Expand Down Expand Up @@ -239,7 +239,7 @@ InnerBackground {
radius: parent.parent.height < 41 ? parent.parent.radius : 0
color: DexTheme.backgroundDarkColor6
visible: !isVertical && hidden
DefaultText {
DexLabel {
id: _texto2
leftPadding: 10
Layout.alignment: Qt.AlignVCenter
Expand Down
8 changes: 6 additions & 2 deletions atomic_defi_design/Dex/Components/DexLabel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ Text
}
}

text: privacy && Dex.General.privacy_mode ? Dex.General.privacy_text : text_value
font: monospace ? Dex.DexTypo.monoSmall : Dex.DexTypo.body2
color: enabled ? Dex.CurrentTheme.foregroundColor : Dex.CurrentTheme.textDisabledColor
font: monospace ? Dex.DexTypo.monoSmall : Dex.DexTypo.body2
text: privacy && Dex.General.privacy_mode ? Dex.General.privacy_text : text_value
wrapMode: Text.WordWrap

onLinkActivated: Qt.openUrlExternally(link)
linkColor: color
}

// 90% similar to DexText.qml
// This could be refactored down.
10 changes: 5 additions & 5 deletions atomic_defi_design/Dex/Components/DexRangeSlider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ RangeSlider {
//border.color: "#bdbebf"
}

DefaultText {
DexLabel {
id: secondTooltip
visible: parent.second.pressed
anchors.horizontalCenter: parent.second.handle.horizontalCenter
Expand All @@ -92,7 +92,7 @@ RangeSlider {
text_value: parent.second.value
font.pixelSize: Constants.Style.textSizeSmall1
}
DefaultText {
DexLabel {
id: firstTooltip
visible: parent.first.pressed
anchors.horizontalCenter: parent.first.handle.horizontalCenter
Expand All @@ -101,21 +101,21 @@ RangeSlider {
text_value: parent.first.value
font.pixelSize: Constants.Style.textSizeSmall1
}
DefaultText {
DexLabel {
id: _left_item
anchors.left: parent.left
anchors.top: parent.bottom

text_value: qsTr("Min")
}
DefaultText {
DexLabel {
id: _half_item
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.bottom

text_value: qsTr("Half")
}
DefaultText {
DexLabel {
id: _right_item
anchors.right: parent.right
anchors.top: parent.bottom
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Components/DexSweetComboBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ ComboBox
{
width: control.width + 50
highlighted: control.highlightedIndex === index
contentItem: DefaultText
contentItem: DexLabel
{
text_value: "<b><font color='" + Style.getCoinColor(ticker) + "'>" + ticker + "</font></b>" + " %1".arg(General.coinName(ticker))
}
Expand Down
10 changes: 5 additions & 5 deletions atomic_defi_design/Dex/Components/DexSwitch.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Switch
indicator: DefaultRectangle
{
id: _indicator
width: 52
height: 28
radius: 13
width: 42
height: 24
radius: 12
anchors.verticalCenter: control.verticalCenter

gradient: Gradient
Expand Down Expand Up @@ -108,7 +108,7 @@ Switch

visible: _label.text != ''

DefaultText
DexLabel
{
id: _label
Layout.fillHeight: true
Expand All @@ -122,7 +122,7 @@ Switch
wrapMode: Label.Wrap
}

DefaultText
DexLabel
{
id: _label2
Layout.fillHeight: true
Expand Down
23 changes: 17 additions & 6 deletions atomic_defi_design/Dex/Components/DexText.qml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
//! Qt Imports.
import QtQuick 2.15
import "../Constants"

//! Project Imports
import App 1.0
import "../Constants" as Dex
import Dex.Themes 1.0 as Dex

Text {
property string text_value
property bool privacy: false
property bool monospace: false

Behavior on color {
ColorAnimation {
Behavior on color
{
ColorAnimation
{
duration: Style.animationDuration
}
}

font: DexTypo.body1

color: DexTheme.foregroundColor
text: privacy && General.privacy_mode ? General.privacy_text : text_value
font: DexTypo.body1
text: privacy && Dex.General.privacy_mode ? Dex.General.privacy_text : text_value
wrapMode: Text.WordWrap

onLinkActivated: Qt.openUrlExternally(link)
Expand All @@ -25,4 +33,7 @@ Text {
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
acceptedButtons: Qt.NoButton
}
}
}

// 90% similar to DexLabel.qml
// This could be refactored down.
4 changes: 1 addition & 3 deletions atomic_defi_design/Dex/Components/DexTextArea.qml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ TextArea {
selectByMouse: true
persistentSelection: true

background: InnerBackground {
auto_set_size: false
}
background: InnerBackground {}

RightClickMenu {}
}
2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Components/DexTradeBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ Rectangle {
height: parent.height
anchors.right: parent.right
visible: !isVertical && hidden
DefaultText
DexLabel
{
id: _texto2
leftPadding: 10
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Components/ElidableText.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import QtQuick 2.12

DefaultText
DexLabel
{
elide: Text.ElideRight
}
Loading
Loading