diff --git a/app/src/main/java/com/mintris/ui/ThemeSelector.kt b/app/src/main/java/com/mintris/ui/ThemeSelector.kt index bb5a831..3be59c7 100644 --- a/app/src/main/java/com/mintris/ui/ThemeSelector.kt +++ b/app/src/main/java/com/mintris/ui/ThemeSelector.kt @@ -86,6 +86,18 @@ class ThemeSelector @JvmOverloads constructor( // Set card background color based on theme setCardBackgroundColor(themeInfo.primaryColor) + // Add stroke for selected theme + if (isSelected) { + setContentPadding(4, 4, 4, 4) + // Create a gradient drawable for the border + val gradientDrawable = android.graphics.drawable.GradientDrawable().apply { + setColor(themeInfo.primaryColor) + setStroke(4, Color.WHITE) + cornerRadius = 12f + } + background = gradientDrawable + } + // Set card dimensions val cardSize = resources.getDimensionPixelSize(R.dimen.theme_card_size) layoutParams = GridLayout.LayoutParams().apply { @@ -98,11 +110,6 @@ class ThemeSelector @JvmOverloads constructor( // Apply locked/selected state visuals alpha = if (isUnlocked) 1.0f else 0.5f - - // Add stroke for selected theme - if (isSelected) { - setContentPadding(4, 4, 4, 4) - } } // Create theme content container diff --git a/app/src/main/res/layout/activity_stats.xml b/app/src/main/res/layout/activity_stats.xml index 460226a..4327ae7 100644 --- a/app/src/main/res/layout/activity_stats.xml +++ b/app/src/main/res/layout/activity_stats.xml @@ -1,156 +1,164 @@ - - + - + android:orientation="vertical" + android:padding="16dp" + android:gravity="center"> - + - + - + - + - + - + - + - + - + - + - + - + - + - + -