Skip to content

Commit 2b1c5e1

Browse files
committed
style: align LargeActionCard background with dynamic clash state
- Force null background on internal label root to ensure seamless inheritance of card color. - Remove default surface background initialization to prevent visual artifacts in stopped state. - Synchronize card radius and elevation with Material 3 design tokens. - Disable card checkable state to prevent unwanted overlay layers in Monet mode.
1 parent 97ecb39 commit 2b1c5e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

design/src/main/java/com/github/kr328/clash/design/view/LargeActionCard.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class LargeActionCard @JvmOverloads constructor(
3838

3939
init {
4040
binding.root.background = null
41+
42+
setCardBackgroundColor(Color.TRANSPARENT)
4143

4244
context.resolveClickableAttrs(attributeSet, defStyleAttr) {
4345
isFocusable = focusable(true)
@@ -64,5 +66,6 @@ class LargeActionCard @JvmOverloads constructor(
6466
cardElevation = context.resources.getDimension(R.dimen.large_action_card_elevation)
6567
strokeWidth = 0
6668
setContentPadding(0, 0, 0, 0)
69+
isCheckable = false
6770
}
6871
}

0 commit comments

Comments
 (0)