Commit graph

19 commits

Author SHA1 Message Date
Olivier Goffart
315fd7a881 Start doing a ScrollArea element
Unfortunately something is wrong with the Qt style, it looks like the Qt style
does not respect the rect given for the sub components

Also Input is not handled yet.
2020-09-22 20:05:41 +02:00
Simon Hausmann
86d54ba2a7 Fix workaround for add_todo not working
To work around the lack of a two-way binding, we must binding to the text input, not the root :)
2020-09-21 15:31:32 +02:00
Simon Hausmann
b857eb4671 Add an accepted signal to TextInput and LineEdit 2020-09-21 13:18:53 +02:00
Simon Hausmann
93a08c5207 Add a LineEdit widget to the ugly and native style 2020-09-18 18:54:37 +02:00
Simon Hausmann
625cb6c6b8 Add a constructor to Text and let the color default to black
We really shouldn't require specifying a color for every Text {} element just in order
to see *some* text.

For Rectangle OTOH transparent is a good default (and thus for Color), hence
this change just to Text.

Right now the constructor bit is also a bit repetitive, this could
perhaps be folded into BuiltinItem to generate the ffi, default impl and
forward to an init function if it exists.
2020-09-16 08:20:13 +02:00
Olivier Goffart
987d43baec Button in ugly style: fix clicking on the border of the button 2020-09-14 16:57:45 +02:00
Olivier Goffart
b65ea71572 Ugly checkbox: don't animate while it is resized 2020-09-08 16:21:53 +02:00
Simon Hausmann
ec07d6bfe8 Tweaks to the color schemes of the printer demo and ugly style/gallery
The printer demo looks slightly less boring on white background with brighter colors.

In exchange, the controls can become more dull and hopefully easier to see.
2020-09-08 15:30:28 +02:00
Olivier Goffart
1cf6d81169 Impletment GroupBox with the Qt style 2020-09-02 17:05:28 +02:00
Simon Hausmann
fd5271f2be Rename the WidgetBox in the gallery to GroupBox
... and place it in the ugly style. Then we can also style it through the native style.
2020-09-02 13:49:14 +02:00
Simon Hausmann
6fa010cd53 Improve slider value indication
Do not only use the location of the handle to indicate the value, also
fill the rectangle to the left of it.
2020-09-02 10:37:19 +02:00
Simon Hausmann
4e36567e63 A new color scheme for the ugly widget style 2020-09-02 09:08:49 +02:00
Olivier Goffart
9782d85fdb Native style works with C++ 2020-09-01 12:25:11 +02:00
Olivier Goffart
f1ad78bc25 Qt style support for the rust backend
Need to set the SIXTYFPS_STYLE=native env variable while compiling
2020-09-01 12:25:11 +02:00
Simon Hausmann
55764de31d Fix alignment of text in the spin box buttons
Center nicely :-)
2020-08-28 16:41:36 +02:00
Simon Hausmann
a9737d77fc Fix vertical alignment of spinbox text
Same fix as for the checkbox.
2020-08-28 16:36:01 +02:00
Simon Hausmann
d0afe4289e Fix text alignment of checkbox text
Align it vertically
2020-08-28 16:32:51 +02:00
Olivier Goffart
58cdaeb8dd Update license header to mention that commertial option are available 2020-08-26 13:23:42 +02:00
Olivier Goffart
6ad581f2a0 Move the sixtyfps_widgets.60 to the compiler directory
We need to do that because it needs to be in the compiler crates.io package
2020-08-25 12:19:08 +02:00