Skip to content

Commit

Permalink
fix alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Oct 15, 2023
1 parent 190a3b5 commit c04584d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -828,13 +828,13 @@ public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){
languageButton = wrap.findViewById(R.id.language_btn);
languageButton.setOnClickListener(v->showLanguageAlert());
languageButton.setOnLongClickListener(v->{
languageButton.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
if(!getLocalPrefs().bottomEncoding){
getLocalPrefs().bottomEncoding=true;
getLocalPrefs().save();
}
return false;
});
publishButton.post(()->publishButton.setMinimumWidth(publishButton.getWidth()));

publishButton.setOnClickListener(v -> {
if(GlobalUserPreferences.altTextReminders && editingStatus==null)
Expand Down
10 changes: 6 additions & 4 deletions mastodon/src/main/res/layout/compose_action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingHorizontal="16dp"
android:paddingBottom="4dp">
android:paddingHorizontal="16dp">

<Button
android:id="@+id/language_btn"
Expand All @@ -18,14 +17,17 @@
android:drawableStart="@drawable/ic_fluent_local_language_16_regular"
android:drawablePadding="8dp"
android:drawableTint="?colorM3OnSurfaceVariant"
android:contentDescription="@string/language"
android:tooltipText="@string/language"
android:textColor="?colorM3OnSurfaceVariant" />

<ImageButton
android:id="@+id/drafts_btn"
style="@style/Widget.Mastodon.M3.Button.Text"
android:background="@drawable/bg_button_m3_text_circle"
android:layout_width="40dp"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_marginStart="-6dp"
android:src="@drawable/ic_fluent_clock_20_regular"
android:tint="?colorM3OnSurfaceVariant"
android:contentDescription="@string/sk_schedule_or_draft"
Expand All @@ -37,7 +39,7 @@
android:id="@+id/publish_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:layout_marginStart="6dp"
android:singleLine="true"
android:ellipsize="end" />

Expand Down

0 comments on commit c04584d

Please sign in to comment.