mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 10:25:51 +03:00
Add SC theme
This commit is contained in:
parent
842f8cc3ee
commit
d7b51b1e3b
49 changed files with 909 additions and 8 deletions
|
@ -16,14 +16,18 @@
|
|||
|
||||
package im.vector.riotx.core.utils
|
||||
|
||||
import android.content.Context
|
||||
import androidx.annotation.ColorRes
|
||||
import im.vector.riotx.R
|
||||
import im.vector.riotx.core.resources.ColorProvider
|
||||
import im.vector.riotx.features.themes.ThemeUtils
|
||||
import org.billcarsonfr.jsonviewer.JSonViewerStyleProvider
|
||||
import kotlin.math.abs
|
||||
|
||||
@ColorRes
|
||||
fun getColorFromUserId(userId: String?): Int {
|
||||
fun getColorFromUserId(userId: String?, context: Context? = null): Int {
|
||||
if (ThemeUtils.isScTheme(context)) return R.color.username_sc_1;
|
||||
|
||||
var hash = 0
|
||||
|
||||
userId?.toList()?.map { chr -> hash = (hash shl 5) - hash + chr.toInt() }
|
||||
|
|
|
@ -83,8 +83,8 @@ class AvatarRenderer @Inject constructor(private val activeSessionHolder: Active
|
|||
@AnyThread
|
||||
fun getPlaceholderDrawable(context: Context, matrixItem: MatrixItem): Drawable {
|
||||
val avatarColor = when (matrixItem) {
|
||||
is MatrixItem.UserItem -> ContextCompat.getColor(context, getColorFromUserId(matrixItem.id))
|
||||
else -> ContextCompat.getColor(context, getColorFromRoomId(matrixItem.id))
|
||||
is MatrixItem.UserItem -> ContextCompat.getColor(context, getColorFromUserId(matrixItem.id, context))
|
||||
else -> ContextCompat.getColor(context, getColorFromRoomId(matrixItem.id, context))
|
||||
}
|
||||
return TextDrawable.builder()
|
||||
.beginConfig()
|
||||
|
|
|
@ -16,11 +16,14 @@
|
|||
|
||||
package im.vector.riotx.features.home
|
||||
|
||||
import android.content.Context
|
||||
import androidx.annotation.ColorRes
|
||||
import im.vector.riotx.R
|
||||
import im.vector.riotx.features.themes.ThemeUtils
|
||||
|
||||
@ColorRes
|
||||
fun getColorFromRoomId(roomId: String?): Int {
|
||||
fun getColorFromRoomId(roomId: String?, context: Context? = null): Int {
|
||||
if (ThemeUtils.isScTheme(context)) return R.color.avatar_fill_sc_1;
|
||||
return when ((roomId?.toList()?.sumBy { it.toInt() } ?: 0) % 3) {
|
||||
1 -> R.color.riotx_avatar_fill_2
|
||||
2 -> R.color.riotx_avatar_fill_3
|
||||
|
|
|
@ -464,7 +464,7 @@ class RoomDetailFragment @Inject constructor(
|
|||
// switch to expanded bar
|
||||
composerLayout.composerRelatedMessageTitle.apply {
|
||||
text = event.getDisambiguatedDisplayName()
|
||||
setTextColor(ContextCompat.getColor(requireContext(), getColorFromUserId(event.root.senderId)))
|
||||
setTextColor(ContextCompat.getColor(requireContext(), getColorFromUserId(event.root.senderId, context)))
|
||||
}
|
||||
|
||||
val messageContent: MessageContent? = event.getLastMessageContent()
|
||||
|
|
|
@ -25,15 +25,18 @@ import im.vector.riotx.R
|
|||
*/
|
||||
sealed class ActivityOtherThemes(@StyleRes val dark: Int,
|
||||
@StyleRes val black: Int,
|
||||
@StyleRes val status: Int) {
|
||||
@StyleRes val status: Int,
|
||||
@StyleRes val sc: Int) {
|
||||
|
||||
object Default : ActivityOtherThemes(
|
||||
R.style.AppTheme_Dark,
|
||||
R.style.AppTheme_Black,
|
||||
R.style.AppTheme_Status
|
||||
R.style.AppTheme_Status,
|
||||
R.style.AppTheme_SC
|
||||
)
|
||||
|
||||
object AttachmentsPreview : ActivityOtherThemes(
|
||||
R.style.AppTheme_AttachmentsPreview,
|
||||
R.style.AppTheme_AttachmentsPreview,
|
||||
R.style.AppTheme_AttachmentsPreview,
|
||||
R.style.AppTheme_AttachmentsPreview
|
||||
|
|
|
@ -41,9 +41,12 @@ object ThemeUtils {
|
|||
private const val THEME_LIGHT_VALUE = "light"
|
||||
private const val THEME_BLACK_VALUE = "black"
|
||||
private const val THEME_STATUS_VALUE = "status"
|
||||
private const val THEME_SC_VALUE = "sc"
|
||||
|
||||
private val mColorByAttr = HashMap<Int, Int>()
|
||||
|
||||
private var mIsScTheme = false;
|
||||
|
||||
/**
|
||||
* Provides the selected application theme
|
||||
*
|
||||
|
@ -55,6 +58,19 @@ object ThemeUtils {
|
|||
.getString(APPLICATION_THEME_KEY, THEME_LIGHT_VALUE)!!
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this is SC theme.
|
||||
*
|
||||
* @param context the context
|
||||
* @return true if SC theme is active, false otherwise
|
||||
*/
|
||||
fun isScTheme(context: Context?): Boolean {
|
||||
if (context != null) {
|
||||
mIsScTheme = THEME_SC_VALUE.equals(getApplicationTheme(context));
|
||||
}
|
||||
return mIsScTheme;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the application theme
|
||||
*
|
||||
|
@ -65,6 +81,7 @@ object ThemeUtils {
|
|||
THEME_DARK_VALUE -> context.setTheme(R.style.AppTheme_Dark)
|
||||
THEME_BLACK_VALUE -> context.setTheme(R.style.AppTheme_Black)
|
||||
THEME_STATUS_VALUE -> context.setTheme(R.style.AppTheme_Status)
|
||||
THEME_SC_VALUE -> context.setTheme(R.style.AppTheme_SC)
|
||||
else -> context.setTheme(R.style.AppTheme_Light)
|
||||
}
|
||||
|
||||
|
@ -82,6 +99,7 @@ object ThemeUtils {
|
|||
THEME_DARK_VALUE -> activity.setTheme(otherThemes.dark)
|
||||
THEME_BLACK_VALUE -> activity.setTheme(otherThemes.black)
|
||||
THEME_STATUS_VALUE -> activity.setTheme(otherThemes.status)
|
||||
THEME_SC_VALUE -> activity.setTheme(otherThemes.sc)
|
||||
}
|
||||
|
||||
mColorByAttr.clear()
|
||||
|
@ -189,6 +207,18 @@ object ThemeUtils {
|
|||
}
|
||||
}
|
||||
}
|
||||
THEME_SC_VALUE -> {
|
||||
return when (resourceId) {
|
||||
R.drawable.bg_search_edit_text_light -> R.drawable.bg_search_edit_text_sc
|
||||
R.drawable.bg_unread_notification_light -> R.drawable.bg_unread_notification_sc
|
||||
R.drawable.vector_label_background_light -> R.drawable.vector_label_background_sc
|
||||
R.drawable.divider_horizontal_light -> R.drawable.divider_horizontal_sc
|
||||
else -> {
|
||||
Timber.w("Warning, missing case for wanted drawable in sc theme")
|
||||
resourceId
|
||||
}
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
Timber.w("Warning, missing theme: $theme")
|
||||
resourceId
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/accent_sc_alpha25" android:state_enabled="false" />
|
||||
<item android:color="@color/accent_sc" android:state_enabled="true" />
|
||||
</selector>
|
22
vector/src/main/res/drawable-anydpi-v24/ic_camera.xml
Normal file
22
vector/src/main/res/drawable-anydpi-v24/ic_camera.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M23,19C23,20.1046 22.1046,21 21,21H3C1.8954,21 1,20.1046 1,19V8C1,6.8954 1.8954,6 3,6H7L9,3H15L17,6H21C22.1046,6 23,6.8954 23,8V19Z"
|
||||
android:strokeWidth="2"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M12,17C14.2091,17 16,15.2091 16,13C16,10.7909 14.2091,9 12,9C9.7909,9 8,10.7909 8,13C8,15.2091 9.7909,17 12,17Z"
|
||||
android:strokeWidth="2"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" />
|
||||
</vector>
|
13
vector/src/main/res/drawable-anydpi-v24/ic_check_on.xml
Normal file
13
vector/src/main/res/drawable-anydpi-v24/ic_check_on.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M20,7L9,18L4,13"
|
||||
android:strokeWidth="2"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" />
|
||||
</vector>
|
20
vector/src/main/res/drawable-anydpi-v24/ic_filter.xml
Normal file
20
vector/src/main/res/drawable-anydpi-v24/ic_filter.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M4,6.5h16"
|
||||
android:strokeWidth="1.8"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M6,12.5h12M9,18.5h6"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,24 @@
|
|||
<vector android:autoMirrored="true" android:height="24dp"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#00000000" android:fillType="evenOdd"
|
||||
android:pathData="M18,8C19.6569,8 21,6.6568 21,5C21,3.3431 19.6569,2 18,2C16.3431,2 15,3.3431 15,5C15,6.6568 16.3431,8 18,8Z"
|
||||
android:strokeColor="?attr/colorAccent" android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" android:strokeWidth="2"/>
|
||||
<path android:fillColor="#00000000" android:fillType="evenOdd"
|
||||
android:pathData="M6,15C7.6568,15 9,13.6569 9,12C9,10.3431 7.6568,9 6,9C4.3432,9 3,10.3431 3,12C3,13.6569 4.3432,15 6,15Z"
|
||||
android:strokeColor="?attr/colorAccent" android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" android:strokeWidth="2"/>
|
||||
<path android:fillColor="#00000000" android:fillType="evenOdd"
|
||||
android:pathData="M18,22C19.6569,22 21,20.6569 21,19C21,17.3431 19.6569,16 18,16C16.3431,16 15,17.3431 15,19C15,20.6569 16.3431,22 18,22Z"
|
||||
android:strokeColor="?attr/colorAccent" android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" android:strokeWidth="2"/>
|
||||
<path android:fillColor="#00000000"
|
||||
android:pathData="M8.59,13.51L15.42,17.49"
|
||||
android:strokeColor="?attr/colorAccent" android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" android:strokeWidth="2"/>
|
||||
<path android:fillColor="#00000000"
|
||||
android:pathData="M15.41,6.51L8.59,10.49"
|
||||
android:strokeColor="?attr/colorAccent" android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" android:strokeWidth="2"/>
|
||||
</vector>
|
22
vector/src/main/res/drawable-anydpi-v24/ic_plus_circle.xml
Normal file
22
vector/src/main/res/drawable-anydpi-v24/ic_plus_circle.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="22"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M11,11m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0"
|
||||
android:strokeWidth="1.4"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M11,7v8M7,11h8"
|
||||
android:strokeWidth="1.4"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" />
|
||||
</vector>
|
22
vector/src/main/res/drawable-anydpi-v24/ic_search.xml
Normal file
22
vector/src/main/res/drawable-anydpi-v24/ic_search.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M9,9m-8,0a8,8 0,1 1,16 0a8,8 0,1 1,-16 0"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M19,19l-4.35,-4.35"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
14
vector/src/main/res/drawable-anydpi-v24/ic_send.xml
Normal file
14
vector/src/main/res/drawable-anydpi-v24/ic_send.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="22"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M20.142,11H4.586M20.142,11L1.05,20.192 4.586,11 1.05,1.808z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="22"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M21,15.92v3a2,2 0,0 1,-2.18 2,19.79 19.79,0 0,1 -8.63,-3.07 19.5,19.5 0,0 1,-6 -6,19.79 19.79,0 0,1 -3.07,-8.67A2,2 0,0 1,3.11 1h3a2,2 0,0 1,2 1.72c0.127,0.96 0.361,1.903 0.7,2.81a2,2 0,0 1,-0.45 2.11L7.09,8.91a16,16 0,0 0,6 6l1.27,-1.27a2,2 0,0 1,2.11 -0.45c0.907,0.339 1.85,0.573 2.81,0.7A2,2 0,0 1,21 15.92z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,22 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="16dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="16"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M8,8m-7,0a7,7 0,1 1,14 0a7,7 0,1 1,-14 0"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M4.21,13.89L3,23l5,-3 5,3 -1.21,-9.12"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,22 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M12,12m-3,0a3,3 0,1 1,6 0a3,3 0,1 1,-6 0"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M19.4,15a1.65,1.65 0,0 0,0.33 1.82l0.06,0.06a2,2 0,1 1,-2.83 2.83l-0.06,-0.06a1.65,1.65 0,0 0,-1.82 -0.33,1.65 1.65,0 0,0 -1,1.51L14.08,21a2,2 0,1 1,-4 0v-0.09A1.65,1.65 0,0 0,9 19.4a1.65,1.65 0,0 0,-1.82 0.33l-0.06,0.06a2,2 0,1 1,-2.83 -2.83l0.06,-0.06a1.65,1.65 0,0 0,0.33 -1.82,1.65 1.65,0 0,0 -1.51,-1L3,14.08a2,2 0,1 1,0 -4h0.09A1.65,1.65 0,0 0,4.6 9a1.65,1.65 0,0 0,-0.33 -1.82l-0.06,-0.06a2,2 0,1 1,2.83 -2.83l0.06,0.06a1.65,1.65 0,0 0,1.82 0.33L9,4.68a1.65,1.65 0,0 0,1 -1.51L10,3a2,2 0,1 1,4 0v0.09a1.65,1.65 0,0 0,1 1.51,1.65 1.65,0 0,0 1.82,-0.33l0.06,-0.06a2,2 0,1 1,2.83 2.83l-0.06,0.06a1.65,1.65 0,0 0,-0.33 1.82L19.32,9c0.26,0.604 0.852,0.997 1.51,1L21,10a2,2 0,1 1,0 4h-0.09a1.65,1.65 0,0 0,-1.51 1z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,30 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="22"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M11,11m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M8.09,8C8.5754,6.62 9.9854,5.7914 11.4272,6.0387C12.869,6.286 13.9222,7.5372 13.92,9C13.92,11 10.92,12 10.92,12"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M11.0002,15.9913L11,15.9913"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,30 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="17dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="17"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M16,19v-2a4,4 0,0 0,-4 -4H5a4,4 0,0 0,-4 4v2"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M8.5,5m-4,0a4,4 0,1 1,8 0a4,4 0,1 1,-8 0"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M5.672,2.172l5.656,5.656"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="18"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M1,14s1,-1 4,-1 5,2 8,2 4,-1 4,-1V2s-1,1 -4,1 -5,-2 -8,-2 -4,1 -4,1v12zM1,21v-7"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M21,6v13H3V6M1,1h22v5H1zM10,10h4"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M16,7A6,6 0,1 0,4 7c0,7 -3,9 -3,9h18s-3,-2 -3,-9M11.73,20a2,2 0,0 1,-3.46 0"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M4,19v-7M4,8V1M12,19v-9M12,6V1M20,19v-5M20,10V1M1,12h6M9,6h6M17,14h6"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,22 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M3,10L17,10A2,2 0,0 1,19 12L19,19A2,2 0,0 1,17 21L3,21A2,2 0,0 1,1 19L1,12A2,2 0,0 1,3 10z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M5,10L5,6a5,5 0,1 1,10 0v4"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
14
vector/src/main/res/drawable-anydpi-v24/ic_shield_custom.xml
Normal file
14
vector/src/main/res/drawable-anydpi-v24/ic_shield_custom.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:strokeWidth="1"
|
||||
android:pathData="M12,21C12,21 21,17.2 21,11.5V4.85L12,2L3,4.85V11.5C3,17.2 12,21 12,21Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:fillColor="?attr/colorAccent"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
|
@ -0,0 +1,18 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:strokeWidth="1"
|
||||
android:pathData="M12,21C12,21 21,17.2 21,11.5V4.85L12,2L3,4.85V11.5C3,17.2 12,21 12,21Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:fillColor="?attr/colorAccent"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M17.2268,7.8065C17.6053,8.1718 17.6053,8.7639 17.2268,9.1291L11.4013,14.7502C11.0228,15.1154 10.4091,15.1154 10.0306,14.7502L10.0145,14.7342C10.0084,14.7286 10.0023,14.7229 9.9964,14.7171L7.3235,12.1381C6.926,11.7546 6.926,11.1328 7.3235,10.7493C7.7209,10.3658 8.3653,10.3658 8.7627,10.7493L10.7838,12.6995L15.8561,7.8065C16.2346,7.4413 16.8483,7.4413 17.2268,7.8065Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
14
vector/src/main/res/drawable-anydpi-v24/ic_x_18dp.xml
Normal file
14
vector/src/main/res/drawable-anydpi-v24/ic_x_18dp.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="18"
|
||||
android:viewportHeight="18">
|
||||
<path
|
||||
android:pathData="M16,2L2,16M2,2l14,14"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2.333"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
14
vector/src/main/res/drawable-anydpi-v24/ic_x_green.xml
Normal file
14
vector/src/main/res/drawable-anydpi-v24/ic_x_green.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="14dp"
|
||||
android:height="14dp"
|
||||
android:viewportWidth="14"
|
||||
android:viewportHeight="14">
|
||||
<path
|
||||
android:pathData="M13,1L1,13M1,1l12,12"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="?attr/colorAccent"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
5
vector/src/main/res/drawable/bg_search_edit_text_sc.xml
Normal file
5
vector/src/main/res/drawable/bg_search_edit_text_sc.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/background_black_sc" />
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<corners android:radius="40dp" />
|
||||
|
||||
<solid android:color="@color/background_floating_sc" />
|
||||
</shape>
|
11
vector/src/main/res/drawable/direct_chat_circle_sc.xml
Normal file
11
vector/src/main/res/drawable/direct_chat_circle_sc.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<!-- required on android < 4.2 devices -->
|
||||
<solid android:color="@android:color/transparent" />
|
||||
|
||||
<stroke
|
||||
android:width="4dp"
|
||||
android:color="@color/direct_chat_ring_color_sc" />
|
||||
</shape>
|
5
vector/src/main/res/drawable/divider_horizontal_sc.xml
Normal file
5
vector/src/main/res/drawable/divider_horizontal_sc.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<size android:height="1dp" />
|
||||
<solid android:color="@color/background_black_sc" />
|
||||
</shape>
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_checked="true">
|
||||
|
||||
<layer-list>
|
||||
|
||||
<!-- Draw the BG. -->
|
||||
<item android:left="6dp" android:right="2dp">
|
||||
<shape>
|
||||
<corners android:bottomRightRadius="4dp" android:topRightRadius="4dp" />
|
||||
<solid android:color="@color/background_sc" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item android:gravity="start" android:left="2dp">
|
||||
<shape>
|
||||
<size android:width="4dp" />
|
||||
<corners android:bottomLeftRadius="40dp" android:topLeftRadius="40dp" />
|
||||
<solid android:color="@color/accent_sc" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
||||
|
||||
</item>
|
||||
|
||||
<item android:state_checked="false">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
|
||||
</selector>
|
11
vector/src/main/res/drawable/line_divider_sc.xml
Normal file
11
vector/src/main/res/drawable/line_divider_sc.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<size
|
||||
android:width="1dp"
|
||||
android:height="1dp" />
|
||||
|
||||
<solid android:color="@color/list_divider_color_sc" />
|
||||
|
||||
</shape>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="10dp" />
|
||||
<solid android:color="@color/background_floating_sc" />
|
||||
</shape>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="10dp" />
|
||||
<solid android:color="@color/background_floating_sc" />
|
||||
</shape>
|
6
vector/src/main/res/drawable/pill_receipt_sc.xml
Normal file
6
vector/src/main/res/drawable/pill_receipt_sc.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="10dp" />
|
||||
<solid android:color="@color/background_black_sc" />
|
||||
</shape>
|
13
vector/src/main/res/drawable/vector_label_background_sc.xml
Normal file
13
vector/src/main/res/drawable/vector_label_background_sc.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<corners android:radius="3dp" />
|
||||
|
||||
<solid android:color="@color/background_black_sc" />
|
||||
|
||||
<stroke
|
||||
android:width="0.5dp"
|
||||
android:color="@color/black" />
|
||||
|
||||
</shape>
|
21
vector/src/main/res/drawable/vector_tabbar_background_sc.xml
Normal file
21
vector/src/main/res/drawable/vector_tabbar_background_sc.xml
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- Non focused states -->
|
||||
<item android:drawable="@drawable/vector_tabbar_unselected_background_sc" android:state_focused="false" android:state_pressed="false" android:state_selected="false" />
|
||||
<item android:drawable="@drawable/vector_tabbar_selected_background_sc" android:state_focused="false" android:state_pressed="false" android:state_selected="true" />
|
||||
|
||||
<!-- Focused states -->
|
||||
<item android:drawable="@drawable/vector_tabbar_unselected_background_sc" android:state_focused="true" android:state_pressed="false" android:state_selected="false" />
|
||||
<item android:drawable="@drawable/vector_tabbar_selected_background_sc" android:state_focused="true" android:state_pressed="false" android:state_selected="true" />
|
||||
|
||||
<!-- Pressed -->
|
||||
<!-- Non focused states -->
|
||||
<item android:drawable="@drawable/vector_tabbar_unselected_background_sc" android:state_focused="false" android:state_pressed="true" android:state_selected="false" />
|
||||
<item android:drawable="@drawable/vector_tabbar_selected_background_sc" android:state_focused="false" android:state_pressed="true" android:state_selected="true" />
|
||||
|
||||
<!-- Focused states -->
|
||||
<item android:drawable="@drawable/vector_tabbar_unselected_background_sc" android:state_focused="true" android:state_pressed="true" android:state_selected="false" />
|
||||
<item android:drawable="@drawable/vector_tabbar_selected_background_sc" android:state_focused="true" android:state_pressed="true" android:state_selected="true" />
|
||||
|
||||
</selector>
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/list_divider_color_sc" />
|
||||
<padding android:bottom="1dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/white" />
|
||||
<padding android:bottom="2dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/background_dark_sc" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/background_dark_sc" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
|
@ -23,7 +23,7 @@
|
|||
android:layout_height="@dimen/layout_touch_size"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_settings_x"
|
||||
android:tint="@color/riotx_accent"
|
||||
android:tint="?colorAccent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
|
18
vector/src/main/res/values-v21/theme_sc.xml
Normal file
18
vector/src/main/res/values-v21/theme_sc.xml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme.SC.v21" parent="AppTheme.Base.SC">
|
||||
<item name="android:statusBarColor">@color/background_black_sc</item>
|
||||
<item name="android:navigationBarColor">@color/background_black_sc</item>
|
||||
|
||||
<!-- enable window content transitions -->
|
||||
<item name="android:windowContentTransitions">true</item>
|
||||
|
||||
<!-- specify shared element enter and exit transitions -->
|
||||
<item name="android:windowSharedElementEnterTransition">@transition/image_preview_transition</item>
|
||||
<item name="android:windowSharedElementExitTransition">@transition/image_preview_transition</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.SC" parent="AppTheme.SC.v21" />
|
||||
|
||||
</resources>
|
10
vector/src/main/res/values-v23/theme_sc.xml
Normal file
10
vector/src/main/res/values-v23/theme_sc.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme.SC.v23" parent="AppTheme.SC.v21">
|
||||
<item name="android:windowLightStatusBar">false</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.SC" parent="AppTheme.SC.v23"/>
|
||||
|
||||
</resources>
|
10
vector/src/main/res/values-v27/theme_sc.xml
Normal file
10
vector/src/main/res/values-v27/theme_sc.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme.SC.v27" parent="AppTheme.SC.v23">
|
||||
<item name="android:windowLightNavigationBar">false</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.SC" parent="AppTheme.SC.v27" />
|
||||
|
||||
</resources>
|
|
@ -96,6 +96,7 @@
|
|||
<item>@string/dark_theme</item>
|
||||
<item>@string/black_them</item>
|
||||
<item>@string/status_theme</item>
|
||||
<item>@string/sc_theme</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="theme_values">
|
||||
|
@ -103,6 +104,7 @@
|
|||
<item>dark</item>
|
||||
<item>black</item>
|
||||
<item>status</item>
|
||||
<item>sc</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Info area -->
|
||||
|
|
22
vector/src/main/res/values/colors_sc.xml
Normal file
22
vector/src/main/res/values/colors_sc.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<color name="accent_sc">#8BC34A</color>
|
||||
<color name="accent_sc_alpha25">#3F8BC34A</color>
|
||||
<color name="direct_chat_ring_color_sc">#689F38</color>
|
||||
|
||||
<color name="avatar_fill_sc_1">@color/accent_sc</color>
|
||||
<color name="username_sc_1">@color/accent_sc</color>
|
||||
|
||||
<color name="text_color_primary_sc">#ffffff</color>
|
||||
<color name="text_color_secondary_sc">#b3ffffff</color>
|
||||
<color name="text_color_tertiary_sc">#80ffffff</color>
|
||||
<color name="text_color_disabled_sc">#80ffffff</color>
|
||||
|
||||
<color name="background_sc">#ff000000</color>
|
||||
<color name="background_dark_sc">#ff212121</color>
|
||||
<color name="background_black_sc">#ff000000</color>
|
||||
<color name="background_floating_sc">#42ffffff</color>
|
||||
|
||||
<color name="list_divider_color_sc">#80ffffff</color>
|
||||
</resources>
|
|
@ -13,6 +13,7 @@
|
|||
<string name="dark_theme">Dark Theme</string>
|
||||
<string name="black_them">Black Theme</string>
|
||||
<string name="status_theme">Status.im Theme</string>
|
||||
<string name="sc_theme">SC Theme</string>
|
||||
|
||||
<!-- permanent notification subtitle -->
|
||||
<string name="notification_sync_init">Initializing service</string>
|
||||
|
|
241
vector/src/main/res/values/theme_sc.xml
Normal file
241
vector/src/main/res/values/theme_sc.xml
Normal file
|
@ -0,0 +1,241 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- SC THEME COLORS -->
|
||||
<style name="AppTheme.Base.SC" parent="AppTheme.Base.Black">
|
||||
<!-- Riotx attribute for palette -->
|
||||
<item name="riotx_background">@color/background_sc</item>
|
||||
<item name="riotx_base">@color/background_sc</item>
|
||||
<item name="riotx_base_text_icon_primary">@color/text_color_primary_sc</item>
|
||||
<item name="riotx_base_text_icon_secondary">@color/text_color_secondary_sc</item>
|
||||
<item name="riotx_search_background_mobile">@color/background_dark_sc</item>
|
||||
<item name="riotx_header_panel_background">@color/background_black_sc</item>
|
||||
<item name="riotx_header_panel_border_mobile">@color/background_dark_sc</item>
|
||||
<item name="riotx_header_panel_text_primary">@color/text_color_primary_sc</item>
|
||||
<item name="riotx_header_panel_text_secondary">@color/text_color_secondary_sc</item>
|
||||
<item name="riotx_text_primary">@color/text_color_primary_sc</item>
|
||||
<item name="riotx_text_secondary">@color/text_color_secondary_sc</item>
|
||||
<item name="riotx_text_primary_body_contrast">@color/text_color_primary_sc</item>
|
||||
<item name="riotx_android_secondary">@color/text_color_secondary_sc</item>
|
||||
<item name="riotx_search_placeholder">@color/text_color_disabled_sc</item>
|
||||
<item name="riotx_room_highlight">@color/background_floating_sc</item>
|
||||
<item name="riotx_unread_room_indent">@color/background_dark_sc</item>
|
||||
<item name="riotx_android_status_bar">@color/background_black_sc</item>
|
||||
<item name="riotx_line_break_mobile">@color/text_color_disabled_sc</item>
|
||||
<item name="riotx_unread_room_badge">@color/background_floating_sc</item>
|
||||
<item name="riotx_fab_secondary_bg">@color/background_floating_sc</item>
|
||||
<item name="riotx_fab_secondary_color">@color/text_color_secondary_sc</item>
|
||||
<item name="riotx_fab_label_bg">@color/background_floating_sc</item>
|
||||
<item name="riotx_fab_label_color">#ff808080</item><!-- TODO: this is used on light background for motion_fab_menu_merge / style:VectorLabel -->
|
||||
<item name="riotx_touch_guard_bg">@color/background_black_sc</item>
|
||||
<item name="riotx_attachment_selector_background">@color/background_sc</item>
|
||||
<item name="riotx_attachment_selector_border">@color/background_dark_sc</item>
|
||||
|
||||
<item name="riotx_keys_backup_banner_accent_color">@color/background_floating_sc</item>
|
||||
|
||||
<!-- Drawables -->
|
||||
<item name="riotx_highlighted_message_background">@drawable/highlighted_message_background_sc</item>
|
||||
|
||||
<!-- Material color: Note: this block should be the same in all theme because it references only common colors and ?riotx attributes -->
|
||||
<item name="colorPrimary">@color/accent_sc</item>
|
||||
<item name="colorPrimaryVariant">@color/background_dark_sc</item>
|
||||
<item name="colorOnPrimary">@color/black</item>
|
||||
<!-- We do not use color secondary, default will be colorPrimary values: It does not work so declare again the value -->
|
||||
<item name="colorSecondary">@color/accent_sc</item>
|
||||
<item name="colorSecondaryVariant">@color/background_black_sc</item>
|
||||
<item name="colorOnSecondary">@color/white</item>
|
||||
<item name="colorError">@color/riotx_notice</item>
|
||||
<item name="colorOnError">#FFFFFF</item>
|
||||
<!--item name="colorSurface">#FFFFFF</item>
|
||||
<item name="colorOnSurface">#212121</item-->
|
||||
<item name="android:colorBackground">?riotx_background</item>
|
||||
<item name="colorOnBackground">?riotx_text_primary</item>
|
||||
|
||||
<!-- Keep color accent for legacy widget-->
|
||||
<item name="colorAccent">@color/accent_sc</item>
|
||||
|
||||
<item name="materialButtonStyle">@style/VectorButtonStyle.SC</item>
|
||||
<item name="toolbarStyle">@style/VectorToolbarStyle</item>
|
||||
<item name="alertDialogTheme">@style/VectorAlertDialogStyleDark.SC</item>
|
||||
|
||||
<item name="android:textColorLink">@color/riotx_links</item>
|
||||
|
||||
<!-- Menu text color -->
|
||||
<item name="android:actionMenuTextColor">?colorAccent</item>
|
||||
|
||||
<!-- default background color -->
|
||||
<item name="vctr_bottom_nav_background_color">@color/background_dark_sc</item>
|
||||
<item name="vctr_bottom_nav_background_border_color">@color/background_black_sc</item>
|
||||
|
||||
<!-- waiting view background -->
|
||||
<item name="vctr_waiting_background_color">#55555555</item>
|
||||
|
||||
|
||||
<!-- application bar text color -->
|
||||
<item name="vctr_toolbar_primary_text_color">@color/text_color_primary_sc</item>
|
||||
<item name="vctr_toolbar_secondary_text_color">@color/text_color_secondary_sc</item>
|
||||
<item name="vctr_toolbar_link_text_color">@color/link_color_dark</item>
|
||||
|
||||
<!-- application bar text hint color -->
|
||||
<item name="vctr_primary_hint_text_color">@color/text_color_secondary_sc</item>
|
||||
|
||||
<item name="vctr_tab_home">@color/background_dark_sc</item>
|
||||
<item name="vctr_tab_home_secondary">@color/background_black_sc</item>
|
||||
|
||||
<!-- default text colors -->
|
||||
<item name="vctr_default_text_hint_color">@color/text_color_disabled_sc</item>
|
||||
|
||||
<!-- room message colors -->
|
||||
<!--Unread Room Indent-->
|
||||
<item name="vctr_unread_room_indent_color">@color/background_dark_sc</item>
|
||||
<item name="vctr_notice_secondary">@color/text_color_secondary_sc</item>
|
||||
<item name="vctr_unsent_message_text_color">@color/vector_fuchsia_color</item>
|
||||
<item name="vctr_message_text_color">@android:color/white</item>
|
||||
<item name="vctr_notice_text_color">@color/text_color_primary_sc</item>
|
||||
<item name="vctr_encrypting_message_text_color">@color/accent_sc</item>
|
||||
<item name="vctr_sending_message_text_color">@color/text_color_secondary_sc</item>
|
||||
<item name="vctr_highlighted_message_text_color">@color/vector_fuchsia_color</item>
|
||||
<item name="vctr_highlighted_searched_message_text_color">@color/accent_sc</item>
|
||||
<item name="vctr_search_mode_room_name_text_color">@color/secondary_color</item>
|
||||
<item name="vctr_unread_marker_line_color">@color/accent_sc</item>
|
||||
<item name="vctr_markdown_block_background_color">@android:color/black</item>
|
||||
<item name="vctr_spoiler_background_color">#FFFFFFFF</item>
|
||||
<item name="vctr_room_activity_divider_color">#565656</item>
|
||||
|
||||
<!-- tab bar colors -->
|
||||
<item name="vctr_tab_bar_inverted_background_color">?colorPrimary</item>
|
||||
<item name="vctr_tab_bar_selected_background_color">@color/background_dark_sc</item>
|
||||
<item name="vctr_tab_bar_unselected_background_color">@color/background_dark_sc</item>
|
||||
|
||||
<!-- list colors -->
|
||||
<!--Header/Panel Background-->
|
||||
<item name="vctr_list_header_background_color">@color/background_dark_sc</item>
|
||||
<!--Header/Panel Text Primary-->
|
||||
<item name="vctr_list_header_primary_text_color">@color/text_color_primary_sc</item>
|
||||
<!--Header/Panel Text Secondary-->
|
||||
<item name="vctr_list_header_secondary_text_color">@color/text_color_secondary_sc</item>
|
||||
|
||||
<item name="vctr_list_bottom_sheet_divider_color">#80ffffff</item>
|
||||
<item name="vctr_list_divider_color">@color/background_dark_sc</item>
|
||||
|
||||
<item name="vctr_redacted_message_color">@color/text_color_disabled_sc</item>
|
||||
|
||||
<!-- gradient on the home bottom -->
|
||||
<item name="vctr_activity_bottom_gradient_color">#80000000</item>
|
||||
|
||||
<!-- outgoing call background color -->
|
||||
<item name="vctr_pending_outgoing_view_background_color">#33FFFFFF</item>
|
||||
|
||||
<!-- multi selection member background color -->
|
||||
<item name="vctr_multi_selection_background_color">#424242</item>
|
||||
|
||||
<!-- sliding menu icon colors -->
|
||||
<item name="vctr_home_navigation_icon_color">@color/text_color_primary_sc</item>
|
||||
|
||||
<!-- room notification text color (typing, unsent...) -->
|
||||
<!--Notice (secondary)-->
|
||||
<item name="vctr_room_notification_text_color">@color/text_color_secondary_sc</item>
|
||||
|
||||
<!-- icon colors -->
|
||||
<item name="vctr_settings_icon_tint_color">@android:color/white</item>
|
||||
<item name="vctr_icon_tint_on_light_action_bar_color">@color/accent_sc</item>
|
||||
<item name="vctr_icon_tint_on_dark_action_bar_color">@android:color/white</item>
|
||||
|
||||
<!-- theses colours are requested a background cannot be set by an ?att on android < 5 -->
|
||||
<!-- dedicated drawables are created for each theme -->
|
||||
<item name="vctr_line_divider">@drawable/line_divider_sc</item>
|
||||
<item name="vctr_shadow_bottom">@drawable/shadow_bottom_dark</item>
|
||||
<item name="vctr_shadow_top">@drawable/shadow_top_dark</item>
|
||||
<item name="vctr_tabbar_selected_background">@drawable/vector_tabbar_selected_background_sc</item>
|
||||
<item name="vctr_tabbar_unselected_background">@drawable/vector_tabbar_unselected_background_sc</item>
|
||||
<item name="vctr_tabbar_background">@drawable/vector_tabbar_background_sc</item>
|
||||
|
||||
<item name="vctr_pill_background_user_id">@drawable/pill_background_user_id_sc</item>
|
||||
<item name="vctr_pill_background_room_alias">@drawable/pill_background_room_alias_sc</item>
|
||||
|
||||
<item name="vctr_pill_text_color_user_id">@android:color/white</item>
|
||||
<item name="vctr_pill_text_color_room_alias">@color/text_color_primary_sc</item>
|
||||
|
||||
<item name="vctr_pill_receipt">@drawable/pill_receipt_sc</item>
|
||||
|
||||
<item name="vctr_direct_chat_circle">@drawable/direct_chat_circle_sc</item>
|
||||
|
||||
<item name="vctr_widget_banner_background">@color/background_floating_sc</item>
|
||||
|
||||
<!-- activities background -->
|
||||
<item name="android:windowBackground">@color/background_sc</item>
|
||||
|
||||
<!-- TODO from here, also add chat colors -->
|
||||
|
||||
|
||||
<!-- custom action bar -->
|
||||
<item name="android:actionBarStyle">@style/Vector.Styled.ActionBar.SC</item>
|
||||
<item name="actionBarStyle">@style/Vector.Styled.ActionBar.SC</item>
|
||||
|
||||
<!-- actionbar icons color -->
|
||||
<item name="actionBarTheme">@style/Vector.ActionBarTheme</item>
|
||||
|
||||
<!-- remove the shadow under the actionbar -->
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
|
||||
<item name="android:popupMenuStyle">@style/Vector.PopupMenu</item>
|
||||
|
||||
<!-- no divider -->
|
||||
<item name="android:actionBarDivider">@null</item>
|
||||
|
||||
<!-- tabbar background -->
|
||||
<item name="android:actionBarTabStyle">@style/Vector.TabView.SC</item>
|
||||
<item name="actionBarTabStyle">@style/Vector.TabView.SC</item>
|
||||
|
||||
<!-- tabbar text color -->
|
||||
<item name="android:actionBarTabTextStyle">@style/Vector.TabText</item>
|
||||
<item name="actionBarTabTextStyle">@style/Vector.TabText</item>
|
||||
|
||||
<!-- Preference -->
|
||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
|
||||
|
||||
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC</item>
|
||||
|
||||
<!-- SnackBar -->
|
||||
<!-- Style to use for SnackBars in this theme. -->
|
||||
<item name="snackbarStyle">@style/VectorSnackBarStyle</item>
|
||||
<!-- Style to use for action button within a SnackBar in this theme. -->
|
||||
<item name="snackbarButtonStyle">@style/VectorSnackBarButton</item>
|
||||
<!-- Style to use for message text within a SnackBar in this theme. -->
|
||||
<item name="snackbarTextViewStyle">@style/VectorSnackBarText</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.SC" parent="AppTheme.Base.SC" />
|
||||
|
||||
<style name="VectorButtonStyle.SC">
|
||||
<item name="backgroundTint">@color/button_background_tint_selector_sc</item>
|
||||
</style>
|
||||
|
||||
<style name="VectorAlertDialogStyleDark.SC">
|
||||
<item name="buttonBarButtonStyle">@style/VectorAlertDialogButtonStyle.SC</item>
|
||||
</style>
|
||||
|
||||
<style name="VectorAlertDialogButtonStyle.SC">
|
||||
<item name="android:textColor">@color/accent_sc</item>
|
||||
</style>
|
||||
|
||||
<style name="Vector.TabView.SC" parent="Vector.TabView.Dark">
|
||||
<item name="android:background">@drawable/vector_tabbar_background_sc</item>
|
||||
<item name="background">@drawable/vector_tabbar_background_sc</item>
|
||||
</style>
|
||||
|
||||
<!-- custom action bar -->
|
||||
<style name="Vector.Styled.ActionBar.SC">
|
||||
<item name="android:background">@color/background_dark_sc</item>
|
||||
<item name="background">@color/background_dark_sc</item>
|
||||
</style>
|
||||
|
||||
<!-- BottomSheet theming -->
|
||||
<style name="Vector.BottomSheet.SC" parent="Vector.BottomSheet.Dark">
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_sc</item>
|
||||
<item name="android:textColorSecondary">@color/text_color_secondary_sc</item>
|
||||
<!-- Default color for text View -->
|
||||
<item name="android:textColorTertiary">@color/text_color_tertiary_sc</item>
|
||||
<item name="android:textColorLink">@color/riotx_links</item>
|
||||
</style>
|
||||
</resources>
|
Loading…
Reference in a new issue