Commit graph

37 commits

Author SHA1 Message Date
Oliver Smith
85fc1c0a41
Add argument to disable animation
For displaying error messages, let's not show the loading animation.
2022-08-06 19:31:45 +01:00
Caleb Connolly
1ab85c2a33
TEST: animate: thicker circle outline 2022-08-06 19:30:23 +01:00
Caleb Connolly
435f8a7977
adjust sizes/positions 2022-08-06 19:30:11 +01:00
Oliver Smith
e2366e9d4f
Support message line at the bottom 2022-08-06 18:50:59 +01:00
Oliver Smith
a1df67dfce
nsvgGetTextShapes: fix uninitialized values
Use calloc to zero ret, because ret[i] does not get written if
NSVG_FLAGS_VISIBLE is unset. Found with valgrind.
2022-08-06 18:45:51 +01:00
Oliver Smith
fc5f065269
nanosvg: build implementation in extra c file
Speed up development iterations by building the nanosvg implementation
only once. Especially on the PinePhone it takes a bit.
2022-08-06 18:45:22 +01:00
Oliver Smith
36b0e6780b
include: add missing declarations
Add nsvgGetTextShapes() and nsvgRasterizeText() declarations outside of
the _IMPLEMENTATION areas, so the headerfiles can be used without
having _IMPLEMENTATION set.
2022-08-06 18:44:53 +01:00
Oliver Smith
2d79d8ad6a
Tweak the animation and placement
* Move the animation between the logo and the text
* Move text further below
* Change circles to 3 (like ...) and increase speed to 5
* Change circles radius, distance, amplitude
* Draw empty circles instead of full circles, to be used with a logo
  that also has an outline
2022-08-06 18:44:29 +01:00
Oliver Smith
817f988022
animate: fix fill_rect height 2022-08-06 18:44:29 +01:00
Oliver Smith
f94f3269da
getopt: make logo_size_max configurable with -q 2022-08-06 18:44:27 +01:00
Oliver Smith
67c9a10db4
usage: fix argument line
Add missing arguments, order them the same as listed below.
2022-08-06 18:36:45 +01:00
Oliver Smith
99ce784c28
getopt: remove unneeded check for -d
Remove the extra check for a value after specifying -d, as getopt() is
already taking care of it:

  pbsplash: option requires an argument: d
2022-08-06 18:36:04 +01:00
Oliver Smith
883ce77d1e
getopt: fix error msg for invalid dpi 2022-08-06 18:35:57 +01:00
Caleb Connolly
9c05d2c7f3
gitignore: ignore more stuff 2022-08-06 18:35:43 +01:00
Caleb Connolly
3c25e1ba44
support newlines + automatic line splitting 2022-08-06 18:34:10 +01:00
Caleb Connolly
5780f60199
render static logo on exit 2022-07-24 16:48:14 +01:00
Caleb Connolly
86b7c8f1c3
clang-format 2022-07-05 15:00:53 +01:00
Caleb Connolly
4410f12762
animate: fix centering on circles 2022-07-05 14:08:26 +01:00
Caleb Connolly
a5af6e1a50
nanosvg: fix some dodgy checks 2022-07-05 14:07:33 +01:00
Caleb Connolly
0e626c1812
pbsplash: offset text slightly below the logo 2022-07-05 14:07:16 +01:00
Martijn Braam
b6625648c9
DPI scaling for the dots 2022-07-05 13:22:08 +01:00
Caleb Connolly
e5f4c50b18
fix help, don't debug by default 2022-07-05 13:21:22 +01:00
Caleb Connolly
6d899d9971
it's ready?! 2022-03-12 23:23:23 +00:00
Caleb Connolly
ec1bfbd2fd
lots of fixes, add animations! 2022-03-11 02:26:04 +00:00
Caleb Connolly
5f6f3726bb
pbsplash: more fixing up, scaling issues, cleanup 2022-03-10 00:43:35 +00:00
Caleb Connolly
31a5ad48e4
more scaling stuff for PC 2022-02-28 00:49:26 +00:00
Caleb Connolly
4c90c076eb
dont forget to link math on gkib 2022-02-28 00:35:59 +00:00
Caleb Connolly
2e07eceb15
pbsplash: some updates / fixes 2022-02-27 23:33:16 +00:00
Caleb Connolly
768aefef93
functional implementation 🥳 2022-02-23 01:20:05 +00:00
Caleb Connolly
8f09ee1628
fix fb behaviour for splash 2022-01-23 23:54:01 +00:00
Caleb Connolly
c13d5fd6ba
sorta works
things run, text and logos work, it's a start
2022-01-23 21:25:19 +00:00
Caleb Connolly
1d29b4d87a
wip svg font rendering
works with built in draw_svg stuff, trying to support nsvgrast
2022-01-23 04:41:15 +00:00
Caleb Connolly
2844142e1b
initial svg rendering
messsy
2022-01-22 22:27:56 +00:00
Caleb Connolly
062a665899
move to meson, use tfblib as an external dependency
needs: https://github.com/vvaltchev/tfblib/pull/4
2022-01-22 20:46:04 +00:00
Caleb Connolly
2ad7ff2a29
initial featureset
Displays a splash, optionally takes a message string (or fromt stdin)
and renders it underneath the logo.

TODO:
 * Bitmap fonts
 * Rasterised logo
2021-10-07 22:17:14 +01:00
Caleb Connolly
48cf59beff
Add LICENSE 2021-10-04 01:54:37 +01:00
Caleb Connolly
461937443c
first commit!
very messy implementation of a simple FB splash for postmarketOS.
2021-10-04 01:52:24 +01:00