Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com>2023-02-12 00:34:16 +0300
committerGitHub <noreply@github.com>2023-02-12 00:34:16 +0300
commit23a8635d0a76edeeb2aa02eff296590b7695e80c (patch)
treeb3ad6fd319782ebb5e590f2f5a53e2e24e9d7b3f /app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java
parenta70b7edcba351e45f97e26f840a1744fb64fb2d8 (diff)
feat(theming): Integrate android-common Nextcloud library for unified M3 theming (#1431)
* refactor(branding): Use android-common to apply branding * refactor(branding): Rename BrandingUtil to ViewThemeUtils * refactor(branding): Move DeckViewThemeUtils to own class * refactor(branding): Apply theming to NavigationView * refactor(branding): Roll out android-common based theming * refactor(branding): Change terminology from "branding" to "theming" * refactor(branding): Get rid of DeckColorUtil Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java
index b4b91a2cb..cc01781e6 100644
--- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/settings/SettingsFragment.java
@@ -16,16 +16,16 @@ import it.niedermann.nextcloud.deck.DeckApplication;
import it.niedermann.nextcloud.deck.DeckLog;
import it.niedermann.nextcloud.deck.R;
import it.niedermann.nextcloud.deck.persistence.sync.SyncWorker;
-import it.niedermann.nextcloud.deck.ui.branding.BrandedSwitchPreference;
+import it.niedermann.nextcloud.deck.ui.theme.ThemedSwitchPreference;
public class SettingsFragment extends PreferenceFragmentCompat {
- private BrandedSwitchPreference wifiOnlyPref;
- private BrandedSwitchPreference compactPref;
- private BrandedSwitchPreference coverImagesPref;
- private BrandedSwitchPreference compressImageAttachmentsPref;
- private BrandedSwitchPreference debuggingPref;
- private BrandedSwitchPreference eTagPref;
+ private ThemedSwitchPreference wifiOnlyPref;
+ private ThemedSwitchPreference compactPref;
+ private ThemedSwitchPreference coverImagesPref;
+ private ThemedSwitchPreference compressImageAttachmentsPref;
+ private ThemedSwitchPreference debuggingPref;
+ private ThemedSwitchPreference eTagPref;
@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
@@ -76,12 +76,12 @@ public class SettingsFragment extends PreferenceFragmentCompat {
super.onViewCreated(view, savedInstanceState);
DeckApplication.readCurrentAccountColor().observe(getViewLifecycleOwner(), (mainColor) -> {
- wifiOnlyPref.applyBrand(mainColor);
- compactPref.applyBrand(mainColor);
- coverImagesPref.applyBrand(mainColor);
- compressImageAttachmentsPref.applyBrand(mainColor);
- debuggingPref.applyBrand(mainColor);
- eTagPref.applyBrand(mainColor);
+ wifiOnlyPref.applyTheme(mainColor);
+ compactPref.applyTheme(mainColor);
+ coverImagesPref.applyTheme(mainColor);
+ compressImageAttachmentsPref.applyTheme(mainColor);
+ debuggingPref.applyTheme(mainColor);
+ eTagPref.applyTheme(mainColor);
});
}
}