Skip to content

Commit 1edb468

Browse files
committed
Add custom colors to R.raw.style who also needs it
1 parent 7b342e1 commit 1edb468

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageFragment.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,8 @@ class NewMessageFragment : Fragment() {
313313
enableAlgorithmicDarkening(true)
314314
if (context.isNightModeEnabled()) editor.addCss(context.loadCss(R.raw.custom_dark_mode))
315315

316-
addCss(context.loadCss(R.raw.style))
317-
318316
val customColors = listOf(PRIMARY_COLOR_CODE to context.getAttributeColor(RMaeterial.attr.colorPrimary))
317+
addCss(context.loadCss(R.raw.style, customColors))
319318
addCss(context.loadCss(R.raw.editor_style, customColors))
320319

321320
isEmptyFlow

0 commit comments

Comments
 (0)