summaryrefslogtreecommitdiff
path: root/Source/Android/app/src
diff options
context:
space:
mode:
authorMike <7153163+hackbar@users.noreply.github.com>2018-08-10 21:13:31 -0700
committerMike <7153163+hackbar@users.noreply.github.com>2018-08-23 18:32:29 -0700
commitdd8d7bba9868f92ea5a08c9e857ae05b9ea43652 (patch)
tree59631afdc20e779161dafb3f4168353b1e3e095d /Source/Android/app/src
parent248afb9fa7bfd7da362a69892b3f0eac854299d4 (diff)
Android: Get rid of the per-platform styles, as we only using the GC one.
I think the intention might have been to switch styles based on what platform was selected, but that never happened. Instead, everything just used the GC styles. All the platform-specific styles did was add an accent color (which tints the checkbox and text area elements). This adds a specific color for that instead of abusing a platform color. There should be no visual changes for this commit.
Diffstat (limited to 'Source/Android/app/src')
-rw-r--r--Source/Android/app/src/main/AndroidManifest.xml9
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java4
-rw-r--r--Source/Android/app/src/main/res/values/colors.xml1
-rw-r--r--Source/Android/app/src/main/res/values/styles.xml63
4 files changed, 13 insertions, 64 deletions
diff --git a/Source/Android/app/src/main/AndroidManifest.xml b/Source/Android/app/src/main/AndroidManifest.xml
index 569c0465fb..b9cf5f0526 100644
--- a/Source/Android/app/src/main/AndroidManifest.xml
+++ b/Source/Android/app/src/main/AndroidManifest.xml
@@ -31,7 +31,7 @@
<activity
android:name=".ui.main.MainActivity"
- android:theme="@style/DolphinGamecube">
+ android:theme="@style/DolphinBase">
<!-- This intentfilter marks this Activity as the one that gets launched from Home screen. -->
<intent-filter>
@@ -43,7 +43,7 @@
<activity
android:name=".ui.main.TvMainActivity"
- android:theme="@style/DolphinTvGamecube">
+ android:theme="@style/DolphinTvBase">
<!-- This intentfilter marks this Activity as the one that gets launched from Home screen. -->
<intent-filter>
@@ -55,12 +55,12 @@
<activity
android:name=".features.settings.ui.SettingsActivity"
- android:theme="@style/DolphinSettingsGamecube"
+ android:theme="@style/DolphinSettingsBase"
android:label="@string/preferences_settings"/>
<activity
android:name=".activities.EmulationActivity"
- android:theme="@style/DolphinEmulationGamecube"/>
+ android:theme="@style/DolphinEmulationBase"/>
<activity
android:name=".activities.CustomFilePickerActivity"
@@ -81,7 +81,6 @@
</intent-filter>
</activity>
-
<service android:name=".services.DirectoryInitializationService"/>
<service android:name=".services.GameFileCacheService"/>
<service
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java
index 1f9abc61a3..01fc27aa4b 100644
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java
@@ -210,7 +210,7 @@ public final class EmulationActivity extends AppCompatActivity
int themeId;
if (mDeviceHasTouchScreen)
{
- themeId = R.style.DolphinEmulationGamecube;
+ themeId = R.style.DolphinEmulationBase;
// Get a handle to the Window containing the UI.
mDecorView = getWindow().getDecorView();
@@ -229,7 +229,7 @@ public final class EmulationActivity extends AppCompatActivity
}
else
{
- themeId = R.style.DolphinEmulationTvGamecube;
+ themeId = R.style.DolphinEmulationTvBase;
}
setTheme(themeId);
diff --git a/Source/Android/app/src/main/res/values/colors.xml b/Source/Android/app/src/main/res/values/colors.xml
index ade7fb092d..33df0fc245 100644
--- a/Source/Android/app/src/main/res/values/colors.xml
+++ b/Source/Android/app/src/main/res/values/colors.xml
@@ -3,6 +3,7 @@
<color name="dolphin_blue">#2196f3</color>
<color name="dolphin_blue_dark">#1976d2</color>
+ <color name="dolphin_purple">#651fff</color>
<color name="dolphin_accent_wii">#9e9e9e</color>
<color name="dolphin_accent_wiiware">#2979ff</color>
diff --git a/Source/Android/app/src/main/res/values/styles.xml b/Source/Android/app/src/main/res/values/styles.xml
index a211077fee..a4cb078cd2 100644
--- a/Source/Android/app/src/main/res/values/styles.xml
+++ b/Source/Android/app/src/main/res/values/styles.xml
@@ -8,6 +8,7 @@
<item name="colorPrimary">@color/dolphin_blue</item>
<!-- Darker variant for the status bar and contextual app bars -->
<item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
+ <item name="colorAccent">@color/dolphin_purple</item>
<!-- Enable window content transitions -->
<item name="android:windowContentTransitions">true</item>
@@ -21,34 +22,7 @@
<style name="DolphinSettingsBase" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/dolphin_blue</item>
<item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
- </style>
-
- <!-- Inherit from the Base Dolphin Theme -->
- <style name="DolphinWii" parent="DolphinBase">
- <!-- Theme UI controls like checkboxes and text fields -->
- <item name="colorAccent">@color/dolphin_accent_wii</item>
- </style>
-
- <style name="DolphinGamecube" parent="DolphinBase">
- <item name="colorAccent">@color/dolphin_accent_gamecube</item>
- </style>
-
- <style name="DolphinWiiware" parent="DolphinBase">
- <item name="colorAccent">@color/dolphin_accent_wiiware</item>
- </style>
-
- <!-- Inherit from the Base Dolphin Settings Theme -->
- <style name="DolphinSettingsWii" parent="DolphinSettingsBase">
- <item name="colorAccent">@color/dolphin_accent_wii</item>
- </style>
-
- <style name="DolphinSettingsGamecube" parent="DolphinSettingsBase">
- <item name="colorAccent">@color/dolphin_accent_gamecube</item>
- </style>
-
- <style name="DolphinSettingsWiiware" parent="DolphinSettingsBase">
- <!-- Theme UI controls like checkboxes and text fields -->
- <item name="colorAccent">@color/dolphin_accent_wiiware</item>
+ <item name="colorAccent">@color/dolphin_purple</item>
</style>
<!-- Themes for Dialogs -->
@@ -58,6 +32,7 @@
<style name="DolphinEmulationBase" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/dolphin_blue</item>
<item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
+ <item name="colorAccent">@color/dolphin_purple</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowBackground">@android:color/black</item>
@@ -68,22 +43,10 @@
<item name="android:windowAllowReturnTransitionOverlap">true</item>
</style>
- <!-- Inherit from the Base Dolphin Emulation Theme -->
- <style name="DolphinEmulationWii" parent="DolphinEmulationBase">
- <item name="colorAccent">@color/dolphin_accent_wii</item>
- </style>
-
- <style name="DolphinEmulationGamecube" parent="DolphinEmulationBase">
- <item name="colorAccent">@color/dolphin_accent_gamecube</item>
- </style>
-
- <style name="DolphinEmulationWiiware" parent="DolphinEmulationBase">
- <item name="colorAccent">@color/dolphin_accent_wiiware</item>
- </style>
-
<style name="DolphinEmulationTvBase" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/dolphin_blue</item>
<item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
+ <item name="colorAccent">@color/dolphin_purple</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowBackground">@android:color/black</item>
@@ -94,19 +57,6 @@
<item name="android:windowAllowReturnTransitionOverlap">true</item>
</style>
- <!-- Inherit from the Base Dolphin Emulation Theme -->
- <style name="DolphinEmulationTvWii" parent="DolphinEmulationTvBase">
- <item name="colorAccent">@color/dolphin_accent_wii</item>
- </style>
-
- <style name="DolphinEmulationTvGamecube" parent="DolphinEmulationTvBase">
- <item name="colorAccent">@color/dolphin_accent_gamecube</item>
- </style>
-
- <style name="DolphinEmulationTvWiiware" parent="DolphinEmulationTvBase">
- <item name="colorAccent">@color/dolphin_accent_wiiware</item>
- </style>
-
<!-- Hax to make Tablayout render icons -->
<style name="MyCustomTextAppearance" parent="TextAppearance.Design.Tab">
<item name="textAllCaps">false</item>
@@ -116,15 +66,14 @@
<style name="DolphinTvBase" parent="Theme.Leanback.Browse">
<item name="colorPrimary">@color/dolphin_blue</item>
<item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
+ <item name="colorAccent">@color/dolphin_purple</item>
<!-- Enable window content transitions -->
<item name="android:windowContentTransitions">true</item>
<item name="android:windowAllowEnterTransitionOverlap">true</item>
<item name="android:windowAllowReturnTransitionOverlap">true</item>
- </style>
- <style name="DolphinTvGamecube" parent="DolphinTvBase">
- <item name="colorAccent">@color/dolphin_accent_gamecube</item>
+ <!-- Use CustomTitleView as the leanback title view. -->
<item name="browseTitleViewLayout">@layout/titleview</item>
</style>