diff --git a/app/src/main/java/com/topjohnwu/magisk/AboutActivity.java b/app/src/main/java/com/topjohnwu/magisk/AboutActivity.java
index c9a7609d5..547f8f6b0 100644
--- a/app/src/main/java/com/topjohnwu/magisk/AboutActivity.java
+++ b/app/src/main/java/com/topjohnwu/magisk/AboutActivity.java
@@ -48,7 +48,7 @@ public class AboutActivity extends Activity {
String theme = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getString("theme", "");
Logger.dev("AboutActivity: Theme is " + theme);
if (getTopApplication().isDarkTheme) {
- setTheme(R.style.AppTheme_dh);
+ setTheme(R.style.AppTheme_Dark);
}
setContentView(R.layout.activity_about);
ButterKnife.bind(this);
diff --git a/app/src/main/java/com/topjohnwu/magisk/MainActivity.java b/app/src/main/java/com/topjohnwu/magisk/MainActivity.java
index 47617ab99..00150704d 100644
--- a/app/src/main/java/com/topjohnwu/magisk/MainActivity.java
+++ b/app/src/main/java/com/topjohnwu/magisk/MainActivity.java
@@ -7,7 +7,6 @@ import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
-import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.support.v4.app.ActivityCompat;
@@ -42,10 +41,10 @@ public class MainActivity extends Activity
@Override
protected void onCreate(final Bundle savedInstanceState) {
- prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
+ prefs = getTopApplication().prefs;
if (getTopApplication().isDarkTheme) {
- setTheme(R.style.AppTheme_dh);
+ setTheme(R.style.AppTheme_Dark);
}
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
@@ -81,14 +80,15 @@ public class MainActivity extends Activity
navigationView.setNavigationItemSelectedListener(this);
getTopApplication().reloadMainActivity.register(this);
+ if (getTopApplication().updateCheckDone.isTriggered)
+ onTrigger(getTopApplication().updateCheckDone);
+
}
@Override
protected void onResume() {
super.onResume();
getTopApplication().updateCheckDone.register(this);
-// if (getTopApplication().updateCheckDone.isTriggered)
-// onTrigger(getTopApplication().updateCheckDone);
checkHideSection();
}
diff --git a/app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java b/app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java
index 35bd582ba..b7b1c7c00 100644
--- a/app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java
+++ b/app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java
@@ -31,7 +31,7 @@ public class SettingsActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getTopApplication().isDarkTheme) {
- setTheme(R.style.AppTheme_dh);
+ setTheme(R.style.AppTheme_Dark);
}
setContentView(R.layout.activity_container);
diff --git a/app/src/main/res/layout/fragment_modules.xml b/app/src/main/res/layout/fragment_modules.xml
index 430de0b98..9acec96f0 100644
--- a/app/src/main/res/layout/fragment_modules.xml
+++ b/app/src/main/res/layout/fragment_modules.xml
@@ -51,9 +51,8 @@
fab:menu_shadowRadius="4dp"
fab:menu_shadowXOffset="1dp"
fab:menu_shadowYOffset="3dp"
- fab:menu_colorNormal="#cddc39"
- fab:menu_colorPressed="#9e9d24"
- fab:menu_colorRipple="#99FFFFFF"
+ fab:menu_colorNormal="?android:colorAccent"
+ fab:menu_colorPressed="?attr/colorAccentFallback"
fab:menu_animationDelayPerItem="50"
fab:menu_icon="@drawable/ic_add"
fab:menu_buttonSpacing="0dp"
@@ -64,6 +63,8 @@
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/ic_archive"
+ fab:fab_colorNormal="?android:colorAccent"
+ fab:fab_colorPressed="?attr/colorAccentFallback"
fab:fab_size="mini"
fab:fab_label="@string/fab_flash_zip" />
diff --git a/app/src/main/res/layout/section.xml b/app/src/main/res/layout/section.xml
index c63cc07b3..2340591a6 100644
--- a/app/src/main/res/layout/section.xml
+++ b/app/src/main/res/layout/section.xml
@@ -6,7 +6,7 @@
android:gravity="center_vertical"
android:paddingStart="16dp"
android:textAllCaps="true"
- android:textColor="@color/accent"
+ android:textColor="?android:colorAccent"
android:background="@android:color/transparent"
android:textSize="16sp"
android:id="@+id/section_text"
diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml
index 881387a64..7327dc4c5 100644
--- a/app/src/main/res/values/attrs.xml
+++ b/app/src/main/res/values/attrs.xml
@@ -1,6 +1,7 @@
- - @color/dh_icons
+ - @android:color/transparent
+ - @color/dark_secondary_text
-
-
-
-
-
-
-
-
-
-
-
-