Skip to content

Commit

Permalink
Add Icon.moon and Icon.sun
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Dec 18, 2024
1 parent 9020c86 commit 351182d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/UI/Icon.elm
Original file line number Diff line number Diff line change
Expand Up @@ -1080,3 +1080,19 @@ bookOutlined =
[]
[ path [ fill "currentColor", fillRule "evenodd", d "M4.5 2.5H10.5V8.5H3.5V3.5C3.5 2.94772 3.94772 2.5 4.5 2.5ZM3.5 9.5V10.5C3.5 11.0523 3.94772 11.5 4.5 11.5H10.5V9.5H3.5ZM11.5 9.5V11.5V12.5H10.5H4.5C3.39543 12.5 2.5 11.6046 2.5 10.5V3.5C2.5 2.39543 3.39543 1.5 4.5 1.5H10.5H11.5V2.5V8.5V9.5Z" ] []
]


sun : Icon msg
sun =
Icon "sun"
[]
[ path [ strokeLinecap "round", fill "currentColor", fillRule "evenodd", d "M2.40381 2.40381L3.81802 3.81802M10.182 10.182L11.5962 11.5962M3.81802 10.182L2.40381 11.5962M11.5962 2.40381L10.182 3.81802M7 1.6967V2.6967M1.69669 7H2.69669M7 12.3033V11.3033M12.3033 7H11.3033M10 7C10 8.65685 8.65685 10 7 10C5.34315 10 4 8.65685 4 7C4 5.34315 5.34315 4 7 4C8.65685 4 10 5.34315 10 7Z" ] []
]


moon : Icon msg
moon =
Icon "moon"
[]
[ path [ fill "currentColor", fillRule "evenodd", d "M12.2911 9.83172C11.8792 9.94149 11.4464 10 11 10C8.23858 10 6 7.76142 6 5C6 3.40482 6.74701 1.98411 7.9103 1.06861C7.61345 1.02343 7.30946 1 7 1C3.68629 1 1 3.68629 1 7C1 10.3137 3.68629 13 7 13C9.28962 13 11.2797 11.7175 12.2911 9.83172Z" ] []
]

0 comments on commit 351182d

Please sign in to comment.