Commit graph

747 commits

Author SHA1 Message Date
Olivier Goffart
dcc10f9ccb
iot-dashboard: Add a screenshot in the README 2021-07-12 13:40:22 +02:00
Olivier Goffart
3d9b0fa19c
Adjustment to the example README 2021-07-12 13:38:13 +02:00
Olivier Goffart
6e9db5e6e6
examples/README: Fix a table 2021-07-09 14:42:46 +02:00
Olivier Goffart
2ee1e5ac1d iot-dashboard: Some more polishing 2021-07-09 10:40:20 +02:00
Olivier Goffart
12eee38e6c iot-dashboard: adjust a bit the size of the up/down buttons 2021-07-09 10:09:51 +02:00
Simon Hausmann
2154d00f67 iot-dashboard: Fix alignment of the usage spacers
Deviate from the C++ code and use a grid for the usage panel, to achieve the same visual
alignment as in C++.
2021-07-09 10:09:19 +02:00
Simon Hausmann
0403458751 iot-dashboard: Fix distance between main menubar logo and the items
Apply what is the margin on the MenuBarTopLabel::Graphic as padding in
an injected layout.
2021-07-09 09:35:50 +02:00
Simon Hausmann
cc5d1a773c iot-dasbhardo: Fix padding in top bar
Apply the same padding as in Skin.cpp for the TopBar::Panel.
2021-07-09 09:27:20 +02:00
Olivier Goffart
0be7f19663 iot-dashboard: Have the temperature pane show the same text as the orginal 2021-07-08 17:44:50 +02:00
Simon Hausmann
344dbab1a5 Provide a tiny bit of feedback when pressing the rounded buttons 2021-07-08 17:26:14 +02:00
Simon Hausmann
cbd8f44c11 Fix opacity in devices buttons
Apply the opacity only to the background fill, like in QSkinny.
2021-07-08 17:15:22 +02:00
Olivier Goffart
78f3a21e5c iot-dashboard: add some interaction on the widgets 2021-07-08 15:22:10 +02:00
Olivier Goffart
b96b565840 iot-dashboard: Some interaction with the light intensity 2021-07-08 15:06:22 +02:00
Olivier Goffart
88d6c227cf iot-dashboard: Make the README in markdown and add in the example dir
Also change the url to the demo and editor to the snapshots/master
since this is the README for the git repository's master branch
2021-07-08 14:27:27 +02:00
Olivier Goffart
2144975cca iot-dashboard: better initial size 2021-07-08 14:27:27 +02:00
Olivier Goffart
13bd828b96 Update license date 2021-07-02 15:55:54 +02:00
Olivier Goffart
c5312fd642 Ugly style: use a layout for the ComboBox
Then it is properly layed out and we can use the auto-wrap in the gallery example
2021-07-02 14:17:15 +02:00
Olivier Goffart
6f6f5fc1ee printerdemo: Use a GridLayout
Now that the rowspan and colspan are no longer buggy
2021-07-02 12:30:07 +02:00
Olivier Goffart
63cf84d21f More MSVC warnings fixes 2021-07-01 14:16:41 +02:00
Simon Hausmann
76eeabd216 Try to fix the auto-play checkbox with DejaVu
Amend b4955d2415 as the checkbox needs to scale
down a bit more with DejaVu.
2021-06-30 17:09:34 +02:00
Simon Hausmann
b4955d2415 Fix shuffle and auto-play checkbox in slide puzzle
Text's behavior right now is to clip on a line basis, so with the given
font-size for these two elements, the glyphs aren't shown at all because
the ascent + descent that's use for the clip test is bigger than the
maximum height, despite the actual glyphs fitting.

For now, reduce the font-size slightly to make the glyphs fit.
2021-06-30 16:10:24 +02:00
Olivier Goffart
2f71547040 iot-dashboard: remove useless layout
This was fixed
2021-06-29 14:54:47 +02:00
Olivier Goffart
a4b9c0ced5 Old printer demo: fix the layout
Also, make sure empty cell in a GridLayout stretches
2021-06-29 12:33:01 +02:00
Tobias Hunger
e01bd87df8 Janitor: Fix warnings about markdown files
These might change the layout of the rendered markdown files. This will
also fix some typos along the way:-)
2021-06-28 08:32:25 +02:00
Tobias Hunger
13d7f5e7bd Janitor: Fix typos in comments and user-facing strings
Also adapt tests for error messages containing the fixed strings.

No behavior change is intended!
2021-06-28 08:32:25 +02:00
Simon Hausmann
e0212d92ca Sync C++ iot-dashboard: Apply spacing to grid layout
As per commit fbc6925dc0
2021-06-22 14:31:41 +02:00
Olivier Goffart
fbc6925dc0 iot-dashboard: layout adjustment
Add spacing to layout which now default to 0,
Since the default height for image depends on the width, reset to what
we expect
2021-06-22 14:26:54 +02:00
Olivier Goffart
962dc0075c Layout: Make the default padding and spacing 0
and add Box widgets that have proper defaults

Closes #200
2021-06-21 14:29:53 +02:00
Olivier Goffart
ee00c9eb92 Rename maximum- and minimum- properties to max- and min-
Issue #259
2021-06-14 10:28:30 +02:00
Simon Hausmann
43e7407669 Use the same default font sizes as C++
On my screen with a dpr of 2 this aligns QSkinny/Qt with GL and Qt backend
2021-06-03 16:31:57 +02:00
Simon Hausmann
f6ae29d256 Set the font size on all Text elements
... according to what's set in either Skin.cpp or the corresponding .cpp file.
2021-06-03 16:30:19 +02:00
Simon Hausmann
4d2989cfc3 Small typo fix 2021-06-03 15:29:29 +02:00
Simon Hausmann
f02c392334 Fix horizontal alignment of text in the menu bar
The C++ version codes 14 pixels as width for all the icons, thus aligning the text as well.

The aspect ratio is preserved.
2021-06-03 15:26:39 +02:00
Olivier Goffart
b0a0c3bd27 iot-dashboard: Improve the graphs bu using Path 2021-06-03 12:59:35 +02:00
Olivier Goffart
e386e86acb iot-dashboard: first attempt at the usage graph 2021-06-03 12:59:35 +02:00
Simon Hausmann
8ac1d0e68f Fix the layout of the light intensity
This matches the appearance of the C++ version more closely.
2021-06-03 11:53:25 +02:00
Simon Hausmann
d5ac54a833 Bring the element names and structure a bit more in sync with the C++ version 2021-06-03 09:27:46 +02:00
Simon Hausmann
8d328e1c1b Add range values to the light intensity control 2021-06-02 18:40:20 +02:00
Simon Hausmann
866264b909 Some work towards the light intensity 2021-06-02 12:34:14 +02:00
Simon Hausmann
1970924bb1 Fix rendering of the circle progress bars in the iot dashboard
The stroking shows strange artefacts with both Qt and femtovg. Filling
looks much better with both.

Unfortunately this triggered a bug in lyon's arc_to, for which this patch also
pulls in a fix.
2021-06-02 11:13:41 +02:00
Olivier Goffart
8c6eb65f1c Few adaptations of the renamed viewer 2021-05-22 09:30:57 +02:00
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
Olivier Goffart
22c631baf9 Only compile the qt_viewer example if Qt >= 5.15 2021-05-21 07:54:31 +02:00
Olivier Goffart
1f46fd05ec Allow the qt_viewer to compile if cmake finds qt, but not qttypes
This can happen when setting the SIXTYFPS_NO_QT env variable

cc #232
2021-05-21 07:45:38 +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
8d278faac2 Make the drop shadow more subtle in the slide puzzle
In the current upstream version it's very very subtle.
2021-05-20 09:02:45 +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