Skip to content

Commit

Permalink
color-theme attribute +
Browse files Browse the repository at this point in the history
  • Loading branch information
lue-bird committed Oct 22, 2023
1 parent a90061b commit df0824c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,18 @@ ui state =
, Element.WithContext.withContextAttribute
(\context -> Element.WithContext.Font.color (foregroundColor context.theme))
, Element.WithContext.Font.size 19
, Element.WithContext.withContextAttribute
(\context ->
Html.Attributes.style "color-scheme"
(case context.theme of
BlackTheme ->
"dark"

WhiteTheme ->
"light"
)
|> Element.WithContext.htmlAttribute
)
]


Expand Down

0 comments on commit df0824c

Please sign in to comment.