mirror of
https://github.com/Michatec/Radio.git
synced 2026-06-05 03:12:15 +02:00
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:
@@ -159,4 +159,23 @@
|
||||
<string name="media_route_menu_title">Diffuser</string>
|
||||
<string name="pref_visualizer_title">Analyseur de spectre</string>
|
||||
<string name="pref_visualizer_summary">Afficher l analyseur de spectre.</string>
|
||||
|
||||
<string name="pref_share_app_title">Partager l\'application</string>
|
||||
<string name="pref_share_app_summary">Recommandez cette application à un ami.</string>
|
||||
<string name="pref_share_app_share_text">Découvrez cette super application radio : https://github.com/michatec/Radio</string>
|
||||
<string name="pref_share_app_thank_title">Merci beaucoup !</string>
|
||||
<string name="pref_share_app_thank_message">Un grand merci de la part des développeurs.</string>
|
||||
|
||||
<!-- Custom Theme -->
|
||||
<string name="pref_custom_theme_enabled_summary">Active l\'onglet du thème personnalisé.</string>
|
||||
<string name="pref_custom_theme_disabled_summary">Désactive l\'onglet du thème personnalisé.</string>
|
||||
<string name="pref_custom_theme_summary">Personnalisez la couleur d\'arrière-plan de l\'application.</string>
|
||||
<string name="pref_custom_theme_title">Thème personnalisé</string>
|
||||
<string name="pref_custom_theme_enabled_title">Activer le thème personnalisé</string>
|
||||
<string name="theme_predefined_colors">Couleurs prédéfinies (Clair/Sombre) :</string>
|
||||
<string name="theme_custom_rgb">RGB personnalisé (veuillez l\'adapter à l\'application) :</string>
|
||||
<string name="theme_red">Rouge</string>
|
||||
<string name="theme_green">Vert</string>
|
||||
<string name="theme_blue">Bleu</string>
|
||||
<string name="hex_code">Code Hex</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user