_
This commit is contained in:
parent
2a547d3bd9
commit
2fa5e4f90a
@ -27,9 +27,17 @@ fun Context.showSnack(message: String, view: View, length: Int = Snackbar.LENGTH
|
||||
|
||||
fun Context.getThemeId(): Int {
|
||||
if (ThemeOptions.darkTheme) {
|
||||
if (!ThemeOptions.moreColors) {
|
||||
return R.style.Theme_WikiSpotDark
|
||||
} else {
|
||||
return R.style.Theme_WikiSpotDark_
|
||||
}
|
||||
} else {
|
||||
if (!ThemeOptions.moreColors) {
|
||||
return R.style.Theme_WikiSpot
|
||||
} else {
|
||||
return R.style.Theme_WikiSpot_
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ class FileViewsAdapter(private val context: Context, private val fileViews: Arra
|
||||
pdfUrl = it
|
||||
}
|
||||
|
||||
itemView.filenameText.text = fileView.filename
|
||||
itemView.filenameText.text = fileView.filename.replace("_", " ")
|
||||
itemView.fileDescription.text = fileView.fileDescription
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.example.wikispot.fragments
|
||||
|
||||
import android.content.Intent
|
||||
import android.content.res.Resources
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.View
|
||||
@ -10,6 +11,7 @@ import com.example.wikispot.activities.MainActivity
|
||||
import com.example.wikispot.modelClasses.ServerManager
|
||||
import com.example.wikispot.modelClasses.SettingsSaveManager
|
||||
import kotlinx.android.synthetic.main.fragment_settings.*
|
||||
import javax.xml.transform.sax.TemplatesHandler
|
||||
|
||||
|
||||
class settingsFragment : Fragment(R.layout.fragment_settings) {
|
||||
@ -41,12 +43,17 @@ class settingsFragment : Fragment(R.layout.fragment_settings) {
|
||||
settingsSaveManager.saveSettings()
|
||||
restartAppPartially()
|
||||
}
|
||||
|
||||
moreColorsSwitch.setOnCheckedChangeListener { _, isChecked ->
|
||||
ThemeOptions.moreColors = isChecked
|
||||
settingsSaveManager.saveSettings()
|
||||
restartAppPartially()
|
||||
}
|
||||
}
|
||||
|
||||
private fun loadSettings() {
|
||||
if (ThemeOptions.darkTheme) {
|
||||
darkThemeSwitch.isChecked = true
|
||||
}
|
||||
darkThemeSwitch.isChecked = ThemeOptions.darkTheme
|
||||
moreColorsSwitch.isChecked = ThemeOptions.moreColors
|
||||
}
|
||||
|
||||
private fun restartAppPartially() {
|
||||
|
@ -15,6 +15,7 @@ class SettingsSaveManager(val context: Context) {
|
||||
val sharedPreferences = context.getSharedPreferences("settings", Context.MODE_PRIVATE)
|
||||
|
||||
ThemeOptions.darkTheme = sharedPreferences.getBoolean("darkMode", ThemeOptions.darkTheme)
|
||||
ThemeOptions.moreColors = sharedPreferences.getBoolean("moreColors", ThemeOptions.moreColors)
|
||||
|
||||
// checking if we want to use system default theme
|
||||
try {
|
||||
@ -38,6 +39,7 @@ class SettingsSaveManager(val context: Context) {
|
||||
editor.apply{
|
||||
putBoolean("appRunningFirstTime", false)
|
||||
putBoolean("darkMode", ThemeOptions.darkTheme)
|
||||
putBoolean("moreColors", ThemeOptions.moreColors)
|
||||
}.apply()
|
||||
}
|
||||
|
||||
|
@ -65,6 +65,7 @@ object CustomBackstackVariables {
|
||||
|
||||
object ThemeOptions {
|
||||
var darkTheme = false
|
||||
var moreColors = false
|
||||
}
|
||||
|
||||
object StartDirections {
|
||||
|
@ -42,4 +42,28 @@
|
||||
app:layout_constraintTop_toTopOf="@+id/darkThemeSwitchText"
|
||||
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/moreColorsSwitchText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="32dp"
|
||||
android:text="More colors"
|
||||
android:background="@drawable/text_background_gradient"
|
||||
android:padding="5dp"
|
||||
android:textColor="?attr/textOnTextBgColor"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="@+id/darkThemeSwitchText"
|
||||
app:layout_constraintStart_toStartOf="@+id/darkThemeSwitchText"
|
||||
app:layout_constraintTop_toBottomOf="@+id/darkThemeSwitchText" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/moreColorsSwitch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/moreColorsSwitchText"
|
||||
app:layout_constraintStart_toEndOf="@+id/moreColorsSwitchText"
|
||||
app:layout_constraintTop_toTopOf="@+id/moreColorsSwitchText" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -1,169 +1,160 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<resources>
|
||||
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<color name="invisible">#00000000</color>
|
||||
|
||||
<color name="primary">#4CAF50</color>
|
||||
<color name="primaryVariant">#388E3C</color>
|
||||
<color name="onPrimary">@color/white</color>
|
||||
<color name="primary_">#4CAF50</color>
|
||||
<color name="primaryVariant_">#388E3C</color>
|
||||
<color name="onPrimary_">@color/white</color>
|
||||
|
||||
<color name="secondary">#E91E63</color>
|
||||
<color name="secondaryVariant">#F48FB1</color>
|
||||
<color name="onSecondary">@color/black</color>
|
||||
<color name="secondary_">#E5BAFF</color>
|
||||
<color name="secondaryVariant_">#F48FB1</color>
|
||||
<color name="onSecondary_">@color/black</color>
|
||||
|
||||
<color name="textOnTextBgColor">#E6FFFFFF</color>
|
||||
<color name="generalIconsColor">#89000000</color>
|
||||
<color name="generalTextColor">#89000000</color>
|
||||
<color name="secondaryTextColor">#96262626</color>
|
||||
<color name="textOnTextBgColor_">#E6FFFFFF</color>
|
||||
<color name="generalIconsColor_">#89000000</color>
|
||||
<color name="generalTextColor_">#89000000</color>
|
||||
<color name="secondaryTextColor_">#96262626</color>
|
||||
|
||||
<color name="bottomNavBarCheckedItemColor">#C28FF9</color>
|
||||
<color name="bottomNavBarItemColor">#9B49E3</color>
|
||||
<color name="bottomNavBarRippleColor">#33C4BCC9</color>
|
||||
<color name="statusBarColor">#EC000000</color>
|
||||
<color name="bottomNavBarCheckedItemColor_">#C28FF9</color>
|
||||
<color name="bottomNavBarItemColor_">#9B49E3</color>
|
||||
<color name="bottomNavBarRippleColor_">#33C4BCC9</color>
|
||||
<color name="statusBarColor_">#EC000000</color>
|
||||
|
||||
<color name="textBackgroundGradientStartColor" >#80E5BEFF</color>
|
||||
<color name="textBackgroundGradientEndColor" >#80FFB5F0</color>
|
||||
<color name="textBackgroundGradientStartColor_" >#80E5BEFF</color>
|
||||
<color name="textBackgroundGradientEndColor_" >#80FFB5F0</color>
|
||||
|
||||
<color name="bottomNavBarGradientStartColor" >#FFF9FF</color>
|
||||
<color name="bottomNavBarGradientEndColor" >#FFFAFF</color>
|
||||
<color name="bottomNavBarGradientStartColor_" >#FFF9FF</color>
|
||||
<color name="bottomNavBarGradientEndColor_" >#FFFAFF</color>
|
||||
|
||||
<color name="chatFragmentGradientStartColor" >#FCB0EF</color>
|
||||
<color name="chatFragmentGradientCenterColor" >#9ECFFF</color>
|
||||
<color name="chatFragmentGradientEndColor" >#9FE7FF</color>
|
||||
<color name="chatFragmentBgStrokeColor" >#7FFFFFFF</color>
|
||||
<color name="chatFragmentWriteBarBgColor">#FFF</color>
|
||||
<color name="chatFragmentGradientStartColor_" >#FCB0EF</color>
|
||||
<color name="chatFragmentGradientCenterColor_" >#9ECFFF</color>
|
||||
<color name="chatFragmentGradientEndColor_" >#9FE7FF</color>
|
||||
<color name="chatFragmentBgStrokeColor_" >#7FFFFFFF</color>
|
||||
<color name="chatFragmentWriteBarBgColor_">#FFF</color>
|
||||
|
||||
<color name="exploreFragmentGradientStartColor" >#A1DEFC</color>
|
||||
<color name="exploreFragmentGradientCenterColor" >#A5CBFF</color>
|
||||
<color name="exploreFragmentGradientEndColor" >#F9B6F6</color>
|
||||
<color name="exploreFragmentListItemBackgroundColor">#FBF1FF</color>
|
||||
<color name="exploreFragmentGradientStartColor_" >#A1DEFC</color>
|
||||
<color name="exploreFragmentGradientCenterColor_" >#A5CBFF</color>
|
||||
<color name="exploreFragmentGradientEndColor_" >#F9B6F6</color>
|
||||
<color name="exploreFragmentListItemBackgroundColor_">#FBF1FF</color>
|
||||
|
||||
<color name="homeFragmentGradientStartColor" >#83E1FF</color>
|
||||
<color name="homeFragmentGradientCenterColor" >#9EC6FF</color>
|
||||
<color name="homeFragmentGradientEndColor" >#FEBBFF</color>
|
||||
<color name="homeFragmentGradientStartColor_" >#83E1FF</color>
|
||||
<color name="homeFragmentGradientCenterColor_" >#9EC6FF</color>
|
||||
<color name="homeFragmentGradientEndColor_" >#FEBBFF</color>
|
||||
|
||||
<color name="settingsFragmentGradientStartColor" >#92EB97FC</color>
|
||||
<color name="settingsFragmentGradientCenterColor" >#A198F9</color>
|
||||
<color name="settingsFragmentGradientEndColor" >#74C7F7</color>
|
||||
<color name="settingsFragmentGradientStartColor_" >#92EB97FC</color>
|
||||
<color name="settingsFragmentGradientCenterColor_" >#A198F9</color>
|
||||
<color name="settingsFragmentGradientEndColor_" >#74C7F7</color>
|
||||
|
||||
<color name="infoFragmentGradientStartColor" >#FFB6FB</color>
|
||||
<color name="infoFragmentGradientCenterColor" >#A7D2FF</color>
|
||||
<color name="infoFragmentGradientEndColor" >#96E7FF</color>
|
||||
<color name="infoFragmentGradientStartColor_" >#FFB6FB</color>
|
||||
<color name="infoFragmentGradientCenterColor_" >#A7D2FF</color>
|
||||
<color name="infoFragmentGradientEndColor_" >#96E7FF</color>
|
||||
|
||||
<color name="fileViewBackgroundColor">#22FFFFFF</color>
|
||||
<color name="messageBackgroundColor">#22FFFFFF</color>
|
||||
<color name="fileViewBackgroundColor_">#22FFFFFF</color>
|
||||
<color name="messageBackgroundColor_">#22FFFFFF</color>
|
||||
|
||||
<color name="debugFragmentBg">#FF7272</color>
|
||||
<color name="debugFragmentBg_">#FF7272</color>
|
||||
|
||||
<!--
|
||||
<color name="contrastingGradientStartColor">#99B0E4FE</color>
|
||||
<color name="contrastingGradientCenterColor">#66B6E6EE</color>
|
||||
<color name="contrastingGradientEndColor">#99C0D4FB</color> -->
|
||||
|
||||
|
||||
<color name="contrastingGradientStartColor">#99C8FCFF</color>
|
||||
<color name="contrastingGradientCenterColor">#99CCF7FF</color>
|
||||
<color name="contrastingGradientEndColor">#99E7EFFF</color>
|
||||
<color name="contrastingGradientStartColor_">#99C8FCFF</color>
|
||||
<color name="contrastingGradientCenterColor_">#99CCF7FF</color>
|
||||
<color name="contrastingGradientEndColor_">#99E7EFFF</color>
|
||||
|
||||
|
||||
|
||||
|
||||
<color name="primaryDark">#020C3C</color>
|
||||
<color name="primaryVariantDark">#0E144A</color>
|
||||
<color name="onPrimaryDark">@color/black</color>
|
||||
<color name="primaryDark_">#020C3C</color>
|
||||
<color name="primaryVariantDark_">#0E144A</color>
|
||||
<color name="onPrimaryDark_">@color/black</color>
|
||||
|
||||
<color name="secondaryDark">#8D4BDD</color>
|
||||
<color name="secondaryVariantDark">#F48FB1</color>
|
||||
<color name="onSecondaryDark">@color/black</color>
|
||||
<color name="secondaryDark_">#8D4BDD</color>
|
||||
<color name="secondaryVariantDark_">#F48FB1</color>
|
||||
<color name="onSecondaryDark_">@color/black</color>
|
||||
|
||||
<color name="textOnTextBgColorDark">#E7E7E7</color>
|
||||
<color name="generalIconsColorDark">#CCBEBEBE</color>
|
||||
<color name="generalTextColorDark">#CCCCCC</color>
|
||||
<color name="secondaryTextColorDark">#CDE0DFDF</color>
|
||||
<color name="textOnTextBgColorDark_">#E7E7E7</color>
|
||||
<color name="generalIconsColorDark_">#CCBEBEBE</color>
|
||||
<color name="generalTextColorDark_">#CCCCCC</color>
|
||||
<color name="secondaryTextColorDark_">#CDE0DFDF</color>
|
||||
|
||||
<color name="bottomNavBarCheckedItemColorDark">#F76751F8</color>
|
||||
<color name="bottomNavBarItemColorDark">#F75241C2</color>
|
||||
<color name="bottomNavBarRippleColorDark">#26644F69</color>
|
||||
<color name="statusBarColorDark">#EC000000</color>
|
||||
<color name="bottomNavBarCheckedItemColorDark_">#F76751F8</color>
|
||||
<color name="bottomNavBarItemColorDark_">#F75241C2</color>
|
||||
<color name="bottomNavBarRippleColorDark_">#26644F69</color>
|
||||
<color name="statusBarColorDark_">#EC000000</color>
|
||||
|
||||
<color name="textBackgroundGradientStartColorDark" >#80AC78C4</color>
|
||||
<color name="textBackgroundGradientEndColorDark" >#80855C95</color>
|
||||
<color name="textBackgroundGradientStartColorDark_" >#80AC78C4</color>
|
||||
<color name="textBackgroundGradientEndColorDark_" >#80855C95</color>
|
||||
|
||||
<color name="bottomNavBarGradientStartColorDark" >#33284E</color>
|
||||
<color name="bottomNavBarGradientEndColorDark" >#302444</color>
|
||||
<color name="bottomNavBarGradientStartColorDark_" >#33284E</color>
|
||||
<color name="bottomNavBarGradientEndColorDark_" >#302444</color>
|
||||
|
||||
<color name="fileViewBackgroundColorDark">#4D473D6A</color>
|
||||
<color name="messageBackgroundColorDark">#2DC39CE1</color>
|
||||
<color name="fileViewBackgroundColorDark_">#4D473D6A</color>
|
||||
<color name="messageBackgroundColorDark_">#2DC39CE1</color>
|
||||
|
||||
<color name="debugFragmentBgDark">#6F3131</color>
|
||||
<color name="debugFragmentBgDark_">#6F3131</color>
|
||||
|
||||
<color name="chatFragmentGradientStartColorDark" >#4D306D</color>
|
||||
<color name="chatFragmentGradientCenterColorDark" >#222D54</color>
|
||||
<color name="chatFragmentGradientEndColorDark" >#1D2043</color>
|
||||
<color name="chatFragmentBgStrokeColorDark" >#221934</color>
|
||||
<color name="chatFragmentWriteBarBgColorDark">#BF323232</color>
|
||||
<color name="chatFragmentGradientStartColorDark_" >#4D306D</color>
|
||||
<color name="chatFragmentGradientCenterColorDark_" >#222D54</color>
|
||||
<color name="chatFragmentGradientEndColorDark_" >#1D2043</color>
|
||||
<color name="chatFragmentBgStrokeColorDark_" >#221934</color>
|
||||
<color name="chatFragmentWriteBarBgColorDark_">#BF323232</color>
|
||||
|
||||
<color name="exploreFragmentGradientStartColorDark" >#1E293E</color>
|
||||
<color name="exploreFragmentGradientCenterColorDark" >#212C51</color>
|
||||
<color name="exploreFragmentGradientEndColorDark" >#FA452862</color>
|
||||
<color name="exploreFragmentListItemBackgroundColorDark">#323251</color>
|
||||
<color name="exploreFragmentGradientStartColorDark_" >#1E293E</color>
|
||||
<color name="exploreFragmentGradientCenterColorDark_" >#212C51</color>
|
||||
<color name="exploreFragmentGradientEndColorDark_" >#FA452862</color>
|
||||
<color name="exploreFragmentListItemBackgroundColorDark_">#323251</color>
|
||||
.
|
||||
<color name="homeFragmentGradientStartColorDark" >#263863</color>
|
||||
<color name="homeFragmentGradientCenterColorDark" >#1F2360</color>
|
||||
<color name="homeFragmentGradientEndColorDark" >#452159</color>
|
||||
<color name="homeFragmentGradientStartColorDark_" >#263863</color>
|
||||
<color name="homeFragmentGradientCenterColorDark_" >#1F2360</color>
|
||||
<color name="homeFragmentGradientEndColorDark_" >#452159</color>
|
||||
|
||||
<color name="settingsFragmentGradientStartColorDark" >#4B3377</color>
|
||||
<color name="settingsFragmentGradientCenterColorDark" >#352C5B</color>
|
||||
<color name="settingsFragmentGradientEndColorDark" >#2B2E5C</color>
|
||||
<color name="settingsFragmentGradientStartColorDark_" >#4B3377</color>
|
||||
<color name="settingsFragmentGradientCenterColorDark_" >#352C5B</color>
|
||||
<color name="settingsFragmentGradientEndColorDark_" >#2B2E5C</color>
|
||||
|
||||
<color name="infoFragmentGradientStartColorDark" >#542766</color>
|
||||
<color name="infoFragmentGradientCenterColorDark" >#1A294A</color>
|
||||
<color name="infoFragmentGradientEndColorDark" >#2A3B65</color>
|
||||
<color name="infoFragmentGradientStartColorDark_" >#542766</color>
|
||||
<color name="infoFragmentGradientCenterColorDark_" >#1A294A</color>
|
||||
<color name="infoFragmentGradientEndColorDark_" >#2A3B65</color>
|
||||
|
||||
<color name="contrastingGradientStartColorDark">#8842475F</color>
|
||||
<color name="contrastingGradientCenterColorDark">#79454D78</color>
|
||||
<color name="contrastingGradientEndColorDark">#6F363F67</color>
|
||||
<color name="contrastingGradientStartColorDark_">#8842475F</color>
|
||||
<color name="contrastingGradientCenterColorDark_">#79454D78</color>
|
||||
<color name="contrastingGradientEndColorDark_">#6F363F67</color>
|
||||
|
||||
<!--<color name="contrastingGradientStartColorDark">#8833374A</color>
|
||||
<color name="contrastingGradientCenterColorDark">#7932395E</color>
|
||||
<color name="contrastingGradientEndColorDark">#6F252D4E</color> -->
|
||||
|
||||
<!--
|
||||
|
||||
<color name="primary">#A6BFFF</color>
|
||||
<color name="primaryVariant">#6994FF</color>
|
||||
<color name="onPrimary">@color/white</color>
|
||||
|
||||
<color name="secondary">#321EE9</color>
|
||||
<color name="secondary">#8EA6FF</color>
|
||||
<color name="secondaryVariant">#F48FB1</color>
|
||||
<color name="onSecondary">@color/black</color>
|
||||
|
||||
<color name="textOnTextBgColor">#fff</color>
|
||||
<color name="textOnTextBgColor">#FFFFFF</color>
|
||||
<color name="generalIconsColor">#CC000000</color>
|
||||
<color name="generalTextColor">#CC000000</color>
|
||||
<color name="generalTextColor">#A6000000</color>
|
||||
<color name="secondaryTextColor">#96262626</color>
|
||||
|
||||
<color name="bottomNavBarCheckedItemColor">#EC1D5CFD</color>
|
||||
<color name="bottomNavBarCheckedItemColor">#EC2C1DFD</color>
|
||||
<color name="bottomNavBarItemColor">#EC5B89FF</color>
|
||||
<color name="bottomNavBarRippleColor">#7D8DC1</color>
|
||||
<color name="statusBarColor">#83E1FF</color>
|
||||
|
||||
<color name="textBackgroundGradientStartColor" >#BF74DDFF</color>
|
||||
<color name="textBackgroundGradientEndColor" >#BF7DE0FF</color>
|
||||
<color name="textBackgroundGradientStartColor" >#8074A0E1</color>
|
||||
<color name="textBackgroundGradientEndColor" >#BF74A0E1</color>
|
||||
|
||||
<color name="bottomNavBarGradientStartColor" >#EDEDED</color>
|
||||
<color name="bottomNavBarGradientEndColor" >#F6F6F6</color>
|
||||
|
||||
<color name="fileViewBackgroundColor">#22FFFFFF</color>
|
||||
<color name="messageBackgroundColor">#22FFFFFF</color>
|
||||
<color name="messageBackgroundColor">#4DE4E4E4</color>
|
||||
|
||||
<color name="debugFragmentBg">#FF7272</color>
|
||||
|
||||
<color name="chatFragmentGradientStartColor" >#83E1FF</color>
|
||||
<color name="chatFragmentGradientCenterColor" >#4ED4FF</color>
|
||||
<color name="chatFragmentGradientEndColor" >#83E1FF</color>
|
||||
<color name="chatFragmentGradientCenterColor" >#83E1FF</color>
|
||||
<color name="chatFragmentGradientEndColor" >#00D9FF</color>
|
||||
<color name="chatFragmentBgStrokeColor" >#CB4DD4FF</color>
|
||||
<color name="chatFragmentWriteBarBgColor">#43FFFFFF</color>
|
||||
|
||||
@ -180,12 +171,12 @@
|
||||
<color name="settingsFragmentGradientCenterColor" >#4ED4FF</color>
|
||||
<color name="settingsFragmentGradientEndColor" >#83E1FF</color>
|
||||
|
||||
<color name="infoFragmentGradientStartColor" >#83E1FF</color>
|
||||
<color name="infoFragmentGradientCenterColor" >#4ED4FF</color>
|
||||
<color name="infoFragmentGradientEndColor" >#83E1FF</color>
|
||||
<color name="infoFragmentGradientStartColor" >#BF4ED4FF</color>
|
||||
<color name="infoFragmentGradientCenterColor" >#CC34BEFF</color>
|
||||
<color name="infoFragmentGradientEndColor" >#BF00FFFF</color>
|
||||
|
||||
<color name="contrastingGradientStartColor">#63D9FF</color>
|
||||
<color name="contrastingGradientCenterColor">#44D2FF</color>
|
||||
<color name="contrastingGradientStartColor">#004FA0F8</color>
|
||||
<color name="contrastingGradientCenterColor">#BF64AFFF</color>
|
||||
<color name="contrastingGradientEndColor">#59D7FF</color>
|
||||
|
||||
|
||||
@ -216,7 +207,7 @@
|
||||
<color name="bottomNavBarGradientEndColorDark" >#0E0E0E</color>
|
||||
|
||||
<color name="fileViewBackgroundColorDark">#2643386A</color>
|
||||
<color name="messageBackgroundColorDark">#2643386A</color>
|
||||
<color name="messageBackgroundColorDark">#BF1C1C1C</color>
|
||||
|
||||
<color name="debugFragmentBgDark">#5E0000</color>
|
||||
|
||||
@ -247,6 +238,4 @@
|
||||
<color name="contrastingGradientCenterColorDark">#0E275C</color>
|
||||
<color name="contrastingGradientEndColorDark">#132855</color>
|
||||
|
||||
-->
|
||||
|
||||
</resources>
|
@ -158,4 +158,163 @@
|
||||
<style name="ThemeOverlay.App.BottomNavigationViewDark" parent="">
|
||||
<item name="colorOnPrimary">@color/bottomNavBarItemColorDark</item>
|
||||
</style>
|
||||
|
||||
<!-- Colorful light theme -->
|
||||
|
||||
<style name="Theme.WikiSpot_" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/primary_</item>
|
||||
<item name="colorPrimaryVariant">@color/primaryVariant_</item>
|
||||
<item name="colorOnPrimary">@color/onPrimary_</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/secondary_</item>
|
||||
<item name="colorSecondaryVariant">@color/secondaryVariant_</item>
|
||||
<item name="colorOnSecondary">@color/onSecondary_</item>
|
||||
|
||||
<!-- General -->
|
||||
<item name="textOnTextBgColor">@color/textOnTextBgColor_</item>
|
||||
<item name="generalIconsColor">@color/generalIconsColor_</item>
|
||||
<item name="generalTextColor">@color/generalTextColor_</item>
|
||||
<item name="secondaryTextColor">@color/secondaryTextColor_</item>
|
||||
|
||||
<!-- For Backgrounds -->
|
||||
|
||||
<item name="textBackgroundGradientStartColor" >@color/textBackgroundGradientStartColor_</item>
|
||||
<item name="textBackgroundGradientEndColor" >@color/textBackgroundGradientEndColor_</item>
|
||||
|
||||
<item name="bottomNavBarGradientStartColor" >@color/bottomNavBarGradientStartColor_</item>
|
||||
<item name="bottomNavBarGradientEndColor" >@color/bottomNavBarGradientEndColor_</item>
|
||||
|
||||
<item name="chatFragmentGradientStartColor" >@color/chatFragmentGradientStartColor_</item>
|
||||
<item name="chatFragmentGradientCenterColor" >@color/chatFragmentGradientCenterColor_</item>
|
||||
<item name="chatFragmentGradientEndColor" >@color/chatFragmentGradientEndColor_</item>
|
||||
<item name="chatFragmentBgStrokeColor">@color/chatFragmentBgStrokeColor_</item>
|
||||
<item name="chatFragmentWriteBarBgColor">@color/chatFragmentWriteBarBgColor_</item>
|
||||
|
||||
<item name="exploreFragmentGradientStartColor" >@color/exploreFragmentGradientStartColor_</item>
|
||||
<item name="exploreFragmentGradientCenterColor" >@color/exploreFragmentGradientCenterColor_</item>
|
||||
<item name="exploreFragmentGradientEndColor" >@color/exploreFragmentGradientEndColor_</item>
|
||||
<item name="exploreFragmentListItemBackgroundColor">@color/exploreFragmentListItemBackgroundColor_</item>
|
||||
|
||||
<item name="homeFragmentGradientStartColor" >@color/homeFragmentGradientStartColor_</item>
|
||||
<item name="homeFragmentGradientCenterColor" >@color/homeFragmentGradientCenterColor_</item>
|
||||
<item name="homeFragmentGradientEndColor" >@color/homeFragmentGradientEndColor_</item>
|
||||
|
||||
<item name="settingsFragmentGradientStartColor" >@color/settingsFragmentGradientStartColor_</item>
|
||||
<item name="settingsFragmentGradientCenterColor" >@color/settingsFragmentGradientCenterColor_</item>
|
||||
<item name="settingsFragmentGradientEndColor" >@color/settingsFragmentGradientEndColor_</item>
|
||||
|
||||
<item name="infoFragmentGradientStartColor" >@color/infoFragmentGradientStartColor_</item>
|
||||
<item name="infoFragmentGradientCenterColor" >@color/infoFragmentGradientCenterColor_</item>
|
||||
<item name="infoFragmentGradientEndColor" >@color/infoFragmentGradientEndColor_</item>
|
||||
|
||||
<item name="fileViewBackgroundColor">@color/fileViewBackgroundColor_</item>
|
||||
<item name="messageBackground">@color/messageBackgroundColor_</item>
|
||||
|
||||
<item name="debugFragmentBackground" >@color/debugFragmentBg_</item>
|
||||
|
||||
<item name="contrastingGradientStartColor">@color/contrastingGradientStartColor_</item>
|
||||
<item name="contrastingGradientCenterColor">@color/contrastingGradientCenterColor_</item>
|
||||
<item name="contrastingGradientEndColor">@color/contrastingGradientEndColor_</item>
|
||||
|
||||
<!-- BottomNavCheckedItemColor -->
|
||||
<item name="bottomNavBarCheckedItemColor">@color/bottomNavBarCheckedItemColor_</item>
|
||||
<item name="bottomNavBarRippleColor">@color/bottomNavBarRippleColor_</item>
|
||||
|
||||
<item name="bottomNavigationStyle">@style/Widget.App.BottomNavigationView_</item>
|
||||
|
||||
<!-- StatusBarColor -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">@color/statusBarColor_</item>
|
||||
|
||||
<item name="android:windowLightStatusBar" tools:targetApi="l">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.App.BottomNavigationView_" parent="Widget.MaterialComponents.BottomNavigationView.Colored">
|
||||
<item name="materialThemeOverlay">@style/ThemeOverlay.App.BottomNavigationView_</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay.App.BottomNavigationView_" parent="">
|
||||
<item name="colorOnPrimary">@color/bottomNavBarItemColor_</item>
|
||||
</style>
|
||||
|
||||
<!-- Colorful dark theme -->
|
||||
|
||||
<style name="Theme.WikiSpotDark_" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/primaryDark_</item>
|
||||
<item name="colorPrimaryVariant">@color/primaryVariantDark_</item>
|
||||
<item name="colorOnPrimary">@color/onPrimaryDark_</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/secondaryDark_</item>
|
||||
<item name="colorSecondaryVariant">@color/secondaryVariantDark_</item>
|
||||
<item name="colorOnSecondary">@color/onSecondaryDark_</item>
|
||||
|
||||
<!-- General -->
|
||||
<item name="textOnTextBgColor">@color/textOnTextBgColorDark_</item>
|
||||
<item name="generalIconsColor">@color/generalIconsColorDark_</item>
|
||||
<item name="generalTextColor">@color/generalTextColorDark_</item>
|
||||
<item name="secondaryTextColor">@color/secondaryTextColorDark_</item>
|
||||
|
||||
<!-- For Backgrounds -->
|
||||
|
||||
<item name="textBackgroundGradientStartColor" >@color/textBackgroundGradientStartColorDark_</item>
|
||||
<item name="textBackgroundGradientEndColor" >@color/textBackgroundGradientEndColorDark_</item>
|
||||
|
||||
<item name="bottomNavBarGradientStartColor" >@color/bottomNavBarGradientStartColorDark_</item>
|
||||
<item name="bottomNavBarGradientEndColor" >@color/bottomNavBarGradientEndColorDark_</item>
|
||||
|
||||
<item name="chatFragmentGradientStartColor" >@color/chatFragmentGradientStartColorDark_</item>
|
||||
<item name="chatFragmentGradientCenterColor" >@color/chatFragmentGradientCenterColorDark_</item>
|
||||
<item name="chatFragmentGradientEndColor" >@color/chatFragmentGradientEndColorDark_</item>
|
||||
<item name="chatFragmentBgStrokeColor">@color/chatFragmentBgStrokeColorDark_</item>
|
||||
<item name="chatFragmentWriteBarBgColor">@color/chatFragmentWriteBarBgColorDark_</item>
|
||||
|
||||
<item name="exploreFragmentGradientStartColor" >@color/exploreFragmentGradientStartColorDark_</item>
|
||||
<item name="exploreFragmentGradientCenterColor" >@color/exploreFragmentGradientCenterColorDark_</item>
|
||||
<item name="exploreFragmentGradientEndColor" >@color/exploreFragmentGradientEndColorDark_</item>
|
||||
<item name="exploreFragmentListItemBackgroundColor">@color/exploreFragmentListItemBackgroundColorDark_</item>
|
||||
|
||||
<item name="homeFragmentGradientStartColor" >@color/homeFragmentGradientStartColorDark_</item>
|
||||
<item name="homeFragmentGradientCenterColor" >@color/homeFragmentGradientCenterColorDark_</item>
|
||||
<item name="homeFragmentGradientEndColor" >@color/homeFragmentGradientEndColorDark_</item>
|
||||
|
||||
<item name="settingsFragmentGradientStartColor" >@color/settingsFragmentGradientStartColorDark_</item>
|
||||
<item name="settingsFragmentGradientCenterColor" >@color/settingsFragmentGradientCenterColorDark_</item>
|
||||
<item name="settingsFragmentGradientEndColor" >@color/settingsFragmentGradientEndColorDark_</item>
|
||||
|
||||
<item name="infoFragmentGradientStartColor" >@color/infoFragmentGradientStartColorDark_</item>
|
||||
<item name="infoFragmentGradientCenterColor" >@color/infoFragmentGradientCenterColorDark_</item>
|
||||
<item name="infoFragmentGradientEndColor" >@color/infoFragmentGradientEndColorDark_</item>
|
||||
|
||||
<item name="fileViewBackgroundColor">@color/fileViewBackgroundColorDark_</item>
|
||||
<item name="messageBackground">@color/messageBackgroundColorDark_</item>
|
||||
|
||||
<item name="debugFragmentBackground" >@color/debugFragmentBgDark</item>
|
||||
|
||||
<item name="contrastingGradientStartColor">@color/contrastingGradientStartColorDark_</item>
|
||||
<item name="contrastingGradientCenterColor">@color/contrastingGradientCenterColorDark_</item>
|
||||
<item name="contrastingGradientEndColor">@color/contrastingGradientEndColorDark_</item>
|
||||
|
||||
<!-- BottomNavCheckedItemColor -->
|
||||
<item name="bottomNavBarCheckedItemColor">@color/bottomNavBarCheckedItemColorDark_</item>
|
||||
<item name="bottomNavBarRippleColor">@color/bottomNavBarRippleColorDark_</item>
|
||||
|
||||
<item name="bottomNavigationStyle">@style/Widget.App.BottomNavigationViewDark_</item>
|
||||
|
||||
<!-- StatusBarColor -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">@color/statusBarColorDark_</item>
|
||||
|
||||
<item name="android:navigationBarColor">@color/black</item>
|
||||
|
||||
<item name="android:windowLightStatusBar" tools:targetApi="l">false</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Widget.App.BottomNavigationViewDark_" parent="Widget.MaterialComponents.BottomNavigationView.Colored">
|
||||
<item name="materialThemeOverlay">@style/ThemeOverlay.App.BottomNavigationViewDark_</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay.App.BottomNavigationViewDark_" parent="">
|
||||
<item name="colorOnPrimary">@color/bottomNavBarItemColorDark_</item>
|
||||
</style>
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user