Skip to content

Commit

Permalink
GWallet.Frontend.XF(FrontendHelpers): apply fix
Browse files Browse the repository at this point in the history
The `colorBox` width is currently too small and not visible.
To address this, we double its width when the platform
is GTK.
  • Loading branch information
Mersho committed Feb 29, 2024
1 parent 14dd4c5 commit 005b0c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/GWallet.Frontend.XF/FrontendHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,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.))
Expand Down

0 comments on commit 005b0c0

Please sign in to comment.