feat(ui): add custom theme color support and share app functionality

Introduce a new custom theme feature that allows users to personalize the application background color using RGB sliders, hex input, or a set of predefined palettes.

Key changes include:
* **Custom Theme Engine**: Added `CustomThemeFragment` and `ThemeHelper` to manage color selection and application. The UI dynamically updates the background color across the `MainActivity` and `PlayerFragment` when preferences change.
* **Android TV Support**: Provided a specialized layout for television devices (`fragment_custom_theme.xml` in `layout-television`) with optimized focus handling for D-pad navigation.
* **Share Feature**: Implemented a "Share App" preference in `SettingsFragment` that triggers a standard Android share intent and displays a thank-you notification upon use.
* **Localization**: Added Ukrainian language support and updated string resources for multiple locales (DE, DA, EL, FR, JA, NL, PL, RU) to include the new theme and share options.
* **Persistence**: Updated `PreferencesHelper` and `Keys` to store theme-related settings, including the enabled state, selected color, and predefined color index.
This commit is contained in:
2026-06-01 19:32:46 +02:00
parent 4429ed4057
commit 181ebd47df
29 changed files with 947 additions and 3 deletions
+19
View File
@@ -161,4 +161,23 @@
<string name="media_route_menu_title">Трансляция</string>
<string name="pref_visualizer_title">Анализатор спектра</string>
<string name="pref_visualizer_summary">Показать анализатор спектра.</string>
<string name="pref_share_app_title">Поделиться приложением</string>
<string name="pref_share_app_summary">Рекомендовать это приложение другу.</string>
<string name="pref_share_app_share_text">Посмотрите это классное радио-приложение: https://github.com/michatec/Radio</string>
<string name="pref_share_app_thank_title">Спасибо!</string>
<string name="pref_share_app_thank_message">Большое спасибо от разработчиков.</string>
<!-- Custom Theme -->
<string name="pref_custom_theme_enabled_summary">Включает вкладку пользовательской темы.</string>
<string name="pref_custom_theme_disabled_summary">Отключает вкладку пользовательской темы.</string>
<string name="pref_custom_theme_summary">Настройка цвета фона приложения.</string>
<string name="pref_custom_theme_title">Пользовательская тема</string>
<string name="pref_custom_theme_enabled_title">Включить пользовательскую тему</string>
<string name="theme_predefined_colors">Предустановленные цвета (Светлые/Темные):</string>
<string name="theme_custom_rgb">Пользовательский RGB (пожалуйста, адаптируйте к приложению):</string>
<string name="theme_red">Красный</string>
<string name="theme_green">Зеленый</string>
<string name="theme_blue">Синий</string>
<string name="hex_code">Hex-код</string>
</resources>