Olivier Goffart
fefc7f31d0
Port the printer demo to use exported globals
2021-08-27 16:55:07 +02:00
Olivier Goffart
ffccef4e0c
Examples: replace all _ by - in identifiers
2021-08-10 22:21:01 +02:00
Simon Hausmann
530d47ff1a
printer demo: minor tweak
...
Like with regular check boxes, allow clicking on the text to also toggle
2021-07-23 14:33:13 +02:00
Olivier Goffart
13bd828b96
Update license date
2021-07-02 15:55:54 +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
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
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
f104a8f80d
Printer demo: fix the print page layout
2021-04-26 10:42:46 +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
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
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
407efe5153
Use different colors on push buttons when hovered and pressed
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
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
5b12e03772
Add a USB page from the previous demo
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
Simon Hausmann
dbd90b1500
Fix typo
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
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
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
Simon Hausmann
9c027aebd0
Represent the printing progress as an integer in percent in the printer queue data structure
...
... in preparation for showing a progress bar on the print page
2021-02-22 11:17:38 +01:00
Simon Hausmann
447ce1ced5
Add a "start scanning" button to the scan page
2021-02-22 11:17:38 +01:00
Simon Hausmann
a0dde2833a
Add a "start copying" button to the copy page
2021-02-22 11:17:38 +01:00
Simon Hausmann
eb09848e97
Try to unify font sizes in the global settings
...
This also fixes the size of the document title in the printing queue
2021-02-22 11:17:38 +01:00
Simon Hausmann
341be9cb18
Fix placement of the printer name label and the printer queue items
2021-02-22 11:17:38 +01:00
Simon Hausmann
d6ee61ebe1
Add a push button to the print queue details
2021-02-22 11:17:38 +01:00
Olivier Goffart
4e25edf83f
ScanPage
2021-02-22 11:17:38 +01:00
Olivier Goffart
52683e6b3d
Some progress on the printerdemo widgets
2021-02-22 11:17:38 +01:00
Olivier Goffart
b79f99c485
Print demo: Draft of a spin box
2021-02-22 11:17:38 +01:00
Simon Hausmann
47b2a6c569
Centralize the color for the outline of clickable items
...
In the "green" mode that's a distinctly different color.
Maybe this should be named after primary/secondary instead?
2021-02-22 11:17:38 +01:00
Olivier Goffart
f72e82254b
Printer demo Sub-pages
2021-02-22 11:17:38 +01:00
Simon Hausmann
60b67651b1
Fix the printer queue item background color
2021-02-22 11:17:38 +01:00
Simon Hausmann
2def8b4f26
Start working on the printing queue
2021-02-22 11:17:38 +01:00
Simon Hausmann
4f79c04622
Share the color constant for the night mode for the printer action background
2021-02-22 11:17:38 +01:00
Olivier Goffart
d7a10fdc93
Some stuff for the ink levels
2021-02-22 11:17:38 +01:00
Simon Hausmann
861cf74e73
Some work on the night mode coloring
2021-02-22 11:17:38 +01:00
Olivier Goffart
87cb8ac298
Some dummy page animation
2021-02-22 11:17:38 +01:00
Simon Hausmann
67095059d0
Merge the night mode into the Palette
...
Then we can switch colors there, too
2021-02-22 11:17:38 +01:00
Simon Hausmann
13116e8a20
Begin working on the home page
2021-02-22 11:17:38 +01:00
Olivier Goffart
7f71f8f18c
Remove usunsed code
2021-02-22 11:17:38 +01:00