2019-09-24 20:29:35 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
|
|
|
These widgets are implementation of corresponding attribute. Never and I mean fucking never! use
|
|
|
|
these directly.
|
|
|
|
|
|
|
|
Although it is possible, it wouldn't automatically change the style when theme changes to "night"
|
|
|
|
variant. Make sure to use style referenced by attribute defined it attrs.xml.
|
|
|
|
-->
|
|
|
|
<resources>
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Appbar" parent="Widget.MaterialComponents.AppBarLayout.Surface">
|
|
|
|
<item name="elevation">0dp</item>
|
|
|
|
<item name="android:background">?attr/colorSurface</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Toolbar" parent="Widget.MaterialComponents.Toolbar.Surface">
|
|
|
|
<item name="contentInsetStart">0dp</item>
|
|
|
|
<item name="contentInsetLeft">0dp</item>
|
|
|
|
<item name="contentInsetRight">0dp</item>
|
|
|
|
<item name="contentInsetEnd">0dp</item>
|
|
|
|
<item name="contentInsetStartWithNavigation">0dp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Toolbar.Title" parent="Widget.MaterialComponents.TextView">
|
|
|
|
<item name="android:layout_width">match_parent</item>
|
|
|
|
<item name="android:layout_height">?attr/actionBarSize</item>
|
|
|
|
<item name="android:textAppearance">?appearanceTextTitleNormal</item>
|
|
|
|
<item name="android:gravity">start</item>
|
|
|
|
<item name="android:layout_gravity">center</item>
|
|
|
|
<item name="android:lines">1</item>
|
2019-09-30 19:37:57 +02:00
|
|
|
<item name="android:padding">@dimen/l1</item>
|
2019-09-24 20:29:35 +02:00
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Card" parent="Widget.MaterialComponents.CardView">
|
|
|
|
<item name="cardBackgroundColor">?attr/colorSurface</item>
|
2019-09-30 19:37:57 +02:00
|
|
|
<item name="cardCornerRadius">@dimen/l_50</item>
|
2019-09-24 20:29:35 +02:00
|
|
|
<item name="cardElevation">4dp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Card.OnPrimary" parent="Widget.MaterialComponents.CardView">
|
2019-09-30 19:37:57 +02:00
|
|
|
<item name="cardCornerRadius">@dimen/l_50</item>
|
2019-09-24 20:29:35 +02:00
|
|
|
<item name="cardElevation">0dp</item>
|
|
|
|
<item name="strokeColor">?attr/colorOnPrimaryVariant</item>
|
|
|
|
<item name="strokeWidth">1dp</item>
|
|
|
|
<item name="cardBackgroundColor">?attr/colorPrimary</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Button" parent="Widget.MaterialComponents.Button">
|
2019-09-30 19:37:57 +02:00
|
|
|
<item name="android:textStyle">bold</item>
|
2019-09-24 20:29:35 +02:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Button.Flat" parent="Widget.MaterialComponents.Button.UnelevatedButton">
|
2019-09-30 19:37:57 +02:00
|
|
|
<item name="android:textStyle">bold</item>
|
2019-09-24 20:29:35 +02:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Button.Text" parent="Widget.MaterialComponents.Button.TextButton">
|
2019-09-30 19:37:57 +02:00
|
|
|
<item name="android:textStyle">bold</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Button.Error" parent="WidgetFoundation.Button.Text">
|
|
|
|
<item name="rippleColor">?colorError</item>
|
|
|
|
<item name="android:textColor">?colorError</item>
|
|
|
|
<item name="iconTint">?colorError</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Icon">
|
|
|
|
<item name="android:layout_width">48dp</item>
|
|
|
|
<item name="android:layout_height">48dp</item>
|
|
|
|
<item name="android:padding">@dimen/l_75</item>
|
|
|
|
<item name="android:background">?selectableItemBackgroundBorderless</item>
|
|
|
|
<item name="tint">?colorTextTransient</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="WidgetFoundation.Icon.Primary">
|
|
|
|
<item name="tint">?colorPrimaryTransient</item>
|
|
|
|
</style>
|
2019-09-24 20:29:35 +02:00
|
|
|
|
2019-09-30 19:37:57 +02:00
|
|
|
<style name="WidgetFoundation.Icon.Error">
|
|
|
|
<item name="tint">?colorErrorTransient</item>
|
2019-09-24 20:29:35 +02:00
|
|
|
</style>
|
|
|
|
|
|
|
|
</resources>
|