Skip to content

Commit 7d1551e

Browse files
authored
fix: bottom sheet styles simple (#236)
1 parent a2a66f2 commit 7d1551e

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

android/app/src/main/res/values-night/styles.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@
44
<!-- Use dark popup overlay in dark mode -->
55
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Dark"></style>
66

7+
<!-- Bottom sheet dark mode - uses dark cardview background (#1E1E1E) -->
8+
<style name="AppTheme.BottomSheet" parent="Widget.MaterialComponents.BottomSheet.Modal">
9+
<item name="backgroundTint">@color/cardview_light_background</item>
10+
</style>
11+
712
</resources>
813

android/app/src/main/res/values/styles.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<item name="android:colorBackground">@color/background</item>
1111
<!-- Preference list styling -->
1212
<item name="android:listViewStyle">@style/AppListView</item>
13+
<!-- Bottom sheet dialog theme for proper theming -->
14+
<item name="bottomSheetDialogTheme">@style/AppTheme.BottomSheetDialog</item>
1315
</style>
1416

1517
<style name="AppListView" parent="Widget.AppCompat.ListView">
@@ -25,6 +27,15 @@
2527

2628
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"></style>
2729

30+
<!-- Bottom sheet dialog theme - uses cardview background for consistency -->
31+
<style name="AppTheme.BottomSheetDialog" parent="ThemeOverlay.MaterialComponents.BottomSheetDialog">
32+
<item name="bottomSheetStyle">@style/AppTheme.BottomSheet</item>
33+
</style>
34+
35+
<style name="AppTheme.BottomSheet" parent="Widget.MaterialComponents.BottomSheet.Modal">
36+
<item name="backgroundTint">@color/cardview_light_background</item>
37+
</style>
38+
2839
<style name="PickerDialogTheme" parent="AppTheme.NoActionBar">
2940
<item name="android:textSize">20sp</item>
3041
<item name="android:labelTextSize">20dp</item>

0 commit comments

Comments
 (0)