Skip to content

Commit

Permalink
Add custom colors to R.raw.style who also needs it
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Jul 11, 2024
1 parent 9fb537d commit 95c76b2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,8 @@ class NewMessageFragment : Fragment() {
enableAlgorithmicDarkening(true)
if (context.isNightModeEnabled()) editor.addCss(context.loadCss(R.raw.custom_dark_mode))

addCss(context.loadCss(R.raw.style))

val customColors = listOf(PRIMARY_COLOR_CODE to context.getAttributeColor(RMaeterial.attr.colorPrimary))
addCss(context.loadCss(R.raw.style, customColors))
addCss(context.loadCss(R.raw.editor_style, customColors))

isEmptyFlow
Expand Down

0 comments on commit 95c76b2

Please sign in to comment.