Commit graph

186 commits

Author SHA1 Message Date
Olivier Goffart
13bd828b96 Update license date 2021-07-02 15:55:54 +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
ee00c9eb92 Rename maximum- and minimum- properties to max- and min-
Issue #259
2021-06-14 10:28:30 +02:00
Olivier Goffart
bf6c1deb33 Printer demo: fix cyclic dependency on the layout
`width: height;` cannot be allowed for an item in a layout
2021-05-11 14:59:57 +02:00
Olivier Goffart
b463e3cca4 WIP refactor layout
This commit add support for the box layout
2021-05-11 14:59:57 +02:00
Simon Hausmann
eb1ba121a2 Fix the size of the check boxes in the settings page
In the first row the check box is smaller than elsewhere.
The standard height used for spin boxes and combo boxes is 32px, so check boxes should have the same.

Otherwise there are only labels on that layout row and those should have a flexible
height.
2021-04-30 15:58:33 +02:00
Simon Hausmann
02d598ee64 Make clicking on the more button in the printer queue navigate to the printer queue 2021-04-30 15:24:08 +02:00
Simon Hausmann
141c05410e Polish the combobox in the printer demo
Provide a highlight on hover
2021-04-30 15:11:40 +02:00
Olivier Goffart
0bb61cc1b3 Fix popup placmement and size with the qt backend 2021-04-26 17:29:06 +02:00
Olivier Goffart
8ca0eb65b3 Better animation of the expanding of the printer queue 2021-04-26 11:22:36 +02:00
Olivier Goffart
f104a8f80d Printer demo: fix the print page layout 2021-04-26 10:42:46 +02:00
Olivier Goffart
97fe979e5b Printer demo: Small adjustments to the print screen 2021-04-26 08:59:32 +02:00
Olivier Goffart
d8ebd42712 GL backend: fix vertical alignment of text
Fix issue in
https://github.com/sixtyfpsui/sixtyfps/issues/207#issuecomment-825780094

For the purpose of alignment, we need to use the font height, not the actual
text height, because otherwise it does not look visualy centered if the
text does not have letters that goes under the baseline
2021-04-25 14:20:35 +02:00
Simon Hausmann
297eb02dd6 Fix the alignment of the text in the buttons of the printer demo
The top padding of 5 pixels that should center the image results in the
text element being placed too far down.

Instead, let the horizontal layout assign a full height to the image and text and
let each take care of the content alignment.

Fixes #207
2021-04-23 16:08:03 +02:00
Olivier Goffart
91ed04a72c Make length (still the default for all property) be the logical length
And a new `physical_length` is now the physical_length unit

Note: this does not change the runtime part yet
2021-04-21 17:15:19 +02:00
Simon Hausmann
378a8f3596 Fit the printer demo's home buttons easily on the raspberry pi screen
Minor tweak to the button spacing a little
2021-04-16 13:55:28 +02:00
Simon Hausmann
f7ce1ba8b4 Generate registration code for custom fonts imported in .60 files
This removes the need to manually register fonts. This is initially
applied to the printer demo, but the other demos and removal of the
public manual registration API will come in follow-up commits.
2021-04-14 09:30:32 +02:00
Olivier Goffart
80b236489e Add a clip property that can be set to the Rectangle 2021-04-12 18:48:43 +02:00
Olivier Goffart
b45190ca2d Flickable geometry
Issue #192
2021-04-09 19:14:48 +02:00
Olivier Goffart
689d4a3c16 Printer demo: fix issue after the viewport gets its own element
The layout inside the flickable will no longer be included to
size the paretn layout. We must not take the inner part of the layout
into account
2021-04-09 19:14:48 +02:00
Olivier Goffart
16cf03e85f Printer demo: animation when extending the printing queue items
Thanks to the layout.minimum-height working properly
2021-04-08 20:23:24 +02:00
Olivier Goffart
a816712a79 Printer demo: give the combo box a popup 2021-03-22 18:09:14 +01:00
Olivier Goffart
c840b046ae Rename the "resource" type to "image" 2021-03-10 17:24:31 +01:00
Tobias Hunger
639b42697e Printerdemo: Do not allow 0 copies
Just a bit of polish. The functionality is already implemented, so use
it;-)
2021-03-05 20:09:13 +01:00
Simon Hausmann
b591f7de2c Add Window.default-font-size
This allows getting rid of the `DemoText` element in the printer demo
2021-03-02 13:33:43 +01:00
Simon Hausmann
27bdb4d481 Added Window.default-font-family
One step towards getting rid of `DemoText` in the printer demo
2021-03-02 13:25:21 +01:00
Simon Hausmann
1891cbd054 Use Color.darker in the printer demo to compute push button state colors 2021-02-24 13:22:28 +01:00
Simon Hausmann
a42c3a0b01 Make it slightly easier to navigate between pages on a small screen
Make the title also clickable in order to go back
2021-02-24 08:36:46 +01:00
Simon Hausmann
ee6deaf82c Fix C++ build
Rename the default color member to base.
2021-02-23 15:23:30 +01:00
Simon Hausmann
4128edb92f Give credit to the designer Matthias 2021-02-23 15:08:08 +01:00
Olivier Goffart
3353b2f7dd Fix the ink level for low and high values 2021-02-22 11:17:39 +01:00
Simon Hausmann
407efe5153 Use different colors on push buttons when hovered and pressed 2021-02-22 11:17:39 +01:00
Simon Hausmann
e6b9e6af25 Improve spacing between the printer queue details 2021-02-22 11:17:39 +01:00
Simon Hausmann
4c2d9e5206 Fix the button on the usb page
After selecting a file it is printed, not copied :)
2021-02-22 11:17:39 +01:00
Simon Hausmann
de4d66ed79 Simplify font-size management
* Pick 16px as the base font size also for labels
* Select that as a default in `DemoText` to remove duplicated
  bindings
2021-02-22 11:17:39 +01:00
Olivier Goffart
5237161d51 printerdemo rust: Add some progess 2021-02-22 11:17:39 +01:00
Olivier Goffart
87f08a3753 Some rust code to control the print queue 2021-02-22 11:17:39 +01:00
Simon Hausmann
5240e584ef Add a basic settings page
This also includes a fix for the ComboBox to specify a minimum size.
Strictly speaking this isn't the minimum, as the text could be configured to elide,
so what we really want is a preferred size. But in the absence of that property
we must set the minimum-size to fix the column width in the settings grid layout.

Also fixed a few typos
2021-02-22 11:17:39 +01:00
Olivier Goffart
d79f16a253 Add one more pixel to really hide the printing queue in the home page 2021-02-22 11:17:39 +01:00
Olivier Goffart
5b12e03772 Add a USB page from the previous demo 2021-02-22 11:17:39 +01:00
Simon Hausmann
508adb838a Fix missing license headers 2021-02-22 11:17:39 +01:00
Simon Hausmann
0a1b93593b Fix accidental horizontal panning in the wide printer queue 2021-02-22 11:17:39 +01:00
Simon Hausmann
42efd20806 Remove workarounds for #179 2021-02-22 11:17:39 +01:00
Simon Hausmann
b0110badaf Fix pages being rendered into the visible border radius during animations
When switching between Settings and Home Page view the animation would
show the pages being rendered into the border. This is
fixed by tightening the Clip element and fitting the pages
inside nicely.

Since the entire home page shifted to the right we can remove
the 16px x offset for the printer queue.
2021-02-22 11:17:39 +01:00
Simon Hausmann
c792f0d0de Allow the document title to be rendered using an elision in the printer queue
This also adds the missing elision glyph to the NotoSans font as well as
the missing license file
2021-02-22 11:17:39 +01:00
Olivier Goffart
5a5cb51595 Printer demo: add some spacing 2021-02-22 11:17:39 +01:00
Olivier Goffart
7c5f609186 Remove hack because of broken GridLayout 2021-02-22 11:17:39 +01:00
Olivier Goffart
aabff4dae5 Print demo: some size adjusmtent 2021-02-22 11:17:39 +01:00
Olivier Goffart
6a3ec0465d printer demo: Fix some invisible text in night mode 2021-02-22 11:17:39 +01:00
Olivier Goffart
b680840063 Some adjustment to the size of the printing queue in the home page of the printer demo 2021-02-22 11:17:39 +01:00