fix(@desktop/wallet): fix transparent background color in detailed collectible view

Fixes #12163
This commit is contained in:
Dario Gabriel Lipicar 2023-09-20 14:48:31 -03:00 committed by dlipicar
parent d443e631b6
commit 521be27ae0
1 changed files with 4 additions and 3 deletions

View File

@ -113,9 +113,10 @@ QtObject:
read = getMediaType
proc getBackgroundColor*(self: CollectibleDetailsEntry): string {.slot.} =
if self.data == nil:
return ""
return self.data.backgroundColor
var color = "transparent"
if self.data != nil and self.data.backgroundColor != "":
color = "#" & self.data.backgroundColor
return color
QtProperty[string] backgroundColor:
read = getBackgroundColor