Commit graph

1025 commits

Author SHA1 Message Date
Florian Blasius
d5d3ac2882
em: memory and menu open optimisation (#2336) 2023-03-07 13:17:41 +00:00
Olivier Goffart
31f882e05c MCU: Update ESP32 deps
Also enable target-feature=-fp flag on the S3 Box as it miscompiles
otherwise
2023-03-06 18:10:35 +01:00
Florian Blasius
b695503d06
energy monitor: optimize memory usage for small size (#2328)
* em: optimize memory usage for small size
* em: code review
2023-03-06 10:49:19 +01:00
Florian Blasius
1271c224f7
em: kiosk mode (#2323)
* em: kiosk mode
* ci fix
2023-03-03 12:44:01 +01:00
Florian Blasius
e09fb3f934
energy-monitor: polish (#2321)
* readme fix
* polish
2023-03-03 08:03:08 +01:00
Simon Hausmann
0c66c94984 Work around the left arrow not showing up sometimes in the energy monitor
There's a curious bug where with Skia's OpenGL renderer on a Vivante,
the colorization using Skia image filters on the left arrow SVG would
just not produce any pixels. As a workaround, taking the right arrow SVG
and rotating it by 180 degrees around the center fixes it.
2023-03-02 15:18:58 +01:00
Florian Blasius
b9561a642a energy-monitor: layout tweaks 2023-03-02 09:55:58 +01:00
Florian Blasius
74d3d4a14a energy-monitor: polish mid size conent height 2023-03-02 09:38:26 +01:00
Florian Blasius
cbb34c2c89 energy-monitor: fix small size navigation 2023-03-02 09:32:13 +01:00
Florian Blasius
b4cc2c66ee energy-monitor: center content vertical on mid size 2023-03-02 09:26:39 +01:00
Florian Blasius
9d64b8f3e2 energy-monitor: add page touch-area comment 2023-03-02 09:13:46 +01:00
Florian Blasius
68efb86910 energy-monitor: add toucharea to page 2023-03-02 09:12:10 +01:00
Florian Blasius
576a0b6695 energy-monitor: fix missing icon in settings 2023-03-02 08:38:19 +01:00
Florian Blasius
1c4bcdd573 energy-monitor: fix default tab text color 2023-03-01 16:08:19 +01:00
Florian Blasius
04b7bab002
energy-monitor: polish mid size view (#2307)
* energy-monitor: polish mid size view

* Update examples/energy-monitor/ui/mid_main.slint

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-03-01 13:37:39 +01:00
Tasuku Suzuki
a3d1ddb3d3 printerdemo: Improve category labels' visibility in night mode 2023-03-01 10:28:13 +01:00
Florian Blasius
7812ac17e0
energy-monitor: mid size (#2303) 2023-02-28 15:56:56 +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
Florian Blasius
f57600fe75
energy-monitor: responsive view switch (#2293)
* energy-monitor: responsive view switch
* wasm fix
2023-02-27 13:28:48 +01:00
Simon Hausmann
082b401869 Fix no-std build of energy monitor 2023-02-27 11:49:04 +01:00
Simon Hausmann
5a0259b858 CI: Add the energy monitor to the demo builds for embedded and WASM 2023-02-27 10:10:07 +01:00
Florian Blasius
85e330070f
rename energy-mng to energery-monitor (#2291) 2023-02-27 09:15:01 +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
Tobias Hunger
f0ffc5d243
Fix line endings and add a pre-commit hook
... to keep them fixed:-)
2023-02-23 11:09:50 +01:00
Olivier Goffart
90314cbaf7 esp32_s3_box: adjust frequencies 2023-02-22 17:24:25 +01:00
Florian Blasius
d2f08726a0
energy mng demo: display real date, time and weather data (#2244)
* display real date, time and weather data
2023-02-22 14:36:13 +01:00
Florian Blasius
87cb949ad3
energy mng demo: settings menu (#2263)
* energy-mng: settings menu

* SettingsOverview
* About
* Settings page
* IconButton
* ScrollView
* ListView
* Item / ItemGroup
* CheckBox
* RadioButton
* Switch

* emng: code review

* Update examples/energy_mng/ui/pages/menu_page/settings.slint

Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>

---------

Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
2023-02-22 12:44:37 +01:00
Olivier Goffart
5850e5655e esp32_s3_box: Implement unimplemented function
Fixes panic when touching the screen on the carousel demo
2023-02-21 12:30:13 +01:00
Olivier Goffart
8a299fbff2 esp32_s3_box: Touch driver 2023-02-21 12:30:13 +01:00
Olivier Goffart
066ecaacce esp32_s3_box: fix red and blue being inverted 2023-02-21 12:30:13 +01:00
Olivier Goffart
d704f71a18 Update the version of rp2040-hal
Now to a version that actually has DMA support without needing patches
2023-02-20 11:21:41 +01:00
Olivier Goffart
792a5bbd23 Janitor: Update esp32 dependencies
(I did compile the code for the s3 box, but did not try it as i don't
have the hardware)
2023-02-17 15:27:43 +01:00
Olivier Goffart
8450e01a3f
Change the name of the compat feature (#2230)
And remove the compat-0-2-0 and compat-0-3-0 features
2023-02-16 09:40:44 +01:00
Florian Blasius
997344b732
desktop window, tab widget, dashbaord (#2237)
* desktop window, tab widget, dashbaord

* replace logo
2023-02-15 11:28:13 +01:00
Florian Blasius
f52cee154f
balance chart, balance page (#2236) 2023-02-15 09:19:58 +01:00
Florian Blasius
6f3dfc992f
energy_mng: weather page and bar tiles (#2225)
* weather page
* bar tiles
2023-02-14 06:47:08 +01:00
Olivier Goffart
e557ba5eed Exaples: Use the new syntax for the iot-dashboard and imagefilter 2023-02-13 17:53:23 +01:00
Olivier Goffart
ca7b2e0bb8 Harmonize style properties 2023-02-10 16:49:25 +01:00
Olivier Goffart
6889dfa5f5 Rust: Make new(), run() and show() report errors from the backend
Fixes #2198
2023-02-10 05:00:03 +01:00
Olivier Goffart
a19efc30db
Replace the MAX_BUFFER_AGE const generic with a runtime enum
Having a const generic for that didn't turn to be a good API.
Also made the C++ side more difficult

(Also renamed buffer_stride to pixel_stride)

Closes #2135
2023-02-08 14:44:01 +01:00
Olivier Goffart
eaa9db4911 C++: use size_t everywhere as index in our models
cc #2024
2023-02-07 15:25:44 +01:00
Florian Blasius
0db47a0b75
energy_mng demo: usage (#2178)
* usage page
* bar chart
2023-02-06 06:53:20 +01:00
Olivier Goffart
9c20369653 Fluent style: cleanup unwanted properties
Don't make our widgets inherit element that we didn't want to expose in the API

The other styles will be synchronized with later
2023-02-03 20:29:26 +01:00
Florian Blasius
930a127220
energy_mng: overview (#2176)
* Overview page
* ValueDisplay widget
* GroupBox widget

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-02-03 12:01:02 +01:00
ogoffart
e7f48512ee Bump version number to 1.0.0 2023-02-03 11:07:15 +01:00
Olivier Goffart
9fdfa840b8 MCU: Remove the alloc_error_handler feature
`default_alloc_error_handler` is being stabilized in Rust 1.68, so current
nightly don't need any unstable features anymore
2023-02-02 17:23:42 +01:00
Florian Blasius
b9edb9ddd4
energy_mng: initial setup (#2171)
* Navigation
* Menu
* Dummy Pages
2023-02-02 07:10:57 +01:00
Simon Hausmann
d1a56cb609 Fix example instructions for running the node examples
Make sure to install slint-node first.

Closes #2150
2023-02-01 09:11:40 +01:00
Simon Hausmann
32d2ba70ca
Change WindowEvent::KeyPressed/Released to use a SharedString instead of a char (#2148)
Also, `WindowEvent` is not `Copy` anymore.

Closes #1749
2023-01-31 15:44:54 +01:00
Olivier Goffart
6e3610da93 Remove AboutSixtyFPS 2023-01-31 09:38:56 +01:00