Skip to content

Commit 80d392e

Browse files
style(avatar): Theme UCrop activity to have white header/footer
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 330f942 commit 80d392e

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260

261261
<activity
262262
android:name="com.yalantis.ucrop.UCropActivity"
263-
android:theme="@style/ImagePickerTheme.NonFullScreen"
263+
android:theme="@style/Theme.UCrop"
264264
tools:replace="android:theme" />
265265

266266
<activity

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,29 @@
4444
<item name="iconTint">@color/fontAppbar</item>
4545
</style>
4646

47-
4847
<style name="ImagePickerTheme.NonFullScreen" parent="Theme.Material3.DayNight.NoActionBar">
4948
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
5049
<item name="android:fitsSystemWindows">true</item>
5150
</style>
5251

52+
<style name="Theme.UCrop" parent="Theme.MaterialComponents.DayNight.NoActionBar">
53+
<!-- Status bar: dark background, white (light) icons -->
54+
<item name="android:windowLightStatusBar">false</item>
55+
<item name="android:statusBarColor">@android:color/transparent</item>
56+
57+
<!-- Navigation bar: dark to match -->
58+
<item name="android:navigationBarColor">@android:color/transparent</item>
59+
60+
<!-- Force a light (white) toolbar surface even in dark mode -->
61+
<item name="colorSurface">#FFFFFF</item>
62+
<item name="colorOnSurface">#000000</item>
63+
64+
<!-- Primary used as toolbar tint fallback -->
65+
<item name="colorPrimary">#FFFFFF</item>
66+
<item name="colorOnPrimary">#000000</item>
67+
</style>
68+
69+
5370
<style name="ChatSendButtonMenu" parent="@style/Widget.Material3.PopupMenu">
5471
<item name="android:dropDownVerticalOffset">-90dp</item>
5572
<item name="android:colorPrimary">@color/fg_inverse</item>

0 commit comments

Comments
 (0)