Updated icon padding for all buttons

This commit is contained in:
Viktor De Pasquale 2019-11-19 17:16:07 +01:00
parent 0a239c2fef
commit afc3fb10c7
6 changed files with 5 additions and 13 deletions

View File

@ -499,7 +499,6 @@
android:text="@string/update" android:text="@string/update"
app:icon="@drawable/ic_update_md2" app:icon="@drawable/ic_update_md2"
app:iconGravity="textEnd" app:iconGravity="textEnd"
app:iconPadding="@dimen/l_50"
app:iconSize="18dp" app:iconSize="18dp"
tools:visibility="gone" /> tools:visibility="gone" />
@ -514,7 +513,6 @@
android:text="@string/install" android:text="@string/install"
app:icon="@drawable/ic_install" app:icon="@drawable/ic_install"
app:iconGravity="textEnd" app:iconGravity="textEnd"
app:iconPadding="@dimen/l_50"
app:iconSize="18dp" /> app:iconSize="18dp" />
</FrameLayout> </FrameLayout>
@ -722,7 +720,6 @@
android:text="@string/update" android:text="@string/update"
app:icon="@drawable/ic_update_md2" app:icon="@drawable/ic_update_md2"
app:iconGravity="textEnd" app:iconGravity="textEnd"
app:iconPadding="@dimen/l_50"
app:iconSize="18dp" /> app:iconSize="18dp" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
@ -735,7 +732,6 @@
android:text="@string/install" android:text="@string/install"
app:icon="@drawable/ic_install" app:icon="@drawable/ic_install"
app:iconGravity="textEnd" app:iconGravity="textEnd"
app:iconPadding="@dimen/l_50"
app:iconSize="18dp" app:iconSize="18dp"
tools:visibility="gone" /> tools:visibility="gone" />

View File

@ -23,7 +23,6 @@
android:textAllCaps="false" android:textAllCaps="false"
android:textSize="12sp" android:textSize="12sp"
app:cornerRadius="@dimen/r1" app:cornerRadius="@dimen/r1"
app:icon="@drawable/ic_module_storage_md2" app:icon="@drawable/ic_module_storage_md2" />
app:iconPadding="@dimen/l_50" />
</layout> </layout>

View File

@ -106,7 +106,6 @@
android:textAllCaps="false" android:textAllCaps="false"
app:icon="@{item.removed ? R.drawable.ic_restart : R.drawable.ic_delete_md2}" app:icon="@{item.removed ? R.drawable.ic_restart : R.drawable.ic_delete_md2}"
app:iconGravity="textEnd" app:iconGravity="textEnd"
app:iconPadding="@dimen/l_50"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/module_divider" app:layout_constraintTop_toBottomOf="@+id/module_divider"
tools:icon="@drawable/ic_delete_md2" tools:icon="@drawable/ic_delete_md2"

View File

@ -135,7 +135,6 @@
android:textColor="?colorError" android:textColor="?colorError"
android:textSize="12sp" android:textSize="12sp"
app:icon="@drawable/ic_delete_md2" app:icon="@drawable/ic_delete_md2"
app:iconPadding="@dimen/l_50"
app:iconTint="?colorError" app:iconTint="?colorError"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

View File

@ -46,7 +46,6 @@
tools:text="@tools:sample/lorem" tools:text="@tools:sample/lorem"
android:textAllCaps="false" android:textAllCaps="false"
app:icon="@{item.icon}" app:icon="@{item.icon}"
app:iconPadding="@dimen/l_50"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/module_title" app:layout_constraintStart_toEndOf="@+id/module_title"

View File

@ -56,7 +56,7 @@ variant. Make sure to use style referenced by attribute defined it attrs.xml.
<style name="WidgetFoundation.Button" parent="Widget.MaterialComponents.Button"> <style name="WidgetFoundation.Button" parent="Widget.MaterialComponents.Button">
<item name="android:textStyle">bold</item> <item name="android:textStyle">bold</item>
<item name="iconGravity">textStart</item> <item name="iconGravity">textStart</item>
<item name="iconPadding">@dimen/l1</item> <item name="iconPadding">@dimen/l_50</item>
</style> </style>
<style name="WidgetFoundation.Button.OnPrimary"> <style name="WidgetFoundation.Button.OnPrimary">
@ -69,7 +69,7 @@ variant. Make sure to use style referenced by attribute defined it attrs.xml.
<style name="WidgetFoundation.Button.Outlined" parent="Widget.MaterialComponents.Button.OutlinedButton"> <style name="WidgetFoundation.Button.Outlined" parent="Widget.MaterialComponents.Button.OutlinedButton">
<item name="android:textStyle">bold</item> <item name="android:textStyle">bold</item>
<item name="iconGravity">textStart</item> <item name="iconGravity">textStart</item>
<item name="iconPadding">@dimen/l1</item> <item name="iconPadding">@dimen/l_50</item>
<item name="strokeColor">?colorPrimary</item> <item name="strokeColor">?colorPrimary</item>
<item name="android:textColor">?colorPrimary</item> <item name="android:textColor">?colorPrimary</item>
</style> </style>
@ -84,7 +84,7 @@ variant. Make sure to use style referenced by attribute defined it attrs.xml.
<style name="WidgetFoundation.Button.Flat" parent="Widget.MaterialComponents.Button.UnelevatedButton"> <style name="WidgetFoundation.Button.Flat" parent="Widget.MaterialComponents.Button.UnelevatedButton">
<item name="android:textStyle">bold</item> <item name="android:textStyle">bold</item>
<item name="iconGravity">textStart</item> <item name="iconGravity">textStart</item>
<item name="iconPadding">@dimen/l1</item> <item name="iconPadding">@dimen/l_50</item>
</style> </style>
<style name="WidgetFoundation.Button.Flat.OnPrimary"> <style name="WidgetFoundation.Button.Flat.OnPrimary">
@ -97,7 +97,7 @@ variant. Make sure to use style referenced by attribute defined it attrs.xml.
<style name="WidgetFoundation.Button.Text" parent="Widget.MaterialComponents.Button.TextButton"> <style name="WidgetFoundation.Button.Text" parent="Widget.MaterialComponents.Button.TextButton">
<item name="android:textStyle">bold</item> <item name="android:textStyle">bold</item>
<item name="iconGravity">textStart</item> <item name="iconGravity">textStart</item>
<item name="iconPadding">@dimen/l1</item> <item name="iconPadding">@dimen/l_50</item>
</style> </style>
<style name="WidgetFoundation.Button.Text.Secondary"> <style name="WidgetFoundation.Button.Text.Secondary">