Skip to content

Commit

Permalink
refactor(compose): remove unnecessary drawables
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Sep 20, 2023
1 parent 4aee673 commit 18857e6
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,7 @@ private void updateScheduledAt(Instant scheduledAt) {
} else {
draftsBtn.setImageDrawable(getContext().getDrawable(GlobalUserPreferences.relocatePublishButton ? R.drawable.ic_fluent_clock_24_regular : R.drawable.ic_fluent_clock_20_regular));
if(GlobalUserPreferences.relocatePublishButton){
publishButtonRelocated.setImageResource(R.drawable.ic_fluent_send_24_selector);
publishButtonRelocated.setImageResource(R.drawable.ic_fluent_send_24_regular);
}
resetPublishButtonText();
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_fluent_drafts_24_filled_enabled" android:state_enabled="true"/>
<item android:drawable="@drawable/ic_fluent_drafts_24_filled" android:state_enabled="true"/>
<item android:drawable="@drawable/ic_fluent_drafts_24_regular"/>
</selector>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_fluent_save_24_filled_enabled" android:state_enabled="true"/>
<item android:drawable="@drawable/ic_fluent_save_24_filled" android:state_enabled="true"/>
<item android:drawable="@drawable/ic_fluent_save_24_regular"/>
</selector>
3 changes: 0 additions & 3 deletions mastodon/src/main/res/drawable/ic_fluent_send_24_enabled.xml

This file was deleted.

8 changes: 0 additions & 8 deletions mastodon/src/main/res/drawable/ic_fluent_send_24_selector.xml

This file was deleted.

2 changes: 1 addition & 1 deletion mastodon/src/main/res/layout/fragment_compose.xml
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
android:contentDescription="@string/publish"
android:tint="@color/compose_button"
android:tintMode="src_in"
android:src="@drawable/ic_fluent_send_24_selector"
android:src="@drawable/ic_fluent_send_24_regular"
android:visibility="gone"
android:singleLine="true" />

Expand Down

0 comments on commit 18857e6

Please sign in to comment.