Skip to content

Commit

Permalink
[MaterialButtonToggleGroup] Added the default Material3 toggleGroupStyle
Browse files Browse the repository at this point in the history
Resolves #2961

GIT_ORIGIN_REV_ID=94b9206658d66d0b7eaaaf4222bc2e0935fafa9b
PiperOrigin-RevId: 477243702
  • Loading branch information
pubiqq authored and pekingme committed Sep 27, 2022
1 parent 00220d0 commit b6c6600
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@

<!-- Styles for M3 Buttons. -->

<style name="Widget.Material3.MaterialButtonToggleGroup" parent="Widget.MaterialComponents.MaterialButtonToggleGroup" />

<!-- M3 filled button style. -->
<style name="Widget.Material3.Button" parent="Widget.MaterialComponents.Button">
<item name="enforceTextAppearance">false</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
<item name="materialIconButtonOutlinedStyle">@style/Widget.Material3.Button.IconButton.Outlined</item>
<item name="materialButtonOutlinedStyle">@style/Widget.Material3.Button.OutlinedButton</item>
<item name="materialButtonStyle">@style/Widget.Material3.Button</item>
<item name="materialButtonToggleGroupStyle">@style/Widget.Material3.MaterialButtonToggleGroup</item>
<item name="materialCardViewStyle">?attr/materialCardViewOutlinedStyle</item>
<item name="materialCardViewOutlinedStyle">@style/Widget.Material3.CardView.Outlined</item>
<item name="materialCardViewFilledStyle">@style/Widget.Material3.CardView.Filled</item>
Expand Down Expand Up @@ -353,6 +354,7 @@
<item name="materialIconButtonOutlinedStyle">@style/Widget.Material3.Button.IconButton.Outlined</item>
<item name="materialButtonOutlinedStyle">@style/Widget.Material3.Button.OutlinedButton</item>
<item name="materialButtonStyle">@style/Widget.Material3.Button</item>
<item name="materialButtonToggleGroupStyle">@style/Widget.Material3.MaterialButtonToggleGroup</item>
<item name="materialCardViewStyle">?attr/materialCardViewOutlinedStyle</item>
<item name="materialCardViewOutlinedStyle">@style/Widget.Material3.CardView.Outlined</item>
<item name="materialCardViewFilledStyle">@style/Widget.Material3.CardView.Filled</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
<item name="materialIconButtonOutlinedStyle">@style/Widget.Material3.Button.IconButton.Outlined</item>
<item name="materialButtonOutlinedStyle">@style/Widget.Material3.Button.OutlinedButton</item>
<item name="materialButtonStyle">@style/Widget.Material3.Button</item>
<item name="materialButtonToggleGroupStyle">@style/Widget.Material3.MaterialButtonToggleGroup</item>
<item name="materialCardViewStyle">?attr/materialCardViewOutlinedStyle</item>
<item name="materialCardViewOutlinedStyle">@style/Widget.Material3.CardView.Outlined</item>
<item name="materialCardViewFilledStyle">@style/Widget.Material3.CardView.Filled</item>
Expand Down Expand Up @@ -369,6 +370,7 @@
<item name="materialIconButtonOutlinedStyle">@style/Widget.Material3.Button.IconButton.Outlined</item>
<item name="materialButtonOutlinedStyle">@style/Widget.Material3.Button.OutlinedButton</item>
<item name="materialButtonStyle">@style/Widget.Material3.Button</item>
<item name="materialButtonToggleGroupStyle">@style/Widget.Material3.MaterialButtonToggleGroup</item>
<item name="materialCardViewStyle">?attr/materialCardViewOutlinedStyle</item>
<item name="materialCardViewOutlinedStyle">@style/Widget.Material3.CardView.Outlined</item>
<item name="materialCardViewFilledStyle">@style/Widget.Material3.CardView.Filled</item>
Expand Down

0 comments on commit b6c6600

Please sign in to comment.