Add Pink theme
This commit is contained in:
parent
f4034d9728
commit
15e16e5945
6 changed files with 101 additions and 1 deletions
|
@ -15,6 +15,7 @@ import dev.lucasnlm.antimine.core.themes.repository.Themes.GardenTheme
|
|||
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
|
||||
|
||||
interface IThemeRepository {
|
||||
fun getCustomTheme(): AppTheme?
|
||||
|
@ -38,7 +39,8 @@ class ThemeRepository(
|
|||
override fun getAllThemes(): List<AppTheme> = listOf(
|
||||
buildSystemTheme(), AmoledTheme, LightTheme,
|
||||
DarkTheme, GardenTheme, MarineTheme,
|
||||
ChessTheme, BlueGreyTheme, OrangeTheme
|
||||
ChessTheme, BlueGreyTheme, OrangeTheme,
|
||||
PinkTheme
|
||||
)
|
||||
|
||||
override fun setTheme(theme: AppTheme) {
|
||||
|
|
|
@ -269,4 +269,38 @@ object Themes {
|
|||
mineLow = R.drawable.mine_low
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
val PinkTheme = AppTheme(
|
||||
id = 9L,
|
||||
theme = R.style.CustomPinkTheme,
|
||||
themeNoActionBar = R.style.CustomPinkTheme_NoActionBar,
|
||||
palette = AreaPalette(
|
||||
border = 0x000000,
|
||||
background = 0xFFFFFF,
|
||||
covered = 0xf48fb1,
|
||||
coveredOdd = 0xf48fb1,
|
||||
uncovered = 0xfce4ec,
|
||||
uncoveredOdd = 0xfce4ec,
|
||||
minesAround1 = 0x616161,
|
||||
minesAround2 = 0xe64a19,
|
||||
minesAround3 = 0x8e24aa,
|
||||
minesAround4 = 0x000000,
|
||||
minesAround5 = 0x1e88e5,
|
||||
minesAround6 = 0x424242,
|
||||
minesAround7 = 0x616161,
|
||||
minesAround8 = 0x000000,
|
||||
highlight = 0x212121,
|
||||
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
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
14
common/src/main/res/drawable/mine_pink.xml
Executable file
14
common/src/main/res/drawable/mine_pink.xml
Executable file
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="512"
|
||||
android:viewportHeight="512">
|
||||
<path
|
||||
android:fillColor="#450220"
|
||||
android:pathData="M331.722,124.091l-33.743,-67.204l-83.901,0l-33.84,65.28l-80.22,0l-37.443,65.714l37.443,67.649l-37.443,66.12l37.42,67.746l80.243,0l39.239,65.717l75.084,0l37.161,-66.643l79.759,-0.019l37.942,-66.801l-40.501,-65.64l40.501,-68.129l-38.02,-63.79z"
|
||||
android:strokeWidth="0.02435089" />
|
||||
<path
|
||||
android:fillAlpha="1"
|
||||
android:fillColor="#450220"
|
||||
android:pathData="M360.853,255.692l-52.193,91.05l-104.8,0.177l-52.713,-90.616l52.081,-90.835l104.896,-0.386z" />
|
||||
</vector>
|
14
common/src/main/res/drawable/mine_pink_exploded.xml
Executable file
14
common/src/main/res/drawable/mine_pink_exploded.xml
Executable file
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="512"
|
||||
android:viewportHeight="512">
|
||||
<path
|
||||
android:fillColor="#450220"
|
||||
android:pathData="M331.722,124.091l-33.743,-67.204l-83.901,0l-33.84,65.28l-80.22,0l-37.443,65.714l37.443,67.649l-37.443,66.12l37.42,67.746l80.243,0l39.239,65.717l75.084,0l37.161,-66.643l79.759,-0.019l37.942,-66.801l-40.501,-65.64l40.501,-68.129l-38.02,-63.79z"
|
||||
android:strokeWidth="0.02435089" />
|
||||
<path
|
||||
android:fillAlpha="1"
|
||||
android:fillColor="#d81b60"
|
||||
android:pathData="M360.853,255.692l-52.193,91.05l-104.8,0.177l-52.713,-90.616l52.081,-90.835l104.896,-0.386z" />
|
||||
</vector>
|
|
@ -181,4 +181,26 @@
|
|||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:windowTranslucentNavigation">true</item>
|
||||
</style>
|
||||
|
||||
<style name="CustomPinkTheme" parent="ThemeOverlay.AppCompat.Light">
|
||||
<item name="colorPrimary">#FFFFFF</item>
|
||||
<item name="colorPrimaryDark">#9E9E9E</item>
|
||||
<item name="colorAccent">#f48fb1</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="CustomPinkTheme.NoActionBar" parent="ThemeOverlay.AppCompat.Light">
|
||||
<item name="colorPrimary">#FFFFFF</item>
|
||||
<item name="colorPrimaryDark">#9E9E9E</item>
|
||||
<item name="colorAccent">#f48fb1</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>
|
||||
|
|
|
@ -119,4 +119,18 @@
|
|||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="CustomPinkTheme" parent="ThemeOverlay.AppCompat.Light">
|
||||
<item name="colorPrimary">#FFFFFF</item>
|
||||
<item name="colorPrimaryDark">#9E9E9E</item>
|
||||
<item name="colorAccent">#f48fb1</item>
|
||||
</style>
|
||||
|
||||
<style name="CustomPinkTheme.NoActionBar" parent="ThemeOverlay.AppCompat.Light">
|
||||
<item name="colorPrimary">#FFFFFF</item>
|
||||
<item name="colorPrimaryDark">#9E9E9E</item>
|
||||
<item name="colorAccent">#f48fb1</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue