diff --git a/atomic_defi_design/qml/Components/CoinTypeTag.qml b/atomic_defi_design/qml/Components/CoinTypeTag.qml index 1ddf092576..5f996ef89b 100644 --- a/atomic_defi_design/qml/Components/CoinTypeTag.qml +++ b/atomic_defi_design/qml/Components/CoinTypeTag.qml @@ -16,7 +16,7 @@ AnimatedRectangle { anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter text: type - color: DexTheme.foregroundColor + color: Style.getCoinTypeTextColor(model.type) font: DexTypo.overLine } } diff --git a/atomic_defi_design/qml/Constants/DexTheme.qml b/atomic_defi_design/qml/Constants/DexTheme.qml index 9f24443aa3..4bde1a2069 100644 --- a/atomic_defi_design/qml/Constants/DexTheme.qml +++ b/atomic_defi_design/qml/Constants/DexTheme.qml @@ -450,13 +450,6 @@ QtObject { return Style.colorWhite4 } - function getCoinTypeColor(type) { - return getCoinColor(type === "ERC-20" ? "ETH" : - type === "QRC-20" ? "QTUM" : - type === "Smart Chain" ? "KMD" : - "BTC") - } - function getCoinColor(ticker) { const c = colorCoin[ticker] return c || Style.colorTheme2 diff --git a/atomic_defi_design/qml/Constants/Style.qml b/atomic_defi_design/qml/Constants/Style.qml index 33227d121b..c7e1e525f2 100644 --- a/atomic_defi_design/qml/Constants/Style.qml +++ b/atomic_defi_design/qml/Constants/Style.qml @@ -254,6 +254,15 @@ QtObject { } } + function getCoinTypeTextColor(type) + { + switch (type) + { + case 'BEP-20': return '#232323' + default: return '#F9F9F9' + } + } + function getCoinColor(ticker) { const c = colorCoin[atomic_qt_utilities.retrieve_main_ticker(ticker)] return c || Style.colorTheme2 @@ -271,11 +280,11 @@ QtObject { "AVAX": "#E84142", "AXS": "#0055D5", "BAL": "#4D4D4D", - "BNB": "#F3BA2F", + "BNB": "#F9D987", "BCH": "#8DC351", "BIDR": "#F0B90B", "BSTY": "#78570D", - "BTC": "#F7931A", + "BTC": "#E9983C", "BTT": "#666666", "BTE": "#FFE201", "CAKE": "#D1884F", @@ -293,9 +302,9 @@ QtObject { "JSTR": "#627EEA", "DOGE": "#C3A634", "ETC": "#328432", - "ETH": "#627EEA", + "ETH": "#687DE3", "ETHR": "#627EEA", - "KMD": "#2B6680", + "KMD": "#7490AA", "MORTY": "#A4764D", "RICK": "#A5CBDD", "EMC2": "#00CCFF", @@ -308,7 +317,7 @@ QtObject { "LBC": "#00775C", "LTC": "#BFBBBB", "LYNX": "#0071BA", - "LTFN": "#0099CC", + "LTFN": "#0099CC", "XPM": "#A67522", "XVC": "#B50126", "ZEC": "#ECB244",