Update bottomsheet for rounded corners
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
-->
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners
|
||||
android:topLeftRadius="12dp"
|
||||
android:topRightRadius="12dp" />
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/vpn_timer_bg_color"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:text="@string/disable_brave_vpn"
|
||||
android:textColor="@color/vpn_timer_text_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
@@ -306,13 +306,14 @@
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
|
||||
<style name="TimerBottomSheet" parent="@style/Widget.Design.BottomSheet.Modal">
|
||||
|
||||
<style name="TimerBottomSheetDialogTheme"
|
||||
parent="Theme.Design.Light.BottomSheetDialog">
|
||||
<item name="bottomSheetStyle">@style/TimerBottomSheetDialogStyle</item>
|
||||
<item name="android:windowSoftInputMode">adjustResize</item>
|
||||
</style>
|
||||
|
||||
<style name="TimerBottomSheetDialogStyle" parent="Widget.Design.BottomSheet.Modal">
|
||||
<item name="android:background">@drawable/timer_rounded_bottomsheet</item>
|
||||
</style>
|
||||
|
||||
<style name="TimerBaseBottomSheetDialog" parent="@style/Theme.Design.Light.BottomSheetDialog">
|
||||
<item name="bottomSheetStyle">@style/TimerBottomSheet</item>
|
||||
</style>
|
||||
|
||||
<style name="TimerBottomSheetDialogTheme" parent="TimerBaseBottomSheetDialog" />
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user