Skip to content

Commit

Permalink
[Refactor] Reorder some Material 2 styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Aug 9, 2023
1 parent 1318930 commit b8f897a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<item name="android:widgetLayout">@layout/switch_preference_compat_widget</item>
</style>

<style name="ShapeAppearance.MaterialFiles.MediumComponent" parent="ShapeAppearance.MaterialComponents.MediumComponent">
<item name="cornerSize">8dp</item>
</style>

<style name="TextAppearance.AppCompat.Widget.ActionBar.Subtitle.Small">
<item name="android:textSize" tools:ignore="SpUsage">12dp</item>
</style>
Expand All @@ -25,10 +29,6 @@
<item name="android:clipToPadding">false</item>
</style>

<style name="ShapeAppearance.MaterialFiles.MediumComponent" parent="ShapeAppearance.MaterialComponents.MediumComponent">
<item name="cornerSize">8dp</item>
</style>

<style name="Widget.MaterialFiles.NavigationView" parent="Widget.MaterialComponents.NavigationView">
<item name="itemHorizontalPadding">@dimen/navigation_item_horizontal_padding</item>
<item name="itemVerticalPadding" tools:ignore="PrivateResource">@dimen/design_navigation_item_vertical_padding</item>
Expand All @@ -44,7 +44,6 @@
<item name="itemSubtitleTextSize">10sp</item>
<item name="dividerVerticalPadding">@dimen/design_navigation_separator_vertical_padding</item>
</style>

<style name="ShapeAppearanceOverlay.MaterialFiles.NavigationView.Item" parent="">
<item name="cornerSize">50%</item>
<item name="cornerSizeTopLeft">0dp</item>
Expand Down

0 comments on commit b8f897a

Please sign in to comment.