mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-25 13:06:08 +00:00
fix(@desktop/wallet): fix transparent background color in detailed collectible view
Fixes #12163
This commit is contained in:
parent
d443e631b6
commit
521be27ae0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user