Commit graph

18 commits

Author SHA1 Message Date
1b8f895680 Switch to nonlinear color difference 2024-03-09 23:17:08 +01:00
ef5f0e3af4 Add Image widget 2024-03-09 22:46:55 +01:00
bd069e8f26 Add more unifont symbols 2024-03-09 19:01:14 +01:00
638a449343 Make naming scheme more consistent
Constructor functions that set/overwrite a value are called with_*,
functions that add a value are called and_*.
2024-03-09 14:53:15 +01:00
0f21c3701e Improve text widget API 2024-03-09 13:28:13 +01:00
2c8f9685b9 Add Block widget 2024-03-09 00:52:14 +01:00
4f14d70152 Give widget access to taffy layout 2024-03-09 00:07:59 +01:00
62c4cc8f26 Fix text wrapping issue 2024-03-08 18:09:47 +01:00
1e73c01845 Switch to sRGBA everywhere 2024-03-08 17:40:17 +01:00
c9dd8051dd Extract color conversion functions 2024-03-08 17:23:54 +01:00
6ab43a8d5e Try to draw simple "Hello world!" 2024-03-08 17:01:54 +01:00
13ed6ef3e3 Add FontStuff 2024-03-08 16:47:47 +01:00
dc6265f837 Add Text widget 2024-03-07 23:43:12 +01:00
eb04b3fb50 Rip out buffer and widgets
I've decided to use the "taffy" crate for layouting. To make the API
somewhat bearable to use, I've decided to perform all rendering in a
good ol' rgb image buffer (in this case, an ImageBuffer from the "image"
crate). The pixels will be converted to their final representation just
before being sent to whatever device will be displaying them.

I've removed the buffer and the color traits because they're no longer
necessary. I've also removed the existing widgets because the widget
system will have to be redesigned to work well with taffy.
2024-03-06 00:36:19 +01:00
6b62c3fd54 Tweak Widget naming and docs 2024-03-05 00:42:05 +01:00
f3f8af39d4 Use Color in View 2024-03-05 00:21:48 +01:00
fd1b337cd1 Add Background widget 2024-03-04 00:26:20 +01:00
1000de5bcf Add Empty widget 2024-03-04 00:25:43 +01:00