完善景区排队设置页与全局按钮配置迁移。
重构排队设置与变更日志交互,补充 Overlay 与资源,并将多页面主操作按钮统一到 UIButton Configuration,同步更新相关单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -554,7 +554,17 @@ private final class MediaPreviewPlaybackButton: UIButton {
|
||||
private func setupUI() {
|
||||
tintColor = .white
|
||||
backgroundColor = UIColor.white.withAlphaComponent(0.08)
|
||||
adjustsImageWhenHighlighted = false
|
||||
var buttonConfiguration = UIButton.Configuration.plain()
|
||||
buttonConfiguration.baseForegroundColor = .white
|
||||
buttonConfiguration.contentInsets = .zero
|
||||
configuration = buttonConfiguration
|
||||
configurationUpdateHandler = { button in
|
||||
var updatedConfiguration = button.configuration
|
||||
updatedConfiguration?.baseForegroundColor = .white
|
||||
button.configuration = updatedConfiguration
|
||||
button.alpha = 1
|
||||
button.imageView?.alpha = 1
|
||||
}
|
||||
layer.masksToBounds = false
|
||||
layer.shadowColor = UIColor.black.cgColor
|
||||
layer.shadowOpacity = 0.28
|
||||
|
||||
Reference in New Issue
Block a user