adding dark variants of the carousel images
@ -40,29 +40,30 @@ class SplashCarouselStateFactory @Inject constructor(
|
||||
fun create(): SplashCarouselState {
|
||||
val lightTheme = themeProvider.isLightTheme()
|
||||
fun background(@DrawableRes lightDrawable: Int) = if (lightTheme) lightDrawable else R.drawable.bg_carousel_page_dark
|
||||
fun hero(@DrawableRes lightDrawable: Int, @DrawableRes darkDrawable: Int) = if (lightTheme) lightDrawable else darkDrawable
|
||||
return SplashCarouselState(listOf(
|
||||
SplashCarouselState.Item(
|
||||
R.string.ftue_auth_carousel_1_title.colorTerminatingFullStop(R.attr.colorAccent),
|
||||
R.string.ftue_auth_carousel_body_secure,
|
||||
R.drawable.ic_splash_conversations,
|
||||
hero(R.drawable.ic_splash_conversations, R.drawable.ic_splash_conversations_dark),
|
||||
background(R.drawable.bg_carousel_page_1)
|
||||
),
|
||||
SplashCarouselState.Item(
|
||||
R.string.ftue_auth_carousel_2_title.colorTerminatingFullStop(R.attr.colorAccent),
|
||||
R.string.ftue_auth_carousel_body_control,
|
||||
R.drawable.ic_splash_control,
|
||||
hero(R.drawable.ic_splash_control, R.drawable.ic_splash_control_dark),
|
||||
background(R.drawable.bg_carousel_page_2)
|
||||
),
|
||||
SplashCarouselState.Item(
|
||||
R.string.ftue_auth_carousel_3_title.colorTerminatingFullStop(R.attr.colorAccent),
|
||||
R.string.ftue_auth_carousel_body_encrypted,
|
||||
R.drawable.ic_splash_secure,
|
||||
hero(R.drawable.ic_splash_secure, R.drawable.ic_splash_secure_dark),
|
||||
background(R.drawable.bg_carousel_page_3)
|
||||
),
|
||||
SplashCarouselState.Item(
|
||||
collaborationTitle().colorTerminatingFullStop(R.attr.colorAccent),
|
||||
R.string.ftue_auth_carousel_body_workplace,
|
||||
R.drawable.ic_splash_collaboration,
|
||||
hero(R.drawable.ic_splash_collaboration, R.drawable.ic_splash_collaboration_dark),
|
||||
background(R.drawable.bg_carousel_page_4)
|
||||
)
|
||||
))
|
||||
|
After Width: | Height: | Size: 28 KiB |
BIN
vector/src/main/res/drawable-hdpi/ic_splash_control_dark.webp
Normal file
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 84 KiB |
BIN
vector/src/main/res/drawable-hdpi/ic_splash_secure_dark.webp
Normal file
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 43 KiB |
BIN
vector/src/main/res/drawable-xhdpi/ic_splash_control_dark.webp
Normal file
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 140 KiB |
BIN
vector/src/main/res/drawable-xhdpi/ic_splash_secure_dark.webp
Normal file
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 79 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/ic_splash_control_dark.webp
Normal file
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 277 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/ic_splash_secure_dark.webp
Normal file
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 119 KiB |
BIN
vector/src/main/res/drawable-xxxhdpi/ic_splash_control_dark.webp
Normal file
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 468 KiB |
BIN
vector/src/main/res/drawable-xxxhdpi/ic_splash_secure_dark.webp
Normal file
After Width: | Height: | Size: 11 KiB |