diff --git a/app/src/main/assets/themes/cyanea_themes.json b/app/src/main/assets/themes/cyanea_themes.json index f317ae182..30f5932c2 100644 --- a/app/src/main/assets/themes/cyanea_themes.json +++ b/app/src/main/assets/themes/cyanea_themes.json @@ -2,7 +2,7 @@ { "theme_name":"Light", "base_theme":"LIGHT", - "primary":"#FFFFFFFF", + "primary":"#FFFFFF", "primary_dark":"#FFFFFFFF", "primary_light":"#FFd9e1e8", "accent":"#FF2b90d9", diff --git a/app/src/main/java/app/fedilab/android/activities/BaseMainActivity.java b/app/src/main/java/app/fedilab/android/activities/BaseMainActivity.java index 2f6b1af75..9a695cd80 100644 --- a/app/src/main/java/app/fedilab/android/activities/BaseMainActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/BaseMainActivity.java @@ -323,7 +323,8 @@ public abstract class BaseMainActivity extends BaseActivity //Here, the user is authenticated appBar = findViewById(R.id.appBar); Toolbar toolbar = findViewById(R.id.toolbar); - + toolbar = findViewById(R.id.toolbar); + setSupportActionBar(toolbar); toolbarTitle = toolbar.findViewById(R.id.toolbar_title); toolbar_search = toolbar.findViewById(R.id.toolbar_search); delete_instance = findViewById(R.id.delete_instance); diff --git a/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java b/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java index 351553006..c46565c96 100644 --- a/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java +++ b/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java @@ -944,13 +944,26 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct if (type == RetrieveFeedsAsyncTask.Type.CONTEXT && holder.status_reply_indicator_top != null) { - holder.status_reply_indicator_top.setBackgroundColor(ContextCompat.getColor(context, R.color.cyanea_accent_reference)); - holder.status_reply_indicator_bottom.setBackgroundColor(ContextCompat.getColor(context, R.color.cyanea_accent_reference)); - holder.reply_indicator_dot.setBackgroundColor(ContextCompat.getColor(context, R.color.cyanea_accent_reference)); + + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { + holder.status_reply_indicator_top.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + holder.status_reply_indicator_bottom.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + holder.reply_indicator_dot.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + }else{ + holder.status_reply_indicator_top.setBackgroundColor(ContextCompat.getColor(context, R.color.cyanea_accent_reference)); + holder.status_reply_indicator_bottom.setBackgroundColor(ContextCompat.getColor(context, R.color.cyanea_accent_reference)); + holder.reply_indicator_dot.setBackgroundColor(ContextCompat.getColor(context, R.color.cyanea_accent_reference)); + } + if (status.isShowTopLine()) { holder.status_reply_indicator_top.setVisibility(View.VISIBLE); holder.reply_indicator_dot.setVisibility(View.VISIBLE); if( holder.status_reply_indicator_diag_top != null){ + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { + holder.status_reply_indicator_diag_top.setBackgroundResource(R.drawable.diag_top_android4); + }else { + holder.status_reply_indicator_diag_top.setBackgroundResource(R.drawable.diag_top); + } holder.status_reply_indicator_diag_top.setVisibility(View.VISIBLE); } } @@ -958,6 +971,12 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct holder.reply_indicator_dot.setVisibility(View.VISIBLE); holder.status_reply_indicator_bottom.setVisibility(View.VISIBLE); if( holder.status_reply_indicator_diag_bottom != null){ + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { + holder.status_reply_indicator_diag_bottom.setBackgroundResource(R.drawable.diag_bottom_android4); + }else { + holder.status_reply_indicator_diag_bottom.setBackgroundResource(R.drawable.diag_bottom); + } + holder.status_reply_indicator_diag_bottom.setVisibility(View.VISIBLE); } } diff --git a/app/src/main/res/drawable/diag_bottom_android4.xml b/app/src/main/res/drawable/diag_bottom_android4.xml new file mode 100644 index 000000000..bd7a79a1c --- /dev/null +++ b/app/src/main/res/drawable/diag_bottom_android4.xml @@ -0,0 +1,18 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/diag_top_android4.xml b/app/src/main/res/drawable/diag_top_android4.xml new file mode 100644 index 000000000..a4c4e62a1 --- /dev/null +++ b/app/src/main/res/drawable/diag_top_android4.xml @@ -0,0 +1,18 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_admin.xml b/app/src/main/res/layout/activity_admin.xml index 119625183..32f38af4c 100644 --- a/app/src/main/res/layout/activity_admin.xml +++ b/app/src/main/res/layout/activity_admin.xml @@ -26,7 +26,7 @@ android:id="@+id/appBar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:theme="@style/AppTheme.AppBarOverlay"> + > + > diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 5240f6f64..2955e2511 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -32,7 +32,7 @@ android:id="@+id/appBar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:theme="@style/AppTheme.AppBarOverlay"> + > + > + > @@ -191,7 +189,7 @@ android:layout_height="20dp" android:contentDescription="@string/cached_status" android:src="@drawable/ic_cached_black" - android:tint="?attr/colorAccent" + android:tint="?attr/iconColor" android:visibility="gone" /> @color/black @color/mastodonC4 @color/mastodonC2 + @color/white @color/black @color/black @@ -24,6 +25,7 @@ @color/black @color/black @color/mastodonC4 + @color/white @color/mastodonC2 @color/black @color/black @@ -34,6 +36,7 @@ @color/black_icon_theme @color/dark_text_toot_header @color/custom_features_button_black + @color/black @color/mastodonC1_ @color/dark_text @color/dark_text @@ -44,6 +47,7 @@ @color/black_icon_theme @color/dark_text_toot_header @color/custom_features_button_black + @color/black @color/mastodonC1_ @color/dark_text @color/dark_text @@ -56,6 +60,7 @@ @color/dark_icon_theme @color/dark_text_toot_header @color/mastodonC4 + @color/mastodonC1 @color/mastodonC1___ @color/dark_text @color/dark_text @@ -66,6 +71,7 @@ @color/dark_icon_theme @color/dark_text_toot_header @color/mastodonC4 + @color/mastodonC1 @color/mastodonC1___ @color/dark_text @color/dark_text @@ -88,6 +94,7 @@