From 5f2b7799543060969826197991f11f6b287bb058 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 24 Jul 2019 19:51:31 +0200 Subject: [PATCH 1/8] New translations strings.xml (French) --- app/src/main/res/values-fr/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index b79331190..16063c820 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -1014,13 +1014,13 @@ Le bouton de connexion s’activera une fois qu’un domaine valide sera renseig Vous pouvez m’envoyer le rapport d’erreur par mail. Cela aidera à corriger le problème :)\n\nVous pouvez y ajouter des informations supplémentaires. Merci ! Utiliser l\'éditeur visuel Lorsque cette option est activée, vous serez en mesure de mettre en forme votre texte facilement avec des outils. - Statistics + Statistiques Total statuses Number of boosts Number of replies Number of statuses Statuses - Visibility + Visibilité Number with media Number with sensitive media Number with CW From 1374095f99f5fe19f2b0b55a1005ab2d1234b293 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 24 Jul 2019 19:51:37 +0200 Subject: [PATCH 2/8] New translations strings.xml (German) --- app/src/main/res/values-de/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 490fc5989..11a363835 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -510,7 +510,7 @@ Durch das Löschen der Anwendung werden diese Daten sofort entfernt.\n Verstecke geteilte Beiträge von %s Auf Profil hervorheben Verberge alles von %s - Zeige geteilte Beiträge von %s + Geteilte Beiträge von %s anzeigen Nicht mehr im Profil hervorheben Alles von %s anzeigen Dieser Benutzer wird nun in deinem Profil hervorgehoben @@ -621,7 +621,7 @@ Durch das Löschen der Anwendung werden diese Daten sofort entfernt.\n Dieses Schlagwort wurde geändert! Dieses Schlagwort wurde gelöscht! Kunst-Zeitlinie anzeigen - Plane teilen des Beitrags + Teilen des Beitrags planen Teilen geplant! Nichts geplant! Teilen planen.]]> From 11cfd885ab06dbf7efafae52c5aea3bf99724e5b Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 24 Jul 2019 20:34:17 +0200 Subject: [PATCH 3/8] New translations strings.xml (German) --- app/src/main/res/values-de/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 11a363835..37b9b74e7 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -86,7 +86,7 @@ Profil Was möchten Sie tun? Konto löschen - Konto %1$s aus der Anwendung löschen? + Möchten Sie das Konto %1$s wirklich aus der App entfernen? E-Mail senden Datei wählen Kein Dateimanager gefunden! From ab3e8562ecc8c01a27a62d16122ee4475f75f37e Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 24 Jul 2019 20:50:22 +0200 Subject: [PATCH 4/8] New translations strings.xml (Korean) --- app/src/main/res/values-ko/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index ff9162aff..404e7bbee 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -145,7 +145,7 @@ 게시물이 북마크에서 삭제 되었습니다! %d 초 - %d 초 + %d 분 %d 시 %d 초 From aba277134396ea3a71dad1f39e96776b36c58b3f Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 24 Jul 2019 21:19:11 +0200 Subject: [PATCH 5/8] New translations strings.xml (German) --- app/src/main/res/values-de/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 37b9b74e7..bfa2dd9d5 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -132,7 +132,7 @@ Entferne diesen Toot? - Diesen Toot löschen & neuentwerfen? + Diesen Toot löschen & neu entwerfen? %d Antwort From 883e830e0d2423635ce62d4b464b1c946683695a Mon Sep 17 00:00:00 2001 From: Kasun Date: Thu, 25 Jul 2019 07:37:25 +0530 Subject: [PATCH 6/8] use a separate file for fedilab features panel --- .../res/layout/custom_fedilab_features.xml | 97 ++++++++------- app/src/main/res/layout/drawer_status.xml | 110 +----------------- .../main/res/layout/drawer_status_focused.xml | 108 +---------------- 3 files changed, 57 insertions(+), 258 deletions(-) diff --git a/app/src/main/res/layout/custom_fedilab_features.xml b/app/src/main/res/layout/custom_fedilab_features.xml index bf0458f08..392903da5 100644 --- a/app/src/main/res/layout/custom_fedilab_features.xml +++ b/app/src/main/res/layout/custom_fedilab_features.xml @@ -1,38 +1,34 @@ + android:layout_marginStart="5dp" + android:background="@color/custom_features_panel_background" + android:paddingStart="2dp" + android:paddingTop="4dp" + android:paddingEnd="2dp" + android:paddingBottom="4dp" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="@id/fedilab_features" + app:layout_constraintStart_toEndOf="@id/fedilab_features" + app:layout_constraintTop_toTopOf="@id/fedilab_features"> + - - + + \ No newline at end of file diff --git a/app/src/main/res/layout/drawer_status.xml b/app/src/main/res/layout/drawer_status.xml index e99d9d1bb..7ee9a12e1 100644 --- a/app/src/main/res/layout/drawer_status.xml +++ b/app/src/main/res/layout/drawer_status.xml @@ -277,9 +277,9 @@ android:id="@+id/status_account_username" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_gravity="center_vertical" android:layout_marginStart="5dp" android:layout_marginLeft="5dp" - android:layout_gravity="center_vertical" android:layout_weight="1" android:ellipsize="end" android:maxLines="1" @@ -960,113 +960,7 @@ - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - + From 654798641e37b4c1549212ce38dcdb207caa53b5 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 25 Jul 2019 04:28:10 +0200 Subject: [PATCH 7/8] New translations strings.xml (Chinese Traditional) --- app/src/main/res/values-zh-rTW/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index ac98bb9b6..fdb478ee1 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -1028,8 +1028,8 @@ Yandex 有適當的隱私權政策,可以在這裡找到:https://yandex.ru/l 頻率 每日狀態數 日期範圍 - Groups - No groups! + 群組 + 沒有群組! %d 人投票 From 2a6c7ec6252424c5033acbcc40405f8210cf6cb1 Mon Sep 17 00:00:00 2001 From: Kasun Date: Thu, 25 Jul 2019 10:51:32 +0530 Subject: [PATCH 8/8] change colors of fedilab features buttons with theme --- .../android/drawers/StatusListAdapter.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) 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 c172152f8..0b50f2842 100644 --- a/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java +++ b/app/src/main/java/app/fedilab/android/drawers/StatusListAdapter.java @@ -1330,6 +1330,32 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct } }); + if (theme == Helper.THEME_BLACK) { + holder.fedilab_features.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4__)); + holder.custom_feature_bookmark.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4__)); + holder.custom_feature_translate.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4__)); + holder.custom_feature_timed_mute.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4__)); + holder.custom_feature_schedule.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4__)); + holder.custom_feature_mention.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4__)); + holder.custom_feature_cache.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4__)); + } else if (theme == Helper.THEME_DARK) { + holder.fedilab_features.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4_)); + holder.custom_feature_bookmark.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4_)); + holder.custom_feature_translate.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4_)); + holder.custom_feature_timed_mute.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4_)); + holder.custom_feature_schedule.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4_)); + holder.custom_feature_mention.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4_)); + holder.custom_feature_cache.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4_)); + } else { + holder.fedilab_features.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + holder.custom_feature_bookmark.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + holder.custom_feature_translate.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + holder.custom_feature_timed_mute.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + holder.custom_feature_schedule.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + holder.custom_feature_mention.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + holder.custom_feature_cache.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC4)); + } + if (status.isCustomFeaturesDisplayed()) { holder.fedilab_features_panel.setVisibility(View.VISIBLE); } else {