OSDN Git Service

Invert theme
authorRicardo Cerqueira <ricardo@cyngn.com>
Thu, 27 Nov 2014 00:58:58 +0000 (00:58 +0000)
committerRicardo Cerqueira <ricardo@cyngn.com>
Thu, 27 Nov 2014 01:14:51 +0000 (01:14 +0000)
Use light theme as a stopgap readibility fix until this gets a
Material overhaul

Change-Id: I5f77d96daee34700d3cea7bd4e07728fdc3ca2d2

Superuser/res/drawable-hdpi/ic_action_permission.png
Superuser/res/drawable-mdpi/ic_action_permission.png
Superuser/res/drawable-xhdpi/ic_action_permission.png
Superuser/src/com/koushikdutta/superuser/LogNativeFragment.java
Superuser/src/com/koushikdutta/superuser/MainActivity.java
Superuser/src/com/koushikdutta/superuser/PolicyNativeFragment.java
Superuser/src/com/koushikdutta/superuser/SettingsNativeFragment.java

index 0d5a229..bf4773e 100644 (file)
Binary files a/Superuser/res/drawable-hdpi/ic_action_permission.png and b/Superuser/res/drawable-hdpi/ic_action_permission.png differ
index 3c227f9..36001eb 100644 (file)
Binary files a/Superuser/res/drawable-mdpi/ic_action_permission.png and b/Superuser/res/drawable-mdpi/ic_action_permission.png differ
index 580166d..fd25837 100644 (file)
Binary files a/Superuser/res/drawable-xhdpi/ic_action_permission.png and b/Superuser/res/drawable-xhdpi/ic_action_permission.png differ
index 88d87cb..553e883 100644 (file)
@@ -33,7 +33,7 @@ public class LogNativeFragment extends NativeFragment<LogFragmentInternal> {
     public Context getContext() {
         if (mWrapper != null)
             return mWrapper;
-        mWrapper = new ContextThemeWrapper(super.getContext(), R.style.SuperuserDark);
+        mWrapper = new ContextThemeWrapper(super.getContext(), R.style.SuperuserLight);
         return mWrapper;
     }
 
index c16d80f..37c90a2 100644 (file)
@@ -276,7 +276,6 @@ public class MainActivity extends BetterListActivity {
 
     @Override
     protected void onCreate(Bundle savedInstanceState) {
-        Settings.applyDarkThemeSetting(this, R.style.SuperuserDarkActivity);
         super.onCreate(savedInstanceState);
 
         if (Settings.getBoolean(this, "first_run", true)) {
index 3f73851..6b56651 100644 (file)
@@ -34,7 +34,7 @@ public class PolicyNativeFragment extends NativeFragment<PolicyFragmentInternal>
     public Context getContext() {
         if (mWrapper != null)
             return mWrapper;
-        mWrapper = new ContextThemeWrapper(super.getContext(), R.style.SuperuserDark_LargeIcon);
+        mWrapper = new ContextThemeWrapper(super.getContext(), R.style.Superuser_LargeIcon);
         return mWrapper;
     }
 
index e074bff..4641f9f 100644 (file)
@@ -31,7 +31,7 @@ public class SettingsNativeFragment extends NativeFragment<SettingsFragmentInter
     public Context getContext(Context ctx) {
         if (mWrapper != null)
             return mWrapper;
-        mWrapper = new ContextThemeWrapper(ctx, R.style.SuperuserDark);
+        mWrapper = new ContextThemeWrapper(ctx, R.style.SuperuserLight);
         return mWrapper;
     }