From 22a722c06d5e6dcab0f0d1cd57835ec2895b0203 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 17 Feb 2018 22:53:54 +0100 Subject: [PATCH] change image button background --- src/main/res/layout/activity_edit_account.xml | 8 ++++---- src/main/res/layout/activity_muc_details.xml | 6 +++--- src/main/res/layout/presence_template.xml | 2 +- src/main/res/values-v21/dimens.xml | 1 - src/main/res/values/dimens.xml | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main/res/layout/activity_edit_account.xml b/src/main/res/layout/activity_edit_account.xml index 677a4388c..c65a93e4f 100644 --- a/src/main/res/layout/activity_edit_account.xml +++ b/src/main/res/layout/activity_edit_account.xml @@ -503,7 +503,7 @@ android:layout_alignParentRight="true" android:layout_centerVertical="true" android:alpha="?attr/icon_alpha" - android:background="?android:selectableItemBackground" + android:background="?attr/selectableItemBackgroundBorderless" android:padding="@dimen/image_button_padding" android:src="?attr/icon_remove" android:visibility="visible" /> @@ -548,7 +548,7 @@ android:layout_alignParentRight="true" android:layout_centerVertical="true" android:alpha="?attr/icon_alpha" - android:background="?android:selectableItemBackground" + android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/copy_otr_clipboard_description" android:padding="@dimen/image_button_padding" android:src="?attr/icon_copy" @@ -600,7 +600,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="?attr/icon_alpha" - android:background="?android:selectableItemBackground" + android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/copy_omemo_clipboard_description" android:padding="@dimen/image_button_padding" android:src="?attr/icon_copy" @@ -611,7 +611,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="?attr/icon_alpha" - android:background="?android:selectableItemBackground" + android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/regenerate_omemo_key" android:padding="@dimen/image_button_padding" android:src="?attr/icon_refresh" diff --git a/src/main/res/layout/activity_muc_details.xml b/src/main/res/layout/activity_muc_details.xml index 32883b89f..88604c970 100644 --- a/src/main/res/layout/activity_muc_details.xml +++ b/src/main/res/layout/activity_muc_details.xml @@ -80,7 +80,7 @@ android:layout_alignParentRight="true" android:layout_centerVertical="true" android:alpha="?attr/icon_alpha" - android:background="?android:selectableItemBackground" + android:background="?attr/selectableItemBackgroundBorderless" android:padding="@dimen/image_button_padding" android:src="?attr/icon_edit_body"/> @@ -111,7 +111,7 @@ android:layout_centerVertical="true" android:layout_gravity="center_horizontal" android:alpha="?attr/icon_alpha" - android:background="?android:selectableItemBackground" + android:background="?attr/selectableItemBackgroundBorderless" android:padding="@dimen/image_button_padding" android:src="?attr/icon_settings"/> @@ -141,7 +141,7 @@ android:layout_centerVertical="true" android:layout_gravity="center_horizontal" android:alpha="?attr/icon_alpha" - android:background="?android:selectableItemBackground" + android:background="?attr/selectableItemBackgroundBorderless" android:padding="@dimen/image_button_padding" android:src="?attr/icon_notifications"/> diff --git a/src/main/res/layout/presence_template.xml b/src/main/res/layout/presence_template.xml index 63b38f949..cb7fc1a21 100644 --- a/src/main/res/layout/presence_template.xml +++ b/src/main/res/layout/presence_template.xml @@ -43,7 +43,7 @@ android:layout_centerVertical="true" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" - android:background="?android:selectableItemBackground" + android:background="?attr/selectableItemBackgroundBorderless" android:padding="@dimen/image_button_padding" android:alpha="?attr/icon_alpha" android:src="?attr/icon_remove"/> diff --git a/src/main/res/values-v21/dimens.xml b/src/main/res/values-v21/dimens.xml index b689d1008..8bc8f3f7b 100644 --- a/src/main/res/values-v21/dimens.xml +++ b/src/main/res/values-v21/dimens.xml @@ -1,5 +1,4 @@ 63dp - 12dp \ No newline at end of file diff --git a/src/main/res/values/dimens.xml b/src/main/res/values/dimens.xml index 81c98a79c..a18f770d1 100644 --- a/src/main/res/values/dimens.xml +++ b/src/main/res/values/dimens.xml @@ -3,7 +3,7 @@ 8dp 8dp 16dp - 8dp + 12dp 11sp 224dp 32dp