fixing documentation on themes enum vars

This commit is contained in:
Jays2Kings 2021-07-03 03:30:39 -04:00
parent 883ae04d08
commit f7c08e9957

View File

@ -221,14 +221,14 @@ enum class Themes(@StyleRes val styleRes: Int, val nightMode: Int, @StringRes va
else -> Color.parseColor("#C2FFFFFF") else -> Color.parseColor("#C2FFFFFF")
} }
/** Complies with tabBarIconColor */ /** Complies with tabBarIconColor or colorAccent */
@ColorInt @ColorInt
val lightActiveTab: Int = when (styleRes) { val lightActiveTab: Int = when (styleRes) {
R.style.Theme_Tachiyomi_AllBlue -> lightAppBarText R.style.Theme_Tachiyomi_AllBlue -> lightAppBarText
else -> lightAccent else -> lightAccent
} }
/** Complies with tabBarIconColor (probably night) */ /** Complies with tabBarIconColor or colorAccent (probably night) */
@ColorInt @ColorInt
val darkActiveTab: Int = when (styleRes) { val darkActiveTab: Int = when (styleRes) {
R.style.Theme_Tachiyomi_AllBlue -> darkAppBarText R.style.Theme_Tachiyomi_AllBlue -> darkAppBarText
@ -240,10 +240,15 @@ enum class Themes(@StyleRes val styleRes: Int, val nightMode: Int, @StringRes va
@ColorInt val secondaryText: Int, @ColorInt val secondaryText: Int,
@ColorInt val colorBackground: Int, @ColorInt val colorBackground: Int,
@ColorInt val colorAccent: Int, @ColorInt val colorAccent: Int,
/** Complies with colorSecondary */
@ColorInt val appBar: Int, @ColorInt val appBar: Int,
/** Complies with actionBarTintColor */
@ColorInt val appBarText: Int, @ColorInt val appBarText: Int,
/** Complies with colorPrimaryVariant */
@ColorInt val bottomBar: Int, @ColorInt val bottomBar: Int,
/** Complies with tabBarIconInactive */
@ColorInt val inactiveTab: Int, @ColorInt val inactiveTab: Int,
/** Complies with tabBarIconColor */
@ColorInt val activeTab: Int, @ColorInt val activeTab: Int,
) )
} }