Olivier Goffart
a816712a79
Printer demo: give the combo box a popup
2021-03-22 18:09:14 +01:00
Simon Hausmann
73108ff26f
Print diagnostics and fix the path to the ui file in the interpreted printer demo
2021-03-19 18:41:10 +01:00
Olivier Goffart
5b726cacbe
Interpreted printer demo
...
It fails at runtime because it can't compile the .60, but since
there is no diagnostics output for now, it is hard to know why
2021-03-19 18:33:40 +01:00
Olivier Goffart
5f30170543
Fix white background on the old printer demo
...
The default Window background color was changed to be the native one some times ago
2021-03-19 09:48:19 +01:00
Olivier Goffart
32762ef5a6
Fix printerdemo_old
2021-03-19 09:48:19 +01:00
Olivier Goffart
56b22950bf
Fix URL to the old printer demo
2021-03-19 09:09:56 +01:00
Simon Hausmann
b27034efa5
Rename sixtyfps::IntoWeak
into sixtyfps::ComponentHandle
and remove Clone
from generated components
...
`ComponentHandle` offers a richer API of common functions, such as
`show()`/`hide()` as well as the new `clone_strong()` - that should help
to prevent mistakely created strong reference that may cause leaks.
Fixes #188
2021-03-15 16:01:13 +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
e0f2de8044
Fix cmake syntax
...
Amends commit c6ec1e644a
2021-02-23 15:35:16 +01:00
Simon Hausmann
c6ec1e644a
Prospective MSVC build fix
...
Pass /bigobj as suggested by MSVC
2021-02-23 15:34:36 +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
2fdaa44d51
Load the Noto Sans font from the nodejs printer demo
2021-02-22 11:17:39 +01:00
Simon Hausmann
1b870959e6
Use the Noto fonts from the C++ build of the printer demo
...
This adds API to register a font by path from C++
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
Simon Hausmann
dbd90b1500
Fix typo
2021-02-22 11:17:39 +01:00
Olivier Goffart
0ce370cbe5
Fix sizes in the printer demo home page
2021-02-22 11:17:39 +01:00
Simon Hausmann
cfb7af6b66
Also show a progress bar for waiting items
2021-02-22 11:17:39 +01:00
Simon Hausmann
90871d01eb
Add a hacky progress bar
2021-02-22 11:17:39 +01:00
Olivier Goffart
f757474ee1
Fix the look of the push button
...
For some reason the tex tis not propertly ventered vertically
Maybe a bug in the layout?
2021-02-22 11:17:39 +01:00
Olivier Goffart
33c0ff734a
Use the moon svg icon
2021-02-22 11:17:39 +01:00
Simon Hausmann
38bdc8f08c
Include the Noto Sans font in the Rust build
2021-02-22 11:17:39 +01:00
Simon Hausmann
6461d44f6d
Select the Noto Sans font for the new printer demo
...
Use a new `DemoText` element throughout the code base that selects the
Noto Sans family. An ascii-only variant of the font is included in the
repo along with the shell script to do the conversion.
At the moment this only works with the interpreter, the other builds
still need adapting and will fall back to the system default font as
before.
2021-02-22 11:17:39 +01:00
Olivier Goffart
fa1494aef3
Adjust the size of the printer demo window
2021-02-22 11:17:39 +01:00
Olivier Goffart
0e6fe27767
Printer demo: checkbox
2021-02-22 11:17:39 +01:00
Olivier Goffart
363ab7976e
Use svg for the icons in controls
2021-02-22 11:17:38 +01:00