AlphaWallet / AlphaWallet/alpha-wallet-ios

HorizontalButtonBar does not appear to display disabled buttons with the correct colour backgrounds

未关闭
#5,902 0 条评论 0 个 reaction 已指派 1 人 已被 @eviltofu 认领 在 GitHub 查看
主要语言
Swift
星标
631
派生
384
PR 合并指标
30 天内没有已合并 PR

描述

While debugging, changing the inactive background to green does not show green buttons. This means the inactive button background is not working.
```swift
static let primaryButtonBackgroundInactive = UIColor { trait in
return colorFrom(trait: trait, lightColor: R.color.mike()!, darkColor: R.color.green()!)
}
```
```swift
static let secondaryButtonBackgroundInactive = UIColor { trait in
return colorFrom(trait: trait, lightColor: R.color.mike()!, darkColor: R.color.green()!)
}
```

![Simulator Screen Shot - iPhone 14 Pro - 2022-12-04 at 09 21 33 copy](https://user-images.githubusercontent.com/1050309/205469534-5d67a899-5ec6-4ad3-b696-40082cf0827f.png)

Button is disabled but the background image does not appear to be set correctly.

![image](https://user-images.githubusercontent.com/1050309/205469537-f4f7978a-f130-46a1-b832-8516ba20a67d.png)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。