From 237b7c66a0e7c4b60616dee1d37d11d10bd125b3 Mon Sep 17 00:00:00 2001 From: Mehrshad Date: Thu, 29 Feb 2024 14:39:02 +0330 Subject: [PATCH] Frontend.XF.GTK: fix currency colors on GTK Fix currency color indicator on GTK which was not showing up. To address this, we double its width when the platform is GTK. Co-authored-by: webwarrior --- src/GWallet.Frontend.XF/FrontendHelpers.fs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/GWallet.Frontend.XF/FrontendHelpers.fs b/src/GWallet.Frontend.XF/FrontendHelpers.fs index 09e5d5f94..e38cc72bf 100644 --- a/src/GWallet.Frontend.XF/FrontendHelpers.fs +++ b/src/GWallet.Frontend.XF/FrontendHelpers.fs @@ -357,7 +357,12 @@ module FrontendHelpers = normalCryptoBalanceClassId,readonlyCryptoBalanceClassId let CreateCurrencyBalanceFrame currency (cryptoLabel: Label) (fiatLabel: Label) currencyLogoImg classId = - let colorBoxWidth = 10. + let colorBoxWidth = + if Device.RuntimePlatform = Device.GTK then + // Because on GTK for some reason it's narrower than it should be, so we increase width for it to show up + 20. + else + 10. let stackLayout = StackLayout(Orientation = StackOrientation.Horizontal, Padding = Thickness(20., 20., colorBoxWidth + 10., 20.))