Commit graph

22 commits

Author SHA1 Message Date
Simon Hausmann
7de783bbe1 Remove unnecessary viewbox position 2021-05-21 19:51:00 +02:00
Simon Hausmann
e7bc91c804 Add support for specifying the viewbox of path elements 2021-05-21 19:51:00 +02:00
Simon Hausmann
b7ab299de0 Fix C++ iot-dashboard build with older CMake versions
... by excluding it from the build with <= 3.16 :-)

Also pin fmtlib to the latest release, instead of master - to be on
the safe side.

Fixes #232
2021-05-20 16:56:51 +02:00
Simon Hausmann
a7ce64657c Restore source compatibility for drop-shadow-blur
Let's keep source compatibility and define `drop-shadow-blur` to be a radius.
The CSS spec says that the standard deviation is half of the radius.

We just need to scale again and increase the shadow rect to make sure that no borders are visible.
2021-05-20 12:14:05 +02:00
Simon Hausmann
bb7b301b10 GL backend: new box drop shadow implementation
This replaces the box gradient with a new implementation that
behaves like the HTML Canvas element, by applying a gaussian
blur to the alpha of the rectangle to shadow.

The drop-shadow-blur property is changed to be now just a "level", like
the HTML Canvas shadowBlur property, which is defined to be half of the
standard deviation of the gaussian blur to be applied.
2021-05-20 08:50:02 +02:00
Olivier Goffart
839e1acd53 iot-dashboard: use a Path to draw the pie chart
Somehow the Path element is not so easy to use
2021-05-19 00:27:42 +02:00
Olivier Goffart
24bafdb2f9 Some more comments to iot-dashboard 2021-05-18 16:55:07 +02:00
Olivier Goffart
efab8967d7 iot-dashboard: don't set the width/height 2021-05-18 13:59:21 +02:00
Simon Hausmann
25d0b604e9 Change the humidity in the iot dashboard to random values every four seconds 2021-05-18 13:07:26 +02:00
Olivier Goffart
fbdbe69fe7 Window: make hight and width fixed size, preferred-* property set the initial size
Issue #227
2021-05-18 10:23:06 +02:00
Simon Hausmann
f7cb67d086 Fix build 2021-05-17 19:32:18 +02:00
Simon Hausmann
760a6ef6c5 Clean up the clock code a little bit 2021-05-17 17:44:43 +02:00
Simon Hausmann
50d2fa88c7 Some docs for the dashboard 2021-05-17 16:28:56 +02:00
Simon Hausmann
02c07de989 Split up the C++ dashboard a little 2021-05-17 16:14:26 +02:00
Simon Hausmann
e8f6dd0586 Remove debug output
Don't always print the generated code
2021-05-17 15:45:27 +02:00
Simon Hausmann
b0fdd9c264 Begin rework the C++ iot dashboard
Implement the Clock as a C++ widget that shows the current time
2021-05-17 15:43:42 +02:00
Simon Hausmann
e5919a9b1e Generate the main contents of the C++ dashboard dynamically from code 2021-05-17 11:56:18 +02:00
Simon Hausmann
906d1f4b95 Added boilerplate for C++ iot dashboard 2021-05-17 11:12:08 +02:00
Simon Hausmann
952f07bbf6 Split the dashboard .60 files
This is in preparation for a C++ interpreter version
2021-05-17 10:49:24 +02:00
Olivier Goffart
eec09310a7 Fix license check 2021-05-07 18:59:01 +02:00
Olivier Goffart
65da9cb933 Some progress on the iot-dashboard demo 2021-05-07 18:54:28 +02:00
Olivier Goffart
07229a16f5 WIP iot-dashboard
A port of https://github.com/peter-ha/qskinny/tree/iot-dashboard/examples/iot-dashboard
2021-05-07 10:27:58 +02:00