Skip to content

Commit 3c9ce6d

Browse files
committed
Add custom colors to R.raw.style who also needs it
1 parent 18ae9e7 commit 3c9ce6d

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
@@ -314,9 +314,8 @@ class NewMessageFragment : Fragment() {
314314
enableAlgorithmicDarkening(true)
315315
if (context.isNightModeEnabled()) editor.addCss(context.loadCss(R.raw.custom_dark_mode))
316316

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

322321
isEmptyFlow

0 commit comments

Comments
 (0)