Skip to content

Commit

Permalink
Color changes also in source code
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBernard committed Sep 9, 2020
1 parent 081df2d commit f1a2faf
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.Manifest;
import android.jonas.fakestandby.R;
import android.os.Bundle;
import android.util.TypedValue;

import androidx.fragment.app.Fragment;

Expand All @@ -22,11 +23,30 @@ protected void onCreate(Bundle savedInstanceState) {
setImmersiveMode();
setSystemBackButtonLocked(true);

TypedValue typedValue = new TypedValue();
getTheme().resolveAttribute(R.attr.colorPrimary, typedValue, true);
int color = typedValue.data;

// addSlide(new WelcomeFragment(
// this,
// getString(R.string.visit_website_title),
// getString(R.string.visit_website_summary),
// R.drawable.fakestandby_overlay_preview,
// color
// ));

addSlide(AppIntroFragment.newInstance(
getString(R.string.visit_website_title),
getString(R.string.visit_website_summary),
R.drawable.app_icon_adaptive,
getColor(R.color.deep_orange)
));

addSlide(AppIntroFragment.newInstance(
getString(R.string.visit_website_title),
getString(R.string.visit_website_summary),
R.drawable.app_icon_adaptive,
getColor(R.color.aqua)
getColor(R.color.light_green)
));
}

Expand Down

0 comments on commit f1a2faf

Please sign in to comment.