|
30 | 30 | Note that layout_* attributes break when set via a default style. Always set this style
|
31 | 31 | explicitly on the layout to ensure that layout_* attributes are set properly. -->
|
32 | 32 | <style name="Widget.Material3.FloatingToolbar.Horizontal" parent="Base.Widget.Material3.FloatingToolbar">
|
| 33 | + <item name="materialThemeOverlay">@style/ThemeOverlay.Material3.FloatingToolbar.Horizontal</item> |
33 | 34 | <item name="android:layout_gravity">bottom|center</item>
|
34 | 35 | <item name="android:paddingStart">@dimen/m3_comp_toolbar_floating_container_leading_space</item>
|
35 | 36 | <item name="android:paddingEnd">@dimen/m3_comp_toolbar_floating_container_trailing_space</item>
|
|
39 | 40 | Note that layout_* attributes break when set via a default style. Always set this style
|
40 | 41 | explicitly on the layout to ensure that layout_* attributes are set properly. -->
|
41 | 42 | <style name="Widget.Material3.FloatingToolbar.Horizontal.Vibrant">
|
| 43 | + <item name="materialThemeOverlay">@style/ThemeOverlay.Material3.FloatingToolbar.Horizontal.Vibrant</item> |
42 | 44 | <item name="backgroundTint">@macro/m3_comp_toolbar_floating_vibrant_container_color</item>
|
43 | 45 | </style>
|
44 | 46 |
|
|
47 | 49 | layout_* attributes break when set via a default style. Always set this style explicitly on
|
48 | 50 | the layout to ensure that layout_* attributes are set properly. -->
|
49 | 51 | <style name="Widget.Material3.FloatingToolbar.Vertical" parent="Base.Widget.Material3.FloatingToolbar">
|
| 52 | + <item name="materialThemeOverlay">@style/ThemeOverlay.Material3.FloatingToolbar.Vertical</item> |
50 | 53 | <item name="android:layout_gravity">right|center</item>
|
51 | 54 | <item name="android:paddingTop">@dimen/m3_comp_toolbar_floating_container_leading_space</item>
|
52 | 55 | <item name="android:paddingBottom">@dimen/m3_comp_toolbar_floating_container_trailing_space</item>
|
|
57 | 60 | layout_* attributes break when set via a default style. Always set this style explicitly on
|
58 | 61 | the layout to ensure that layout_* attributes are set properly. -->
|
59 | 62 | <style name="Widget.Material3.FloatingToolbar.Vertical.Vibrant">
|
| 63 | + <item name="materialThemeOverlay">@style/ThemeOverlay.Material3.FloatingToolbar.Vertical.Vibrant</item> |
60 | 64 | <item name="backgroundTint">@macro/m3_comp_toolbar_floating_vibrant_container_color</item>
|
61 | 65 | </style>
|
62 | 66 |
|
| 67 | + <!-- Style for icon buttons within Floating Toolbars. This style is |
| 68 | + automatically set on all buttons which use ?attr/materialIconButtonStyle |
| 69 | + for their button style and are children of a Floating Toolbar. --> |
| 70 | + <style name="Widget.Material3.FloatingToolbar.IconButton" parent="Widget.Material3.Button.IconButton"/> |
| 71 | + |
| 72 | + <!-- Style for icon buttons within Vibrant Floating Toolbars. This style is |
| 73 | + automatically set on all buttons which use ?attr/materialIconButtonStyle |
| 74 | + for their button style and are children of a Vibrant Floating Toolbar. --> |
| 75 | + <style name="Widget.Material3.FloatingToolbar.IconButton.Vibrant" parent="Widget.Material3.Button.IconButton.Filled.Tonal"> |
| 76 | + <item name="android:textColor">@color/m3_floating_toolbar_vibrant_icon_button_text_color_selector</item> |
| 77 | + <item name="backgroundTint">@color/m3_floating_toolbar_vibrant_icon_button_container_color_selector</item> |
| 78 | + <item name="iconTint">@color/m3_floating_toolbar_vibrant_icon_button_text_color_selector</item> |
| 79 | + </style> |
| 80 | + |
| 81 | + <!-- Theme overlay to be set on Horizontal Floating Toolbars. Sets the |
| 82 | + orientation of children within the toolbar to vertical to ensure that the |
| 83 | + children of the toolbar are displayed properly. In order for the |
| 84 | + orientation in this theme overlay to take effect, the android:orientation |
| 85 | + attribute should not be set directly on the child. Only takes effect on |
| 86 | + children that support android:orientation, such as a LinearLayout. --> |
| 87 | + <style name="ThemeOverlay.Material3.FloatingToolbar.Horizontal" parent=""> |
| 88 | + <item name="android:orientation">horizontal</item> |
| 89 | + </style> |
| 90 | + |
| 91 | + <!-- Theme overlay to be set on Horizontal Vibrant Floating Toolbars. Sets the |
| 92 | + orientation of children within the toolbar to vertical to ensure that the |
| 93 | + children of the toolbar are displayed properly. In order for the |
| 94 | + orientation in this theme overlay to take effect, the android:orientation |
| 95 | + attribute should not be set directly on the child. Only takes effect on |
| 96 | + children that support android:orientation, such as a LinearLayout. Also |
| 97 | + sets icon buttons which use ?attr/materialIconButtonStyle to a vibrant |
| 98 | + icon button style variant. --> |
| 99 | + <style name="ThemeOverlay.Material3.FloatingToolbar.Horizontal.Vibrant"> |
| 100 | + <item name="materialIconButtonStyle"> |
| 101 | + @style/Widget.Material3.FloatingToolbar.IconButton.Vibrant |
| 102 | + </item> |
| 103 | + </style> |
| 104 | + |
| 105 | + <!-- Theme overlay to be set on Vertical Floating Toolbars. Sets the |
| 106 | + orientation of children within the toolbar to vertical to ensure that the |
| 107 | + children of the toolbar are displayed properly. In order for the |
| 108 | + orientation in this theme overlay to take effect, the android:orientation |
| 109 | + attribute should not be set directly on the child. Only takes effect on |
| 110 | + children that support android:orientation, such as a LinearLayout. --> |
| 111 | + <style name="ThemeOverlay.Material3.FloatingToolbar.Vertical" parent=""> |
| 112 | + <item name="android:orientation">vertical</item> |
| 113 | + </style> |
| 114 | + |
| 115 | + <!-- Theme overlay to be set on Vertical Vibrant Floating Toolbars. Sets the |
| 116 | + orientation of children within the toolbar to vertical to ensure that |
| 117 | + the children of the toolbar are displayed properly. In order for the |
| 118 | + orientation in this theme overlay to take effect, the |
| 119 | + android:orientation attribute should not be set directly on the child. |
| 120 | + Only takes effect on children that support android:orientation, such as |
| 121 | + a LinearLayout. Also sets icon buttons which use |
| 122 | + ?attr/materialIconButtonStyle to a vibrant icon button style variant. --> |
| 123 | + <style name="ThemeOverlay.Material3.FloatingToolbar.Vertical.Vibrant"> |
| 124 | + <item name="materialIconButtonStyle"> |
| 125 | + @style/Widget.Material3.FloatingToolbar.IconButton.Vibrant |
| 126 | + </item> |
| 127 | + </style> |
| 128 | + |
63 | 129 | </resources>
|
0 commit comments