From a9286ab1503da3a6c84cb48210489374b02d1bc1 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 5 May 2022 10:08:04 +0200 Subject: [PATCH] theming --- .../app/fedilab/fedilabtube/FedilabTube.java | 8 +++++++ app/src/acad/res/values/styles.xml | 23 +++++++++++++++++++ app/src/{main => full}/res/values/styles.xml | 0 3 files changed, 31 insertions(+) create mode 100644 app/src/acad/res/values/styles.xml rename app/src/{main => full}/res/values/styles.xml (100%) diff --git a/app/src/acad/java/app/fedilab/fedilabtube/FedilabTube.java b/app/src/acad/java/app/fedilab/fedilabtube/FedilabTube.java index e8db9a5..c28ad88 100644 --- a/app/src/acad/java/app/fedilab/fedilabtube/FedilabTube.java +++ b/app/src/acad/java/app/fedilab/fedilabtube/FedilabTube.java @@ -17,6 +17,8 @@ package app.fedilab.fedilabtube; +import com.jaredrummler.cyanea.Cyanea; + import org.matomo.sdk.Matomo; import org.matomo.sdk.Tracker; import org.matomo.sdk.TrackerBuilder; @@ -27,6 +29,12 @@ public class FedilabTube extends BaseFedilabTube { private Tracker mMatomoTracker; + @Override + public void onCreate() { + super.onCreate(); + Cyanea.init(this, getResources()); + } + public synchronized Tracker getTracker() { if (mMatomoTracker != null) return mMatomoTracker; mMatomoTracker = TrackerBuilder.createDefault("https://wa.phm.education.gouv.fr/snp/matomo.php", 11).build(Matomo.getInstance(this)); diff --git a/app/src/acad/res/values/styles.xml b/app/src/acad/res/values/styles.xml new file mode 100644 index 0000000..c7107fa --- /dev/null +++ b/app/src/acad/res/values/styles.xml @@ -0,0 +1,23 @@ + + + + + + + + +