Add black theme (#726)
* Add black theme On amoled screens a completely black theme helps save battery, besides looking awesome! * Fix first set of merge request issues except the dialog. * Black theme inherits from dark and only the different values are declared * Make nav bar translucent (for some reason content does not go behind it in main activity. Need to investigate) * Remove nav bar line * Fix toolbar color * Fix dialog issue with black theme. Revert translucent navigation. * Translations updated, as well as possible from online sources. * Make login screen respect black theme
This commit is contained in:
parent
6fcb3cb495
commit
562beacfc1
29 changed files with 94 additions and 10 deletions
|
|
@ -25,6 +25,7 @@ import android.os.Bundle;
|
|||
import android.preference.PreferenceManager;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.Menu;
|
||||
|
||||
|
|
@ -59,6 +60,10 @@ public abstract class BaseActivity extends AppCompatActivity implements Injectab
|
|||
* runtime, just individual activities. So, each activity has to set its theme before any
|
||||
* views are created. */
|
||||
String theme = preferences.getString("appTheme", ThemeUtils.APP_THEME_DEFAULT);
|
||||
Log.d("activeTheme", theme);
|
||||
if (theme.equals("black")) {
|
||||
setTheme(R.style.TuskyBlackTheme);
|
||||
}
|
||||
ThemeUtils.setAppNightMode(theme, this);
|
||||
|
||||
long accountId = getIntent().getLongExtra("account", -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue