Peter Hartmann c199a3bb59
Add IOT dashboard example (#116)
* Add IOT dashboard example

* Add images

* more content

* add pie chart

* Add skin factories etc.

* more work on the pie chart

* Try to use quick shapes

* Revert "Try to use quick shapes"

This reverts commit df6b5b22a339173d2a70ed85744b598811c26b30.

Doesn't work that easily unfortunately.

* implement design

* Add fonts; for now as a resource

We should use fontconfig of course later

* improve menu bar

* implement top bar

* use QNanoPainter for circular graphs

* Revert "use QNanoPainter for circular graphs"

This reverts commit ba0263cb1c19462cc41063ec7087c95e176c8293.

Try with QQuickPaintedItem instead for now.

* use painted items for circular bar graphs (for now)

* use different colors

* use some gradients

all of this is very hackish still

* add to top bar

* fix fonts and time display

* implement usage

* implement indoor temperature

* implement Humidity

* implement My Devices

* fix opacity issue with devices

* make icons quadratic

with some quick fixes as usual

* Add diagram

* try to smooth out curves

* Add diagram caption

* use tiny font

* make caption smaller

* add wekdays

* add grid lines

* fix my devices

* add light intensity

* add box around each section

* rename Card to Box

* Put indoor temperature inside a box

* put Humidity in a box

* put the rest in a box

* some small stuff

* add kirigami code

* something works somehow

* maybe we don't need our own class

still some work to do, but the main thing works

* add shadow from outside

... because the class is not a QskControl

* fine-tune the layout

* cross compilation: Make sure examples find libraries at link time

* fix compilation for embedded target

* add night time skin

* add new button class to better style it

* more hints for the night time skin

* change hints for dimmer

* change hints for progress bars

* Use animator for light dimmer

* use animator for progress bars

* Add Kirigami code

It was on oversight that this was forgotten earlier. We could of course
strip this down a lot to the part that we are actually using (i.e. the
shadowed rectangle).

* fix build with new QSkinny version

* fix paddings, something in the API changed

* fix stretch factors

* fix build with new version

* clang tidy fixes

* fix unused parameter warnings

should clean this up properly

* beautify example

* use astyle

* style menu bar properly

* fix warning

* more size hints

* refactor skins

* more skin hints

* graphic label skin hints

* menu item states instead of own API

* main grid box styling

* top bar styling

* fix build

* style round progress bars

* style time

* style indoor temperature and humidity

* simplify temperature and humidity

* style some more

* style My Devices section

* style My Devices some more

* fix styles when switching between them

* style diagram

* style more elements inside diagram

* more diagram style

* fix skin changes

* style light intensity

* Fix Humidity

* fix light intensity layout and other stuff

* style light intensity

* style button value label

* style round button

* style button boxes some more

* style menu bar top label

* style menu bar icons

* remove ShadowBox, it is not used

* style shadow boxes

* remove QskShadowedRectangle

We are not using it

* style usage spacer

* fine tune

* Refactor diagram before replacing it

* Add Diagram drawn with OpenGL

* use new Diagram class

* Support more than one data point in a diagram

* change data points and colors a bit

* position caption box

* adapt the spline to show nice curves

* remove boost::math dependency

We just hardcode the values here so we can get rid of the dependency.

* Remove kirigami code that we don't need

We only need the shadow

* move kirigami code

* rename header guards

* add license headers

* rename some classes
2021-04-26 06:22:35 +02:00

12 lines
2.0 KiB
XML

<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.9375 6.12501C10.8255 6.12501 10.7137 6.08235 10.6282 5.99682L7.68905 3.05792C7.5182 2.88707 7.5182 2.61013 7.68905 2.43929C7.85989 2.26845 8.13682 2.26845 8.30767 2.43929L11.2468 5.3782C11.4176 5.54904 11.4176 5.82598 11.2468 5.99682C11.1613 6.08213 11.0495 6.12501 10.9375 6.12501Z" fill="white"/>
<path d="M7.99836 9.06391C7.88636 9.06391 7.77458 9.02126 7.68905 8.93572C7.5182 8.76488 7.5182 8.48794 7.68905 8.3171L10.6282 5.37819C10.799 5.20735 11.0759 5.20735 11.2468 5.37819C11.4176 5.54904 11.4176 5.82598 11.2468 5.99682L8.30789 8.93572C8.22236 9.02104 8.11036 9.06391 7.99836 9.06391Z" fill="white"/>
<path d="M10.9375 6.125H2.625C2.3835 6.125 2.1875 5.929 2.1875 5.6875C2.1875 5.446 2.3835 5.25 2.625 5.25H10.9375C11.179 5.25 11.375 5.446 11.375 5.6875C11.375 5.929 11.179 6.125 10.9375 6.125Z" fill="white"/>
<path d="M0.875 11.375C0.392437 11.375 0 10.9826 0 10.5C0 10.2585 0.196 10.0625 0.4375 10.0625C0.679 10.0625 0.875 10.2585 0.875 10.5V10.5007C1.1165 10.5007 1.3125 10.6962 1.3125 10.9379C1.3125 11.1797 1.1165 11.375 0.875 11.375Z" fill="white"/>
<path d="M3.9375 11.375H0.875C0.6335 11.375 0.4375 11.179 0.4375 10.9375C0.4375 10.696 0.6335 10.5 0.875 10.5H3.9375C4.179 10.5 4.375 10.696 4.375 10.9375C4.375 11.179 4.179 11.375 3.9375 11.375Z" fill="white"/>
<path d="M0.4375 10.9375C0.196 10.9375 0 10.7415 0 10.5V0.875C0 0.6335 0.196 0.4375 0.4375 0.4375C0.679 0.4375 0.875 0.6335 0.875 0.875V10.5C0.875 10.7415 0.679 10.9375 0.4375 10.9375Z" fill="white"/>
<path d="M0.437281 1.3125C0.195563 1.3125 0 1.1165 0 0.875C0 0.392437 0.392437 0 0.875 0C1.1165 0 1.3125 0.196 1.3125 0.4375C1.3125 0.679 1.1165 0.875 0.875 0.875H0.874344C0.874344 1.1165 0.679 1.3125 0.437281 1.3125Z" fill="white"/>
<path d="M3.9375 0.875H0.875C0.6335 0.875 0.4375 0.679 0.4375 0.4375C0.4375 0.196 0.6335 0 0.875 0H3.9375C4.179 0 4.375 0.196 4.375 0.4375C4.375 0.679 4.179 0.875 3.9375 0.875Z" fill="white"/>
</svg>