Skip to content

Commit

Permalink
center icon in small send button (#4875)
Browse files Browse the repository at this point in the history
  • Loading branch information
connyduck authored Jan 17, 2025
1 parent eaa6f1b commit 3db8e0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class TootButton
init {
if (smallStyle) {
setIconResource(R.drawable.ic_send_24dp)
iconPadding = 0
} else {
setText(R.string.action_send)
iconGravity = ICON_GRAVITY_TEXT_START
}
val padding = resources.getDimensionPixelSize(R.dimen.toot_button_horizontal_padding)
setPadding(padding, 0, padding, 0)
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_compose.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@
android:layout_width="@dimen/toot_button_width"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textSize="?attr/status_text_medium" />
android:textSize="?attr/status_text_medium"
app:iconGravity="textStart" />

</LinearLayout>

Expand Down

0 comments on commit 3db8e0b

Please sign in to comment.