Skip to content

Commit 237b7c6

Browse files
Mershowebwarrior-ws
andcommitted
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 <[email protected]>
1 parent 24903fe commit 237b7c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/GWallet.Frontend.XF/FrontendHelpers.fs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,12 @@ module FrontendHelpers =
357357
normalCryptoBalanceClassId,readonlyCryptoBalanceClassId
358358

359359
let CreateCurrencyBalanceFrame currency (cryptoLabel: Label) (fiatLabel: Label) currencyLogoImg classId =
360-
let colorBoxWidth = 10.
360+
let colorBoxWidth =
361+
if Device.RuntimePlatform = Device.GTK then
362+
// Because on GTK for some reason it's narrower than it should be, so we increase width for it to show up
363+
20.
364+
else
365+
10.
361366

362367
let stackLayout = StackLayout(Orientation = StackOrientation.Horizontal,
363368
Padding = Thickness(20., 20., colorBoxWidth + 10., 20.))

0 commit comments

Comments
 (0)