Files
Radio/app/src/main/res/navigation/nav_graph_main.xml
T
Michatec 181ebd47df 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.
2026-06-01 19:32:46 +02:00

66 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
app:startDestination="@id/player_destination">
<!-- PLAYER -->
<fragment
android:id="@+id/player_destination"
android:name="com.michatec.radio.PlayerFragment"
android:label="Player"
tools:layout="@layout/fragment_player">
<action
android:id="@+id/action_map_fragment_to_settings_fragment"
app:destination="@id/settings_destination" />
<action
android:id="@+id/action_map_fragment_to_visualizer_fragment"
app:destination="@id/visualizer_destination" />
<action
android:id="@+id/action_map_fragment_to_player_to_add_station"
app:destination="@id/add_station_destination" />
</fragment>
<!-- SETTINGS -->
<fragment
android:id="@+id/settings_destination"
android:name="com.michatec.radio.SettingsFragment"
android:label="Settings">
<action
android:id="@+id/action_settings_to_equalizer"
app:destination="@id/equalizer_destination" />
<action
android:id="@+id/action_settings_to_visualizer"
app:destination="@id/visualizer_destination" />
<action
android:id="@+id/action_settings_to_cstheme"
app:destination="@id/custom_theme_destination" />
</fragment>
<!-- EQUALIZER -->
<fragment
android:id="@+id/equalizer_destination"
android:name="com.michatec.radio.EqualizerFragment"
android:label="Equalizer" />
<!-- VISUALIZER -->
<fragment
android:id="@+id/visualizer_destination"
android:name="com.michatec.radio.VisualizerFragment"
android:label="Visualizer" />
<!-- ADD STATION (TV) -->
<fragment
android:id="@+id/add_station_destination"
android:name="com.michatec.radio.AddStationFragment"
android:label="Add Station"
tools:layout="@layout/dialog_find_station" />
<!-- CUSTOM THEME -->
<fragment
android:id="@+id/custom_theme_destination"
android:name="com.michatec.radio.CustomThemeFragment"
android:label="Custom Theme"
tools:layout="@layout/fragment_custom_theme" />
</navigation>