From a5eeb031f0da05d8cb2b6b3879f59670f0bc8cf5 Mon Sep 17 00:00:00 2001 From: smk762 Date: Sat, 9 Sep 2023 19:34:58 +0800 Subject: [PATCH] highlight selected fiat, refresh recommended on selection --- atomic_defi_design/Dex/Settings/Combo_fiat.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atomic_defi_design/Dex/Settings/Combo_fiat.qml b/atomic_defi_design/Dex/Settings/Combo_fiat.qml index 0842bb41ef..b62c61b59f 100644 --- a/atomic_defi_design/Dex/Settings/Combo_fiat.qml +++ b/atomic_defi_design/Dex/Settings/Combo_fiat.qml @@ -77,6 +77,7 @@ Item const new_fiat = fiats[currentIndex] API.app.settings_pg.current_fiat = new_fiat API.app.settings_pg.current_currency = new_fiat + setting_modal.recommended_fiats = API.app.settings_pg.get_recommended_fiats() } } @@ -123,7 +124,7 @@ Item { text: modelData color: DexTheme.foregroundColor - opacity: fiats_mouse_area.containsMouse ? .7 : 1 + opacity: text == API.app.settings_pg.current_fiat ? 1 : fiats_mouse_area.containsMouse ? .8 : .6 DexMouseArea {