mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 20:37:12 +01:00
Change some colors. Add a current user icon.
This commit is contained in:
parent
6f4fc73262
commit
ffa65a7dd8
@ -321,7 +321,7 @@ public abstract class RedditDataRoomDatabase extends RoomDatabase {
|
||||
private static final Migration MIGRATION_17_18 = new Migration(17, 18) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase database) {
|
||||
database.execSQL("ALTER TABLE custom_themes ADD COLUMN current_user INTEGER DEFAULT " + Color.parseColor("#A202EE") + " NOT NULL");
|
||||
database.execSQL("ALTER TABLE custom_themes ADD COLUMN current_user INTEGER DEFAULT " + Color.parseColor("#00D5EA") + " NOT NULL");
|
||||
database.execSQL("ALTER TABLE custom_themes ADD COLUMN upvote_ratio_icon_tint INTEGER DEFAULT " + Color.parseColor("#0256EE") + " NOT NULL");
|
||||
}
|
||||
};
|
||||
|
@ -1070,6 +1070,9 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter<Recy
|
||||
moderatorDrawable, null, null, null);
|
||||
} else if (comment.getAuthor().equals(mAccountName)) {
|
||||
((CommentViewHolder) holder).authorTextView.setTextColor(mCurrentUserColor);
|
||||
Drawable currentUserDrawable = Utils.getTintedDrawable(mActivity, R.drawable.ic_current_user_14dp, mCurrentUserColor);
|
||||
((CommentViewHolder) holder).authorTextView.setCompoundDrawablesWithIntrinsicBounds(
|
||||
currentUserDrawable, null, null, null);
|
||||
}
|
||||
|
||||
if (mShowElapsedTime) {
|
||||
|
@ -329,7 +329,7 @@ public class CustomThemeWrapper {
|
||||
|
||||
public int getCurrentUser() {
|
||||
return getThemeSharedPreferences().getInt(CustomThemeSharedPreferencesUtils.CURRENT_USER,
|
||||
getDefaultColor("#A202EE", "#A202EE", "#A202EE"));
|
||||
getDefaultColor("#00D5EA", "#00D5EA", "#00D5EA"));
|
||||
}
|
||||
|
||||
public int getSingleCommentThreadBackgroundColor() {
|
||||
@ -564,7 +564,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#B3E5F9");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#B3E5F9");
|
||||
customTheme.dividerColor = Color.parseColor("#E0E0E0");
|
||||
@ -655,7 +655,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.dividerColor = Color.parseColor("#69666C");
|
||||
@ -746,7 +746,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.dividerColor = Color.parseColor("#69666C");
|
||||
@ -837,7 +837,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#B3E5F9");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#B3E5F9");
|
||||
customTheme.dividerColor = Color.parseColor("#E0E0E0");
|
||||
@ -928,7 +928,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.dividerColor = Color.parseColor("#69666C");
|
||||
@ -1019,7 +1019,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.dividerColor = Color.parseColor("#69666C");
|
||||
@ -1110,7 +1110,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#B3E5F9");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#B3E5F9");
|
||||
customTheme.dividerColor = Color.parseColor("#E0E0E0");
|
||||
@ -1201,7 +1201,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.dividerColor = Color.parseColor("#69666C");
|
||||
@ -1292,7 +1292,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#123E77");
|
||||
customTheme.dividerColor = Color.parseColor("#69666C");
|
||||
@ -1374,7 +1374,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.lockedIconTint = Color.parseColor("#EE7302");
|
||||
customTheme.crosspostIconTint = Color.parseColor("#FF4081");
|
||||
customTheme.upvoteRatioIconTint = Color.parseColor("#0256EE");
|
||||
customTheme.stickiedPostIconTint = Color.parseColor("#0D47A1");
|
||||
customTheme.stickiedPostIconTint = Color.parseColor("#02ABEE");
|
||||
customTheme.noPreviewPostTypeIconTint = Color.parseColor("#FFFFFF");
|
||||
customTheme.subscribed = Color.parseColor("#FF4081");
|
||||
customTheme.unsubscribed = Color.parseColor("#0D47A1");
|
||||
@ -1383,7 +1383,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#5F5B85");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#5F5B85");
|
||||
customTheme.dividerColor = Color.parseColor("#69666C");
|
||||
@ -1474,7 +1474,7 @@ public class CustomThemeWrapper {
|
||||
customTheme.authorFlairTextColor = Color.parseColor("#EE02C4");
|
||||
customTheme.submitter = Color.parseColor("#EE8A02");
|
||||
customTheme.moderator = Color.parseColor("#00BA81");
|
||||
customTheme.currentUser = Color.parseColor("#A202EE");
|
||||
customTheme.currentUser = Color.parseColor("#00D5EA");
|
||||
customTheme.singleCommentThreadBackgroundColor = Color.parseColor("#25D5E5");
|
||||
customTheme.unreadMessageBackgroundColor = Color.parseColor("#25D5E5");
|
||||
customTheme.dividerColor = Color.parseColor("#E0E0E0");
|
||||
|
4
app/src/main/res/drawable/ic_current_user_14dp.xml
Normal file
4
app/src/main/res/drawable/ic_current_user_14dp.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="14dp" android:viewportHeight="24"
|
||||
android:viewportWidth="24" android:width="14dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#000000" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,5c1.66,0 3,1.34 3,3s-1.34,3 -3,3 -3,-1.34 -3,-3 1.34,-3 3,-3zM12,19.2c-2.5,0 -4.71,-1.28 -6,-3.22 0.03,-1.99 4,-3.08 6,-3.08 1.99,0 5.97,1.09 6,3.08 -1.29,1.94 -3.5,3.22 -6,3.22z"/>
|
||||
</vector>
|
Loading…
Reference in New Issue
Block a user