Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 - update button text color in bottom sheet styles in syles_bottom_sheet.xml from black to white.

Signed-off-by: Ahmed Radhouane Belkilani <arbelkilani@gmail.com>
  • Loading branch information
ahmed-radhouane committed Mar 3, 2022
1 parent 5ceed3e commit d4aab6e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion changelog.d/5114.bugfix
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
## Changes :
- update room widget permission bottom sheet behaviour on click outside or on back button clicked (Triggering onCancel event)
to be the same as the "Decline" button performance.
- change actions UI from button to colored labels, as was red for the decline, green for the continue action.
- - update button text color in bottom sheet styles in syles_bottom_sheet.xml
4 changes: 4 additions & 0 deletions library/ui-styles/src/main/res/values/styles_bottom_sheet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@
<item name="android:textSize">12sp</item>
</style>

<style name="BottomSheetButtonTextColor">
<item name="android:textColor">@android:color/white</item>
</style>

</resources>
4 changes: 2 additions & 2 deletions library/ui-styles/src/main/res/values/styles_buttons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<item name="android:textColor">@android:color/white</item>
</style>

<style name="Widget.Vector.Button.Destructive">
<style name="Widget.Vector.Button.Destructive" parent="BottomSheetButtonTextColor">
<item name="android:minWidth">94dp</item>
<item name="materialThemeOverlay">@style/VectorMaterialThemeOverlayDestructive</item>
</style>
Expand All @@ -24,7 +24,7 @@
<item name="colorPrimary">?colorError</item>
</style>

<style name="Widget.Vector.Button.Positive">
<style name="Widget.Vector.Button.Positive" parent="BottomSheetButtonTextColor">
<item name="android:minWidth">94dp</item>
<item name="materialThemeOverlay">@style/VectorMaterialThemeOverlayPositive</item>
</style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,21 @@

<Button
android:id="@+id/widgetPermissionDecline"
style="@style/Widget.Vector.Button.Destructive"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginEnd="@dimen/layout_vertical_margin"
android:text="@string/action_decline"
android:background="@android:color/transparent"
android:textColor="?colorError"
android:textAllCaps="true" />

<Button
android:id="@+id/widgetPermissionContinue"
style="@style/Widget.Vector.Button.Positive"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/layout_vertical_margin"
android:minWidth="160dp"
android:text="@string/_continue"
android:background="@android:color/transparent"
android:textColor="?colorPrimary"
android:textAllCaps="true" />

</LinearLayout>
Expand Down

0 comments on commit d4aab6e

Please sign in to comment.