android, desktop: wallpapers (#4109)

* android, desktop: wallpapers

* changes

* removed unused

* changes

* backgrounds moved to themes. can be exported/imported

* changes and refactoring

* scrollable

* change

* reorder

* theme per background

* changes

* don't drop customization in same cases

* changes

* changes

* fix state update

* different defaults

* fix Android

* removed migration

* temporary

* returned theme name as uppercase back

* resilient to wrong preset name

* more

* live color change without button

* fix

* Revert "temporary"

This reverts commit 705c92ee56.

* changes

* changes

* almost candy

* old picker and ability to specify hex color

* different image

* picker

* user theme override, fixes, import/export theme with image

* revert when about to merge: useful layout for theming

* custom image displaying and deletion work correctly

* performance

* moved code up

* changes

* color changes in picker when changing themes

* reset color without closing modal

* unused

* log

* currentTheme instead of MaterialTheme

* different inheritance logic

* fix and move sent/received message colors to top

* remove background

* performance

* fix wrong base

* changes

* fix

* small

* custom image selection made normally

* better color picker

* better picker

* refactor, fixes, optimizations

* working with unknown base theme + tests

* change

* delete wallpaper dir when importing archive

* function rename

* fix bug with state update

* update colors

* fix text colors

* update images

* changes

* remote desktop and theme mode dropdown

* default theme

* additional accent 2 changes

* fix default wallpaper

* removed ChatListAlwaysVisible

* renaming

* update messages

* changes

* default theme

* unused

* member icon background color

* image quality

* fix wallpaper on empty notes screen

* update colors

* change

* update colors

* fix update on android

* fix update on both platforms

* update colors, remove serializable

* fix color

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
Stanislav Dmitrenko
2024-05-25 15:52:16 +07:00
committed by GitHub
parent ab47a5a27e
commit bf91666f07
90 changed files with 3379 additions and 887 deletions
@@ -847,7 +847,6 @@
<string name="auth_open_chat_profiles">افتح ملفات تعريف الدردشة</string>
<string name="revoke_file__confirm">اسحب الوصول</string>
<string name="save_archive">حفظ الأرشيف</string>
<string name="save_color">حفظ اللون</string>
<string name="reveal_verb">كشف</string>
<string name="stop_rcv_file__message">سيتم إيقاف استلام الملف.</string>
<string name="reject_contact_button">رفض</string>
@@ -746,7 +746,7 @@
<string name="private_routing_explanation">To protect your IP address, private routing uses your SMP servers to deliver messages.</string>
<string name="appearance_settings">Appearance</string>
<string name="customize_theme_title">Customize theme</string>
<string name="theme_colors_section_title">THEME COLORS</string>
<string name="theme_colors_section_title">INTERFACE COLORS</string>
<string name="app_version_title">App version</string>
<string name="app_version_name">App version: v%s</string>
<string name="app_version_code">App build: %s</string>
@@ -1072,6 +1072,9 @@
<string name="settings_section_title_icon">APP ICON</string>
<string name="settings_section_title_themes">THEMES</string>
<string name="settings_section_title_profile_images">Profile images</string>
<string name="settings_section_title_chat_theme">Chat theme</string>
<string name="settings_section_title_user_theme">Profile theme</string>
<string name="settings_section_title_chat_colors">Chat colors</string>
<string name="settings_section_title_messages">MESSAGES AND FILES</string>
<string name="settings_section_title_private_message_routing">PRIVATE MESSAGE ROUTING</string>
<string name="settings_section_title_calls">CALLS</string>
@@ -1201,6 +1204,7 @@
<string name="incompatible_database_version">Incompatible database version</string>
<string name="confirm_database_upgrades">Confirm database upgrades</string>
<string name="terminal_always_visible">Show console in new window</string>
<string name="chat_list_always_visible">Show chat list in new window</string>
<string name="invalid_migration_confirmation">Invalid migration confirmation</string>
<string name="upgrade_and_open_chat">Upgrade and open chat</string>
<string name="downgrade_and_open_chat">Downgrade and open chat</string>
@@ -1543,23 +1547,30 @@
<string name="incognito_info_share">When you share an incognito profile with somebody, this profile will be used for the groups they invite you to.</string>
<!-- Default themes -->
<string name="color_mode_system">System</string>
<string name="color_mode_light">Light</string>
<string name="color_mode_dark">Dark</string>
<string name="theme_system">System</string>
<string name="theme_light">Light</string>
<string name="theme_dark">Dark</string>
<string name="theme_simplex">SimpleX</string>
<string name="theme_black">Black</string>
<!-- Languages -->
<string name="language_system">System</string>
<!-- Appearance.kt -->
<string name="theme">Theme</string>
<string name="color_mode">Color mode</string>
<string name="dark_theme">Dark theme</string>
<string name="save_color">Save color</string>
<string name="dark_mode_colors">Dark mode colors</string>
<string name="import_theme">Import theme</string>
<string name="import_theme_error">Import theme error</string>
<string name="import_theme_error_desc">Make sure the file has correct YAML syntax. Export theme to have an example of the theme file structure.</string>
<string name="export_theme">Export theme</string>
<string name="reset_color">Reset colors</string>
<string name="reset_single_color">Reset color</string>
<string name="theme_destination_all_profiles">All chat profiles</string>
<string name="color_primary">Accent</string>
<string name="color_primary_variant">Additional accent</string>
<string name="color_secondary">Secondary</string>
@@ -1567,8 +1578,36 @@
<string name="color_background">Background</string>
<string name="color_surface">Menus &amp; alerts</string>
<string name="color_title">Title</string>
<string name="color_primary_variant2">Additional accent 2</string>
<string name="color_sent_message">Sent message</string>
<string name="color_sent_quote">Sent reply</string>
<string name="color_received_message">Received message</string>
<string name="color_received_quote">Received reply</string>
<string name="color_wallpaper_background">Wallpaper background</string>
<string name="color_wallpaper_tint">Wallpaper accent</string>
<string name="theme_remove_image">Remove image</string>
<!-- Backgrounds -->
<string name="wallpaper_cats">Cats</string>
<string name="wallpaper_flowers">Flowers</string>
<string name="wallpaper_hearts">Hearts</string>
<string name="wallpaper_kids">Kids</string>
<string name="wallpaper_school">School</string>
<string name="wallpaper_travel">Travel</string>
<string name="wallpaper_preview_hello_alice">Good afternoon!</string>
<string name="wallpaper_preview_hello_bob">Good morning!</string>
<string name="wallpaper_scale">Scale</string>
<string name="wallpaper_scale_repeat">Repeat</string>
<string name="wallpaper_scale_fill">Fill</string>
<string name="wallpaper_scale_fit">Fit</string>
<string name="wallpaper_advanced_settings">Advanced settings</string>
<string name="chat_theme_reset_to_global_theme">Reset to global theme</string>
<string name="chat_theme_set_default_theme">Set default theme</string>
<string name="chat_theme_apply_to_mode">Apply to</string>
<string name="chat_theme_apply_to_all_modes">All color modes</string>
<string name="chat_theme_apply_to_light_mode">Light mode</string>
<string name="chat_theme_apply_to_dark_mode">Dark mode</string>
<!-- Preferences.kt -->
<string name="chat_preferences_you_allow">You allow</string>
@@ -1150,7 +1150,6 @@
<string name="network_options_revert">Отмени промените</string>
<string name="network_options_save">Запази</string>
<string name="reset_color">Нулирай цветовете</string>
<string name="save_color">Запази цвета</string>
<string name="color_secondary">Вторичен</string>
<string name="custom_time_picker_select">Избери</string>
<string name="to_start_a_new_chat_help_header">За да започнете нов чат</string>
@@ -55,7 +55,6 @@
<string name="update_network_settings_question">Aktualizovat nastavení sítě\?</string>
<string name="incognito">Inkognito</string>
<string name="incognito_random_profile">Váš náhodný profil</string>
<string name="save_color">Uložit barvu</string>
<string name="reset_color">Obnovit barvu</string>
<string name="color_primary">Zbarvení</string>
<string name="chat_preferences_you_allow">Povolujete</string>
@@ -842,7 +842,6 @@
<string name="theme_dark">Dunkel</string>
<!-- Appearance.kt -->
<string name="theme">Design</string>
<string name="save_color">Farbe speichern</string>
<string name="reset_color">Farben zurücksetzen</string>
<string name="color_primary">Akzent</string>
<!-- Preferences.kt -->
@@ -607,7 +607,6 @@
<string name="secret_text">secreto</string>
<string name="open_simplex_chat_to_accept_call">Abrir SimpleX Chat para aceptar llamada</string>
<string name="network_options_reset_to_defaults">Restablecer valores por defecto</string>
<string name="save_color">Guardar color</string>
<string name="icon_descr_server_status_pending">Pendiente</string>
<string name="periodic_notifications">Notificaciones periódicas</string>
<string name="store_passphrase_securely">Guarda la contraseña de forma segura, NO podrás cambiarla si la pierdes.</string>
@@ -873,7 +873,6 @@
<string name="v4_6_chinese_spanish_interface_descr">Kiitos käyttäjille – osallistu Weblaten kautta!</string>
<string name="profile_password">Profiilin salasana</string>
<string name="reset_color">Oletusvärit</string>
<string name="save_color">Tallenna väri</string>
<string name="prohibit_sending_voice_messages">Estä ääniviestien lähettäminen.</string>
<string name="v4_4_disappearing_messages_desc">Lähetetyt viestit poistetaan asetetun ajan kuluttua.</string>
<string name="add_contact_or_create_group">Aloita uusi keskustelu</string>
@@ -783,7 +783,6 @@
<string name="theme_light">Clair</string>
<string name="theme_dark">Sombre</string>
<string name="theme">Thème</string>
<string name="save_color">Enregistrer la couleur</string>
<string name="reset_color">Réinitialisation des couleurs</string>
<string name="color_primary">Principale</string>
<string name="chat_preferences_you_allow">Vous autorisez</string>
@@ -69,7 +69,6 @@
<string name="personal_welcome">स्वागत %1$s!</string>
<string name="callstate_starting">शुरुआत</string>
<string name="send_verb">भेजना</string>
<string name="save_color">रंग बचाओ</string>
<string name="share_verb">साझा करना</string>
<string name="reject_contact_button">अस्वीकार</string>
<string name="network_use_onion_hosts_required">आवश्यक</string>
@@ -1196,7 +1196,6 @@
<string name="scan_code">Kód beolvasása</string>
<string name="open_port_in_firewall_title">Port megnyitása a tűzfalon</string>
<string name="callstate_starting">indítás…</string>
<string name="save_color">Szín mentése</string>
<string name="settings_shutdown">Leállítás</string>
<string name="icon_descr_sent_msg_status_sent">elküldve</string>
<string name="network_socks_toggle_use_socks_proxy">SOCKS proxy használata</string>
Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

@@ -847,7 +847,6 @@
<string name="prohibit_sending_voice_messages">Proibisci l\'invio di messaggi vocali.</string>
<string name="feature_received_prohibited">ricevuto, vietato</string>
<string name="reset_color">Ripristina i colori</string>
<string name="save_color">Salva colore</string>
<string name="accept_feature_set_1_day">Imposta 1 giorno</string>
<string name="set_group_preferences">Imposta le preferenze del gruppo</string>
<string name="theme">Tema</string>
@@ -898,7 +898,6 @@
<string name="save_passphrase_and_open_chat">שמור סיסמה ופתח את הצ׳אט</string>
<string name="save_archive">שמור ארכיון</string>
<string name="select_contacts">בחירת אנשי קשר</string>
<string name="save_color">שמור צבע</string>
<string name="v5_1_self_destruct_passcode">קוד גישה להשמדה עצמית</string>
<string name="custom_time_unit_seconds">שניות</string>
<string name="custom_time_picker_select">אישור</string>
@@ -792,7 +792,6 @@
<string name="network_options_save">保存</string>
<string name="update_network_settings_question">ネットワーク設定を更新しますか?</string>
<string name="updating_settings_will_reconnect_client_to_all_servers">設定を更新すると、全サーバにクライントの再接続が行われます。</string>
<string name="save_color">色を保存</string>
<string name="chat_preferences_you_allow">あなたが次を許可しています:</string>
<string name="chat_preferences_yes">オン</string>
<string name="set_group_preferences">グループ設定を行う</string>
@@ -757,7 +757,6 @@
<string name="save_and_notify_contact">저장하고 대화 상대에게 알리기</string>
<string name="remove_passphrase">지우기</string>
<string name="save_archive">아카이브 저장하기</string>
<string name="save_color">색상 저장하기</string>
<string name="save_passphrase_in_keychain">암호 저장소에 비밀번호 저장하기</string>
<string name="restore_database">데이터베이스 백업 복원하기</string>
<string name="restore_database_alert_desc">데이터베이스 백업을 복원한 후 이전 비밀번호를 입력해 주세요. 이 작업은 되돌릴 수 없어요.</string>
@@ -189,7 +189,6 @@
<string name="dont_show_again">Daugiau neberodyti</string>
<string name="theme_dark">Tamsus</string>
<string name="reset_color">Atstatyti spalvas</string>
<string name="save_color">Įrašyti spalvą</string>
<string name="group_preferences">Grupės parinktys</string>
<string name="full_deletion">Ištrinti visiems</string>
<string name="direct_messages">Tiesioginės žinutės</string>
@@ -323,7 +323,6 @@
<string name="network_options_revert">പഴയപടിയാക്കുക</string>
<string name="theme_system">സംവിധാനം</string>
<string name="language_system">സംവിധാനം</string>
<string name="save_color">നിറം സംരക്ഷിക്കുക</string>
<string name="color_title">ശീർഷകം</string>
<string name="color_secondary">രണ്ടാംതരമായ</string>
<string name="chat_preferences_yes">അതെ</string>
@@ -814,7 +814,6 @@
<string name="incognito_info_share">Wanneer je een incognito profiel met iemand deelt, wordt dit profiel gebruikt voor de groepen waarvoor ze je uitnodigen.</string>
<string name="theme">Thema</string>
<string name="reset_color">Kleuren resetten</string>
<string name="save_color">Kleur opslaan</string>
<string name="theme_system">Systeem</string>
<string name="chat_preferences_yes">ja</string>
<string name="feature_received_prohibited">gekregen, verboden</string>
@@ -799,7 +799,6 @@
<string name="prohibit_sending_disappearing_messages">Zabroń wysyłania znikających wiadomości.</string>
<string name="feature_received_prohibited">otrzymane, zabronione</string>
<string name="reset_color">Resetuj kolory</string>
<string name="save_color">Zapisz kolor</string>
<string name="accept_feature_set_1_day">Ustaw 1 dzień</string>
<string name="theme_system">System</string>
<string name="language_system">System</string>
@@ -485,7 +485,6 @@
<string name="network_options_revert">Reverter</string>
<string name="network_options_save">Salvar</string>
<string name="reset_color">Redefinir cores</string>
<string name="save_color">Salvar cor</string>
<string name="v4_5_italian_interface">interface italiana</string>
<string name="periodic_notifications">Notificações periódicas</string>
<string name="use_camera_button">Câmera</string>
@@ -370,7 +370,6 @@
<string name="invite_prohibited_description">Você está a tentar convidar um contato com quem partilhou um perfil anónimo para o grupo no qual voçê está a usar o seu perfil principal</string>
<string name="info_row_connection">Conexão</string>
<string name="incognito_info_protects">O modo anónimo protege a privacidade do nome e da imagem do seu perfil principal — para cada novo contato um novo perfil aleatório é criado.</string>
<string name="save_color">Salvar cor</string>
<string name="description_you_shared_one_time_link">você partilhou ligação de utilização única</string>
<string name="description_you_shared_one_time_link_incognito">você partilhou ligação anónima de utilização única</string>
<string name="invalid_connection_link">Ligação de conexão inválida</string>
@@ -848,7 +848,6 @@
<string name="theme_dark">Темная</string>
<!-- Appearance.kt -->
<string name="theme">Тема</string>
<string name="save_color">Сохранить цвет</string>
<string name="reset_color">Сбросить цвета</string>
<string name="color_primary">Акцент</string>
<!-- Preferences.kt -->
@@ -855,7 +855,6 @@
<string name="network_options_revert">เปลี่ยนกลับ</string>
<string name="network_options_save">บันทึก</string>
<string name="reset_color">รีเซ็ตสี</string>
<string name="save_color">บันทึกสี</string>
<string name="feature_received_prohibited">ได้รับ, ห้าม</string>
<string name="v4_4_live_messages_desc">ผู้รับจะเห็นการอัปเดตเมื่อคุณพิมพ์</string>
<string name="v4_5_reduced_battery_usage">ลดการใช้แบตเตอรี่</string>
@@ -122,7 +122,6 @@
<string name="theme_simplex">SimpleX</string>
<string name="dark_theme">Koyu tema</string>
<string name="theme">Tema</string>
<string name="save_color">Rengi kaydet</string>
<string name="import_theme">Temayı içe aktar</string>
<string name="import_theme_error">Temayı içe aktarırken hata oluştu</string>
<string name="import_theme_error_desc">Dosyanın doğru YAML sözdizimine sahip olduğundan emin olun. Tema dosyası yapısının bir örneğine sahip olmak için temayı dışa aktarın.</string>
@@ -450,7 +450,6 @@
<string name="change_member_role_question">Змінити роль у групі\?</string>
<string name="error_removing_member">Помилка при вилученні учасника</string>
<string name="group_main_profile_sent">Ваш профіль чату буде відправлений учасникам групи</string>
<string name="save_color">Зберегти колір</string>
<string name="full_deletion">Видалення для всіх</string>
<string name="voice_messages">Голосові повідомлення</string>
<string name="voice_prohibited_in_this_chat">Голосові повідомлення заборонені в цьому чаті.</string>
@@ -831,7 +831,6 @@
<string name="network_option_seconds_label">秒</string>
<string name="network_options_revert">恢复</string>
<string name="reset_color">重置颜色</string>
<string name="save_color">保存颜色</string>
<string name="v4_5_reduced_battery_usage">减少电池使用量</string>
<string name="v4_5_private_filenames_descr">为了保护时区,图像/语音文件使用 UTC。</string>
<string name="use_chat">使用聊天</string>
@@ -827,7 +827,6 @@
<string name="error_saving_group_profile">儲存群組檔案時出錯</string>
<string name="network_options_revert">恢復</string>
<string name="theme">主題</string>
<string name="save_color">儲存顏色</string>
<string name="chat_preferences_you_allow">你允許</string>
<string name="set_group_preferences">修改群組內的設定</string>
<string name="direct_messages">私訊</string>