Nathan Collins
fe711aad10
Zephyr: don't block main thread with animations
...
Make sure we sleep, even if there are animations. Previously we would
spin the event loop forever once an animation started.
Ideally we need some slint API to get the duration until the next
animation tick.
2024-07-08 16:46:33 +02:00
Nathan Collins
43ea064207
Zephyr: handle touch events
...
Define a simple callback to handle touch events from Zephyr. We expect
an input_sdl_touch device to exist in the device tree. This is a fairly
simple implementation as a proof of concept.
The default behaviour of Zephyr (as configured) is to handle inputs in a
separate thread. Each `input_event` describes a specific change, with the
`sync` member specifying when the event has reached a stable state. We
use slint::invoke_from_event_loop to dispatch the slint event in the
main thread.
2024-07-08 16:46:33 +02:00
Nathan Collins
c32b941f62
Zephyr: Turn off display blanking once
...
This stops the display from flickering in the native_sim.
2024-07-08 16:46:33 +02:00
Nathan Collins
3a12cfbdfc
Enable asserts in Zephyr
...
Turn on Zephyr asserts to help root out issues with the Zephyr
platform code.
2024-07-08 16:46:33 +02:00
Nathan Collins
4a2c4ab89c
Fix ZephyrWindowAdapter rendering
...
Use the correct offset into the buffer. In combination with
zephyrproject-rtos/zephyr#72007 partial rendering now works as
expected.
2024-07-08 16:46:33 +02:00
Nathan Collins
8a4a3c22c2
Update examples/printerdemo_mcu/zephyr/README.md
...
Don't forget to source the Zephyr virtual env.
2024-07-08 16:46:33 +02:00
Nathan Collins
cc39d0a016
Render printerdemo in Zephyr RTOS
...
Add a variant of the printerdemo_mcu that works with Zephyr. For now
we only target the native_sim, and only have rendering set up. Future
commits will add touch support, and investigate synchronization
issues.
2024-07-08 16:46:33 +02:00
Olivier Goffart
acb7da11d2
fix missing warning of missing export
...
... for last component when globals are exported
2024-06-21 11:57:49 +02:00
Simon Hausmann
1378d6e3bc
Make it possible to use slint-esp with displays that expect little endian ordered RGB565 pixels ( #5344 )
...
We can't automatically determine what the display supports, so we need to make this an opt-in - just like it is with LVGL.
2024-06-11 11:30:42 +02:00
ogoffart
3a6e34ba45
Bump version number to 1.7.0
2024-06-04 20:34:29 +00:00
Simon Hausmann
538050f65a
Switch the esp-idf based s3 box examples to use the s3 box 3
...
The original box isn't produced anymore.
2024-06-03 01:39:13 -07:00
Olivier Goffart
25edeb053a
Rendering benchkark of the printerdemo_mcu
2024-04-24 16:36:25 +02:00
ogoffart
6bf40989d9
Bump version number to 1.6.0
2024-03-27 07:49:22 +00:00
ogoffart
20c570ab1d
Bump version number to 1.5.1
2024-03-18 08:55:01 +00:00
ogoffart
a0eed4e58e
Bump version number to 1.5.0
2024-02-20 17:33:11 +00:00
Simon Hausmann
5d45479576
Work around build issues with espressif_lvgl_port >= 1.5.0
...
esp-box fails to build with 1.5.0/lvgl9. Even thought 1.5 was marked as
yanked, it still shows up. So temporarily pin the examples to 1.4.0.
2024-02-01 14:15:03 +01:00
ogoffart
fec2b961db
Bump version number to 1.4.1
2024-02-01 09:12:42 +00:00
Simon Hausmann
5e23dbe765
Fix reuse compliance check
...
Current versions of the reuse tool don't allow inline copyright and licsense information in SVG and CSV files anymore. Move those into the dep5 file.
2024-01-18 15:11:43 +01:00
ogoffart
b081c489d6
Bump version number to 1.4.0
2023-12-11 11:21:37 +00:00
ogoffart
b9255ab8e2
Bump version number to 1.3.2
2023-12-01 08:05:15 +00:00
ogoffart
0a5bf6c37b
Bump version number to 1.3.1
2023-11-23 07:47:07 +00:00
Florian Blasius
4ec63a9c71
cleanup examples according to upcoming code guidelines ( #3809 )
2023-11-02 11:04:40 +01:00
Olivier Goffart
6404924e4f
Fix warning
2023-10-11 14:51:19 +02:00
Aurindam Jana
e01e9685be
Update Slint logo folder with new design ( #3432 )
...
This PR updates the logos and branding guideline of Slint to match the new website design. The new logos are a 1:1 replacement of the old logos except for the circular logo. In the new logo design, there isn't a separate circular logo, as the square logo with circular crop can be used. Further, the logo folder also contains logos in CMYK for use in printed materials. The PMS is just the color value in the naming and can be used where Pantome colors are required. The README has been updated to explain which logos to use when as well as the Slint "blue" color.
2023-09-11 16:41:06 +02:00
Simon Hausmann
090665de13
Remove traces of required C++ exception support
...
After commit cf19749943
this isn't needed anymore.
2023-09-07 11:32:56 +02:00
tronical
b8b9db4e42
Bump version number to 1.3.0
2023-09-05 15:46:36 +02:00
Olivier Goffart
354208c123
esp-idf: Don't expose the platform: just a single function instead
2023-08-21 13:30:37 +02:00
Tobias Hunger
0139eea4f9
xtask: Fix up license headers
...
* Keep project related .md files triple licensed as the rest of the
crate
* Make vtable MIT OR Apache 2.0 (as suggested by @ogoffart)
2023-08-17 08:55:28 +02:00
Simon Hausmann
96d7bb132c
reuse: remove glob for markdown files
...
Instead, place the copyright and license right into the source.
To satisfy reuse, this also removes the unnecessary MIT.txt
symlinks.
2023-08-17 08:55:28 +02:00
Simon Hausmann
036b1b044d
esp-idf: upgrade to the latest esp-idf release
...
This allows removing compiler flags to silence the compiler about bogus
warnings.
2023-08-11 15:53:51 +02:00
Simon Hausmann
f9f16391d5
Make embedding for software renderer the default for the esp-idf component
2023-08-11 15:53:51 +02:00
Simon Hausmann
1005cc4a75
Ignore generated files
2023-08-11 15:53:51 +02:00
Olivier Goffart
c9f716d898
Make a esp-idf component for slint
2023-08-07 16:33:02 +02:00
Olivier Goffart
3a807e46c1
Renderer feature refactor
2023-07-27 19:11:24 +02:00
ogoffart
aebaa7d6c9
Bump version number to 1.2.0
2023-07-25 10:44:53 +00:00
ogoffart
c8c9496722
Bump version number to 1.1.1
2023-06-26 12:50:02 +00:00
Olivier Goffart
f8e8072135
printerdemo_mcu: react on pointer up rather than click
...
Commit 08e20c8586
changed the behavior
of clicked being emitted when the area was both pressed and released.
But that made it hard to hit button on the devices because the touch
screen isn't great.
So activate the button on release instead of click, going effectively
back to previous behavior
2023-06-22 11:46:46 +02:00
Simon Hausmann
060f63ad56
Use enums in the printer demo
2023-06-16 12:30:04 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Tobias Hunger
04d1229685
Fix licnese information using xtask
2023-06-16 09:14:20 +02:00
ogoffart
641cab0e75
Bump version number to 1.1.0
2023-06-15 16:01:28 +00:00
Aurindam Jana
e4338300de
Change license for examples to MIT ( #2887 )
2023-06-15 11:23:17 +02:00
Simon Hausmann
0eab14139e
Add convenience implementations of From for ModelRc from slices and arrays
...
Fixes #2787
2023-06-06 14:38:52 +02:00
ogoffart
dfd5fc38b3
Bump version number to 1.0.3
2023-04-26 14:04:08 +00:00
ogoffart
53cce5bf44
Bump version number to 1.0.2
2023-04-26 11:33:16 +02:00
ogoffart
bd63218412
Bump version number to 1.0.1
2023-04-18 14:56:40 +00:00
Simon Hausmann
a2a693b248
Improve appearance of comboboxes in the printer demos
...
Work around #2284
2023-03-09 10:03:04 +01:00
Tasuku Suzuki
a3d1ddb3d3
printerdemo: Improve category labels' visibility in night mode
2023-03-01 10:28:13 +01:00
Tasuku Suzuki
ee7f5d3d66
printerdemo_mcu: Fix layout
...
Align header and body in the right pane on settings page
2023-02-28 09:07:27 +01:00
Olivier Goffart
0bd99a17fa
printerdemo-mcu: increase the size of the touch area
...
Makes it easier to press
2023-02-24 16:46:40 +01:00