theming
This commit is contained in:
parent
fcb1974e78
commit
a9286ab150
|
@ -17,6 +17,8 @@ package app.fedilab.fedilabtube;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.jaredrummler.cyanea.Cyanea;
|
||||||
|
|
||||||
import org.matomo.sdk.Matomo;
|
import org.matomo.sdk.Matomo;
|
||||||
import org.matomo.sdk.Tracker;
|
import org.matomo.sdk.Tracker;
|
||||||
import org.matomo.sdk.TrackerBuilder;
|
import org.matomo.sdk.TrackerBuilder;
|
||||||
|
@ -27,6 +29,12 @@ public class FedilabTube extends BaseFedilabTube {
|
||||||
|
|
||||||
private Tracker mMatomoTracker;
|
private Tracker mMatomoTracker;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
Cyanea.init(this, getResources());
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized Tracker getTracker() {
|
public synchronized Tracker getTracker() {
|
||||||
if (mMatomoTracker != null) return mMatomoTracker;
|
if (mMatomoTracker != null) return mMatomoTracker;
|
||||||
mMatomoTracker = TrackerBuilder.createDefault("https://wa.phm.education.gouv.fr/snp/matomo.php", 11).build(Matomo.getInstance(this));
|
mMatomoTracker = TrackerBuilder.createDefault("https://wa.phm.education.gouv.fr/snp/matomo.php", 11).build(Matomo.getInstance(this));
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
<resources>
|
||||||
|
<attr name="backgroundView" format="color" />
|
||||||
|
|
||||||
|
<!-- Base application theme. -->
|
||||||
|
<style name="AppTheme" parent="Theme.Cyanea.Light.DarkActionBar">
|
||||||
|
<!-- Customize your theme here. -->
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AppThemeNoActionBar" parent="Theme.Cyanea.Dark.NoActionBar">
|
||||||
|
<!-- Customize your theme here. -->
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="theme" parent="@style/Theme.Cyanea.Dark" />
|
||||||
|
|
||||||
|
<style name="popupTheme" parent="@style/Theme.Cyanea.Light" />
|
||||||
|
|
||||||
|
<style name="progress" parent="SpinKitView.Circle" />
|
||||||
|
|
||||||
|
<style name="progressBottom" parent="SpinKitView.ThreeBounce" />
|
||||||
|
|
||||||
|
<style name="searchBarSepia" parent="MaterialSearchBarLight" />
|
||||||
|
|
||||||
|
</resources>
|
Loading…
Reference in New Issue