Renamed the themes internally
This commit is contained in:
parent
0dc5c1e17d
commit
1383d9eb82
8 changed files with 24 additions and 24 deletions
|
|
@ -53,7 +53,7 @@ public abstract class AbsThemeActivity extends AppCompatActivity implements KabV
|
|||
}
|
||||
|
||||
private void setupTheme() {
|
||||
boolean dark = theme != R.style.Theme_MaterialMusic_Light;
|
||||
boolean dark = theme != R.style.Theme_Phonograph_Light;
|
||||
|
||||
colorPrimary = PreferenceUtil.getInstance(this).getThemeColorPrimary(this);
|
||||
colorPrimaryDarker = ColorUtil.shiftColorDown(colorPrimary);
|
||||
|
|
|
|||
|
|
@ -101,16 +101,16 @@ public final class PreferenceUtil {
|
|||
int value = Integer.parseInt(mPreferences.getString(GENERAL_THEME, "0"));
|
||||
switch (value) {
|
||||
case 0:
|
||||
return R.style.Theme_MaterialMusic_Light;
|
||||
return R.style.Theme_Phonograph_Light;
|
||||
case 1:
|
||||
return R.style.Theme_MaterialMusic;
|
||||
return R.style.Theme_Phonograph;
|
||||
case 2:
|
||||
return R.style.Theme_MaterialMusic_Black;
|
||||
return R.style.Theme_Phonograph_Black;
|
||||
}
|
||||
} catch (NumberFormatException ignored) {
|
||||
}
|
||||
|
||||
return R.style.Theme_MaterialMusic_Light;
|
||||
return R.style.Theme_Phonograph_Light;
|
||||
}
|
||||
|
||||
public int getThemeColorPrimary(Context context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue