Add Purple theme

This commit is contained in:
Lucas Lima 2020-08-17 22:43:39 -03:00
parent 15e16e5945
commit 234d7c7dad
No known key found for this signature in database
GPG key ID: C5EEF4C30BFBF8D7
4 changed files with 71 additions and 2 deletions

View file

@ -16,6 +16,7 @@ import dev.lucasnlm.antimine.core.themes.repository.Themes.LightTheme
import dev.lucasnlm.antimine.core.themes.repository.Themes.MarineTheme
import dev.lucasnlm.antimine.core.themes.repository.Themes.OrangeTheme
import dev.lucasnlm.antimine.core.themes.repository.Themes.PinkTheme
import dev.lucasnlm.antimine.core.themes.repository.Themes.PurpleTheme
interface IThemeRepository {
fun getCustomTheme(): AppTheme?
@ -40,7 +41,7 @@ class ThemeRepository(
buildSystemTheme(), AmoledTheme, LightTheme,
DarkTheme, GardenTheme, MarineTheme,
ChessTheme, BlueGreyTheme, OrangeTheme,
PinkTheme
PinkTheme, PurpleTheme
)
override fun setTheme(theme: AppTheme) {

View file

@ -270,7 +270,6 @@ object Themes {
)
)
val PinkTheme = AppTheme(
id = 9L,
theme = R.style.CustomPinkTheme,
@ -303,4 +302,37 @@ object Themes {
mineLow = R.drawable.mine_low
)
)
val PurpleTheme = AppTheme(
id = 10L,
theme = R.style.CustomPurpleTheme,
themeNoActionBar = R.style.CustomPurpleTheme_NoActionBar,
palette = AreaPalette(
border = 0x000000,
background = 0xFFFFFF,
covered = 0x6a1b9a,
coveredOdd = 0x6a1b9a,
uncovered = 0xd1c4e9,
uncoveredOdd = 0xd1c4e9,
minesAround1 = 0x616161,
minesAround2 = 0xe64a19,
minesAround3 = 0x8e24aa,
minesAround4 = 0x000000,
minesAround5 = 0x1e88e5,
minesAround6 = 0x424242,
minesAround7 = 0x616161,
minesAround8 = 0x000000,
highlight = 0xd1c4e9,
focus = 0xD32F2F
),
assets = Assets(
wrongFlag = R.drawable.flag,
flag = R.drawable.flag,
questionMark = R.drawable.question,
toolbarMine = R.drawable.mine_low,
mine = R.drawable.mine_pink,
mineExploded = R.drawable.mine_pink_exploded,
mineLow = R.drawable.mine_low
)
)
}

View file

@ -203,4 +203,26 @@
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
<style name="CustomPurpleTheme" parent="ThemeOverlay.AppCompat.Light">
<item name="colorPrimary">#FFFFFF</item>
<item name="colorPrimaryDark">#9E9E9E</item>
<item name="colorAccent">#9c27b0</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
<style name="CustomPurpleTheme.NoActionBar" parent="ThemeOverlay.AppCompat.Light">
<item name="colorPrimary">#FFFFFF</item>
<item name="colorPrimaryDark">#9E9E9E</item>
<item name="colorAccent">#9c27b0</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
</resources>

View file

@ -133,4 +133,18 @@
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="CustomPurpleTheme" parent="ThemeOverlay.AppCompat.Light">
<item name="colorPrimary">#FFFFFF</item>
<item name="colorPrimaryDark">#9E9E9E</item>
<item name="colorAccent">#9c27b0</item>
</style>
<style name="CustomPurpleTheme.NoActionBar" parent="ThemeOverlay.AppCompat.Light">
<item name="colorPrimary">#FFFFFF</item>
<item name="colorPrimaryDark">#9E9E9E</item>
<item name="colorAccent">#9c27b0</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
</resources>