Skip to content

Commit

Permalink
Merge pull request #12182 from nextcloud/feature/use-m3-for-styles
Browse files Browse the repository at this point in the history
Update Styles For Material Design 3
  • Loading branch information
AndyScherzinger authored Nov 17, 2023
2 parents f09c3da + 3bd77e1 commit 91c8c38
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<item name="colorPrimary">@color/text_color</item>
<item name="colorOnSurface">@color/text_color</item>
<item name="colorError">@color/hwSecurityRed</item>
<item name="editTextStyle">@style/Widget.MaterialComponents.TextInputEditText.OutlinedBox</item>
<item name="editTextStyle">@style/Widget.Material3.TextInputEditText.OutlinedBox</item>
</style>

<style name="TextInputLayoutInputWarning" parent="Widget.App.TextInputLayout">
Expand Down Expand Up @@ -102,7 +102,7 @@
<item name="android:buttonBarButtonStyle">@style/FallbackTheming.Dialog.ButtonStyle</item>
</style>

<style name="FallbackTheming.Dialog.ButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<style name="FallbackTheming.Dialog.ButtonStyle" parent="Widget.Material3.Button.TextButton.Dialog">
<item name="android:textColor">@color/text_color</item>
</style>

Expand Down Expand Up @@ -363,17 +363,17 @@

<style name="Widget.App.Login.TextInputLayout" parent="Widget.Material3.TextInputLayout.OutlinedBox">
<item name="materialThemeOverlay">@style/ThemeOverlay.App.Login.TextInputLayout</item>
<item name="shapeAppearance">@style/ShapeAppearance.MaterialComponents.SmallComponent</item>
<item name="shapeAppearance">@style/ShapeAppearance.Material3.SmallComponent</item>
<item name="hintTextColor">?attr/colorOnSurface</item>
</style>

<style name="ThemeOverlay.App.Login.TextInputLayout" parent="">
<item name="colorPrimary">@color/white</item>
<item name="colorOnSurface">@color/white</item>
<item name="colorError">@color/hwSecurityRed</item>
<item name="textAppearanceSubtitle1">@style/TextAppearance.MaterialComponents.Subtitle1</item>
<item name="textAppearanceCaption">@style/TextAppearance.MaterialComponents.Caption</item>
<item name="editTextStyle">@style/Widget.MaterialComponents.TextInputEditText.OutlinedBox</item>
<item name="textAppearanceSubtitle1">@style/TextAppearance.Material3.BodyLarge</item>
<item name="textAppearanceCaption">@style/TextAppearance.Material3.BodySmall</item>
<item name="editTextStyle">@style/Widget.Material3.TextInputEditText.OutlinedBox</item>
</style>

<style name="TextInputLayoutLogin" parent="Widget.Material3.TextInputLayout.OutlinedBox">
Expand Down Expand Up @@ -476,11 +476,11 @@
</style>


<style name="ThemeOverlay.App.BottomSheetDialog" parent="@style/ThemeOverlay.MaterialComponents.BottomSheetDialog">
<style name="ThemeOverlay.App.BottomSheetDialog" parent="@style/ThemeOverlay.Material3.BottomSheetDialog">
<item name="bottomSheetStyle">@style/App.BottomSheetDialog</item>
</style>

<style name="App.BottomSheetDialog" parent="Widget.MaterialComponents.BottomSheet.Modal">
<style name="App.BottomSheetDialog" parent="Widget.Material3.BottomSheet.Modal">
<item name="backgroundTint">@color/bg_default</item>
</style>

Expand Down

0 comments on commit 91c8c38

Please sign in to comment.