mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 18:05:59 +03:00
Use accent color setting for attachments previewer
Closes https://github.com/SchildiChat/SchildiChat-android/issues/120 Change-Id: Iedcc1808b8408fd82ce8a6ce92c1f0c560b66cc2
This commit is contained in:
parent
616a121ccf
commit
ed891a4445
2 changed files with 29 additions and 0 deletions
|
@ -150,6 +150,10 @@ function generate_accent_dark() {
|
|||
"Do not change this comment for automatic dark colored theme insertion" \
|
||||
"\"$name_lc\" -> R.style.AppTheme_SC_Dark_Colored_$name" \
|
||||
" "
|
||||
insert_above_java_comment "vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt" \
|
||||
"Do not change this comment for automatic attachment theme insertion" \
|
||||
"\"$name_lc\" -> R.style.AppTheme_AttachmentsPreview_SC_$name" \
|
||||
" "
|
||||
}
|
||||
|
||||
function generate_accent() {
|
||||
|
|
|
@ -506,6 +506,31 @@ object ThemeUtils {
|
|||
else -> resId
|
||||
}
|
||||
}
|
||||
R.style.AppTheme_AttachmentsPreview_SC -> {
|
||||
when (themeAccent) {
|
||||
"green" -> resId
|
||||
"amber" -> R.style.AppTheme_AttachmentsPreview_SC_Amber
|
||||
"bluelight" -> R.style.AppTheme_AttachmentsPreview_SC_BlueLight
|
||||
"blue" -> R.style.AppTheme_AttachmentsPreview_SC_Blue
|
||||
"carnation" -> R.style.AppTheme_AttachmentsPreview_SC_Carnation
|
||||
"cyan" -> R.style.AppTheme_AttachmentsPreview_SC_Cyan
|
||||
"denim" -> R.style.AppTheme_AttachmentsPreview_SC_Denim
|
||||
"gold" -> R.style.AppTheme_AttachmentsPreview_SC_Gold
|
||||
"greendark" -> R.style.AppTheme_AttachmentsPreview_SC_GreenDark
|
||||
"indigo" -> R.style.AppTheme_AttachmentsPreview_SC_Indigo
|
||||
"lava" -> R.style.AppTheme_AttachmentsPreview_SC_Lava
|
||||
"lime" -> R.style.AppTheme_AttachmentsPreview_SC_Lime
|
||||
"orange" -> R.style.AppTheme_AttachmentsPreview_SC_Orange
|
||||
"pink" -> R.style.AppTheme_AttachmentsPreview_SC_Pink
|
||||
"purple" -> R.style.AppTheme_AttachmentsPreview_SC_Purple
|
||||
"red" -> R.style.AppTheme_AttachmentsPreview_SC_Red
|
||||
"teal" -> R.style.AppTheme_AttachmentsPreview_SC_Teal
|
||||
"turquoise" -> R.style.AppTheme_AttachmentsPreview_SC_Turquoise
|
||||
"yellow" -> R.style.AppTheme_AttachmentsPreview_SC_Yellow
|
||||
// Do not change this comment for automatic attachment theme insertion
|
||||
else -> resId
|
||||
}
|
||||
}
|
||||
else -> resId
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue