/
styles.xml
77 lines (66 loc) · 3.42 KB
/
styles.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2017 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<style name="Widget.MaterialComponents.BottomAppBar" parent="Widget.AppCompat.Toolbar">
<item name="enforceMaterialTheme">true</item>
<item name="backgroundTint">?attr/colorSurface</item>
<item name="fabCradleMargin">@dimen/mtrl_bottomappbar_fab_cradle_margin</item>
<item name="fabCradleRoundedCornerRadius">
@dimen/mtrl_bottomappbar_fab_cradle_rounded_corner_radius
</item>
<item name="fabCradleVerticalOffset">@dimen/mtrl_bottomappbar_fab_cradle_vertical_offset</item>
<item name="android:minHeight">@dimen/mtrl_bottomappbar_height</item>
<item name="maxButtonHeight">@dimen/mtrl_bottomappbar_height</item>
<item name="elevation">8dp</item>
<item name="paddingBottomSystemWindowInsets">true</item>
<item name="paddingLeftSystemWindowInsets">true</item>
<item name="paddingRightSystemWindowInsets">true</item>
</style>
<style name="Widget.MaterialComponents.BottomAppBar.Colored" parent="Widget.MaterialComponents.BottomAppBar">
<item name="backgroundTint">?attr/colorPrimary</item>
<item name="materialThemeOverlay">@style/ThemeOverlay.MaterialComponents.BottomAppBar.Primary</item>
</style>
<style name="Widget.MaterialComponents.BottomAppBar.PrimarySurface" parent="Widget.MaterialComponents.BottomAppBar.Colored"/>
<style name="ThemeOverlay.MaterialComponents.BottomAppBar.Surface" parent="">
<item name="colorControlNormal">@color/material_on_surface_emphasis_medium</item>
<item name="actionMenuTextColor">@color/material_on_surface_emphasis_medium</item>
</style>
<style name="ThemeOverlay.MaterialComponents.BottomAppBar.Primary" parent="">
<item name="colorControlNormal">?attr/colorOnPrimary</item>
<item name="actionMenuTextColor">?attr/colorOnPrimary</item>
</style>
<!-- M3 Styles -->
<style name="Widget.Material3.BottomAppBar" parent="Widget.MaterialComponents.BottomAppBar">
<item name="fabAnimationMode">slide</item>
<item name="fabAnchorMode">cradle</item>
<item name="fabCradleMargin">@dimen/m3_bottomappbar_fab_cradle_margin</item>
<item name="fabCradleRoundedCornerRadius">
@dimen/m3_bottomappbar_fab_cradle_rounded_corner_radius
</item>
<item name="fabCradleVerticalOffset">
@dimen/m3_bottomappbar_fab_cradle_vertical_offset
</item>
<item name="elevation">@dimen/m3_sys_elevation_level2</item>
<item name="backgroundTint">?attr/colorSurface</item>
<item name="navigationIconTint">?attr/colorOnSurfaceVariant</item>
<item name="materialThemeOverlay">@style/ThemeOverlay.Material3.BottomAppBar</item>
</style>
<style name="ThemeOverlay.Material3.BottomAppBar" parent="">
<item name="colorControlNormal">?attr/colorOnSurface</item>
<item name="actionMenuTextColor">?attr/colorOnSurface</item>
</style>
</resources>