Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
make show new posts button less disruptive
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Oct 20, 2023
1 parent b5eae13 commit 11c7816
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
10 changes: 0 additions & 10 deletions mastodon/src/main/res/drawable/bg_button_new_posts.xml

This file was deleted.

25 changes: 12 additions & 13 deletions mastodon/src/main/res/layout/home_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
android:visibility="gone" />
<TextView
android:id="@+id/timeline_title"
style="?android:attr/titleTextAppearance"
style="@style/action_bar_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
Expand All @@ -47,22 +47,21 @@
android:layout_height="match_parent">
<Button
android:id="@+id/show_new_posts_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingVertical="2dp"
android:paddingStart="16dp"
android:paddingEnd="20dp"
android:minHeight="32sp"
style="@style/Widget.Mastodon.M3.Button.Tonal.Icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/bg_button_m3_tonal_selector"
android:maxLines="2"
android:ellipsize="end"
android:lineSpacingMultiplier="0.8"
android:textAppearance="@style/m3_title_medium"
android:textSize="16sp"
android:text="@string/see_new_posts"
android:textColor="@color/gray_25"
android:background="@drawable/bg_button_new_posts"
android:textAppearance="@style/m3_title_medium"
android:text="@string/see_new_posts"
android:drawableStart="@drawable/ic_fluent_arrow_up_16_filled"
android:drawablePadding="8dp"
android:layout_gravity="center" />
<!--
using the selector background because..
the selected=false state's border looks better than the one from the outline style
(as per m3 spec) :( i should probably fix this at some point
-->
</FrameLayout>
</FrameLayout>

0 comments on commit 11c7816

Please sign in to comment.