Merge pull request #516 from sk22/improve-compose-toolbar-hitbox

Bigger hitbox for items in compose toolbar
This commit is contained in:
Gregory K 2023-01-23 17:17:20 +03:00 committed by GitHub
commit 58ab0c0fc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 22 deletions

View File

@ -165,16 +165,16 @@
android:background="?colorBackgroundLightest" android:background="?colorBackgroundLightest"
android:elevation="2dp" android:elevation="2dp"
android:outlineProvider="bounds" android:outlineProvider="bounds"
android:paddingLeft="16dp" android:paddingHorizontal="10dp"
android:paddingRight="16dp" android:layout_marginEnd="6dp"
android:layoutDirection="locale"> android:layoutDirection="locale">
<ImageButton <ImageButton
android:id="@+id/btn_media" android:id="@+id/btn_media"
android:layout_width="24dp" android:layout_width="36dp"
android:layout_height="24dp" android:layout_height="36dp"
android:layout_marginEnd="24dp" android:layout_marginEnd="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless" android:background="?android:attr/actionBarItemBackground"
android:padding="0px" android:padding="0px"
android:tint="@color/compose_button" android:tint="@color/compose_button"
android:tintMode="src_in" android:tintMode="src_in"
@ -184,10 +184,10 @@
<ImageButton <ImageButton
android:id="@+id/btn_poll" android:id="@+id/btn_poll"
android:layout_width="24dp" android:layout_width="36dp"
android:layout_height="24dp" android:layout_height="36dp"
android:layout_marginEnd="24dp" android:layout_marginEnd="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless" android:background="?android:attr/actionBarItemBackground"
android:padding="0px" android:padding="0px"
android:tint="@color/compose_button" android:tint="@color/compose_button"
android:tintMode="src_in" android:tintMode="src_in"
@ -197,10 +197,10 @@
<ImageButton <ImageButton
android:id="@+id/btn_emoji" android:id="@+id/btn_emoji"
android:layout_width="24dp" android:layout_width="36dp"
android:layout_height="24dp" android:layout_height="36dp"
android:layout_marginEnd="24dp" android:layout_marginEnd="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless" android:background="?android:attr/actionBarItemBackground"
android:padding="0px" android:padding="0px"
android:tint="@color/compose_button" android:tint="@color/compose_button"
android:tintMode="src_in" android:tintMode="src_in"
@ -210,10 +210,10 @@
<ImageButton <ImageButton
android:id="@+id/btn_spoiler" android:id="@+id/btn_spoiler"
android:layout_width="24dp" android:layout_width="36dp"
android:layout_height="24dp" android:layout_height="36dp"
android:layout_marginEnd="24dp" android:layout_marginEnd="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless" android:background="?android:attr/actionBarItemBackground"
android:padding="0px" android:padding="0px"
android:tint="@color/compose_button" android:tint="@color/compose_button"
android:tintMode="src_in" android:tintMode="src_in"
@ -223,10 +223,10 @@
<ImageButton <ImageButton
android:id="@+id/btn_visibility" android:id="@+id/btn_visibility"
android:layout_width="24dp" android:layout_width="36dp"
android:layout_height="24dp" android:layout_height="36dp"
android:layout_marginEnd="24dp" android:layout_marginEnd="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless" android:background="?android:attr/actionBarItemBackground"
android:padding="0px" android:padding="0px"
android:tint="@color/compose_button" android:tint="@color/compose_button"
android:tintMode="src_in" android:tintMode="src_in"