Commit graph

78 commits

Author SHA1 Message Date
Olivier Goffart
ed1fc31b84 Put the window background color in the StyleMetrics
And make use of Window::background in Qt
2021-02-15 15:57:58 +01:00
Olivier Goffart
afbb537bc1 Add TouchArea::enabled
and use it in the ugly style
2021-02-05 14:21:20 +01:00
Simon Hausmann
c771bcff45 Print a warning when trying to animate deprecated properties 2021-02-02 22:58:54 +01:00
Simon Hausmann
e61529976e Issue warnings when creating bindings against deprecated properties 2021-02-02 22:42:02 +01:00
Olivier Goffart
b91f945a07 Fix horizontal scrollbar in ugly style
the new rendering backend behavior is different if the border radius is bigger
than the small border
2021-01-29 17:41:39 +01:00
Olivier Goffart
07df517473 Replace $children with @children 2021-01-28 11:55:08 +01:00
Simon Hausmann
a69ce3a397 Remove the 'align-' prefix from TextHorizontal/TextVerticalAlignment 2021-01-25 10:59:18 +01:00
Simon Hausmann
521e15e5b0 Add a forward-focus declaration for LineEdit
This allows calling `focus()` on a `LineEdit`.
2021-01-20 15:52:58 +01:00
Olivier Goffart
8797f6512d Rename Slider min/max property
For consistency with the SpinBox

Fixes https://github.com/sixtyfpsui/sixtyfps/issues/138
2020-12-30 10:02:38 +01:00
Olivier Goffart
56b67eac8c Complete the last patch to add a minimum/maximum properties to the SpinBox 2020-12-29 09:44:19 +01:00
Seo Sanghyeon
6ec1c2b446 Add minimum to SpinBox 2020-12-29 09:32:56 +01:00
Olivier Goffart
0d2d48be4f Rename "signal" to "callback" 2020-12-18 09:51:01 +01:00
Olivier Goffart
f3a5034344 Style 2020-12-14 12:56:38 +01:00
Olivier Goffart
9d50960c98 More fixes to disabled widgets 2020-12-14 11:43:19 +01:00
Olivier Goffart
26827733ac Fix: disabled slider should not react to click 2020-12-14 09:44:10 +01:00
Olivier Goffart
e895e88e7f Disabled color for the line edit 2020-12-01 12:10:43 +01:00
Olivier Goffart
a973791676 Fix move property inside a popup 2020-11-30 18:39:41 +01:00
Olivier Goffart
7bfa998f00 Popup positioning 2020-11-30 18:39:41 +01:00
Olivier Goffart
b0a9d65f55 More Popup WIP 2020-11-30 18:39:41 +01:00
Olivier Goffart
c37f0ce4c4 Load the cursor width property from the style
Ideally we would put the bindings dirrectly in the builtins.60
But this is unfortunately not possible because the "StyleMetrics" is not
yet available there and that would be a circular dependencies.
2020-11-25 09:58:54 +01:00
Simon Hausmann
65e09c723a Use hover effects in the ugly style
Use a darker shade between the unpressed and the pressed shade when hovering
over controls that can be activated.
2020-11-24 22:12:17 +01:00
Simon Hausmann
727ab2ee9d Minor tweak to the ugly style
Don't use the shiny blue when pressing items - it's seemingly pretty
but it won't go well with a color change on hover.
2020-11-24 22:02:16 +01:00
Simon Hausmann
1c787d2cb3 Use font-size instead of font_size 2020-11-11 09:38:01 +01:00
Simon Hausmann
c85aa9a758 Use dashed properties for text alignment 2020-11-11 09:35:09 +01:00
Simon Hausmann
d8f2f5b75a ugly style: shrink the toolbar a little
It doesn't have to be touch friendly, and this way it looks a little more subtle.
2020-11-06 13:19:46 +01:00
Simon Hausmann
8881fa3f4a ugly style: make the scrollbar handle a bit smoother
.. by removing the border
2020-11-06 13:19:46 +01:00
Simon Hausmann
711e912bf1 Fix size of the combo box in the ugly style
Align with the button. There's still a minor difference to the spin box though.
2020-11-06 13:19:46 +01:00
Simon Hausmann
7e58d7bc50 Make the ugly style a little more "alive"
Crank up the saturation of the blue a little (not all the way though).
2020-11-06 13:19:46 +01:00
Simon Hausmann
407bb49241 Minor combobox tweak in the ugly style
Center the "drop down" arrow vertically.
2020-11-06 13:19:46 +01:00
Simon Hausmann
3b0f5c3a69 Tune the slider handle appearance of the ugly style
Make it a little sharper as well.
2020-11-06 13:19:46 +01:00
Simon Hausmann
9608f640fc Tune the ugly style button a little
Tune the padding so that the buttons tend to look more horizontally stretched
2020-11-06 13:19:46 +01:00
Simon Hausmann
89d5a9ef98 Improve disable vs. background contrast
Swap text_color_disabled and button_background so that the
disabled state looks more faded.
2020-11-06 13:19:46 +01:00
Simon Hausmann
6d0d4e336e Tune appearance of the ugly style
* Make the borders thinner and "crisper"
* Make the checked state in the checkbox visually more distinct from the
  unchecked state.
2020-11-06 13:19:46 +01:00
Simon Hausmann
fb8a0b1b5c Add disabling to the spinbox 2020-11-06 11:09:40 +01:00
Simon Hausmann
851c376d67 Add disabling to the Slider 2020-11-06 11:09:40 +01:00
Simon Hausmann
9f5ea10e49 Add support for disabling some widgets 2020-11-06 11:09:23 +01:00
Simon Hausmann
3116306059 Fix LineEdit rendering when focused
Don't show the placeholder text
2020-11-06 11:09:22 +01:00
Simon Hausmann
9c3e81741f Fix height of Slider and SpinBox element
Align to the default font size.
2020-11-06 11:09:20 +01:00
Simon Hausmann
68c411e860 Typo fix 2020-11-04 17:39:36 +01:00
Olivier Goffart
183f300a85 Implement the temperature converter in the .60 code
A edited signal was required on the line edit
2020-11-03 18:23:37 +01:00
Olivier Goffart
8a95b806c7 Strawman implementation of a combo box 2020-11-03 17:55:49 +01:00
Olivier Goffart
59707f068c add a enabled property on the line edit 2020-11-02 18:20:01 +01:00
Olivier Goffart
72f22c8aad Make a StyleMetrics global in the style and use it from todo just to test 2020-11-02 17:19:57 +01:00
Simon Hausmann
6b7630963f Add support for disabling a Button
This also removes the funny binding on the button in the gallery.
UI wise it's confusing that a button changes its size when pressed, and we can
show off bindings somewhere else :-)
2020-10-30 15:55:18 +01:00
Olivier Goffart
f855b18fb0 Implement min/max size restriction on the window
(Implemented in the interpreter only for now)
2020-10-29 19:08:52 +01:00
Olivier Goffart
0b169b564a Use a global palette in the ugly style 2020-10-29 11:01:04 +01:00
Simon Hausmann
ac31558e7a Minor "ugly" style fix
When pressing the slider handle, don't use the fill color.
2020-10-27 19:35:48 +01:00
Olivier Goffart
dc98487160 Add a placeholder-text property to LineEdit 2020-10-27 10:55:08 +01:00
Olivier Goffart
aabd13b5a9 Adjust the ugly style default stretches 2020-10-27 07:24:04 +01:00
Olivier Goffart
9f08492258 Make sure that the ListView is not scrolled when there is enough room for all contents
Fixes #93
2020-10-21 09:47:33 +02:00