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
Olivier Goffart
7984e45a1f
Fix ListView snapping to the bottom instead of the top
...
When there are not enough elements to fill the viewport
2020-10-16 11:21:59 +02:00
Simon Hausmann
6aa292eac1
Change the names of the logical and physical pixel units
...
The logical pixels are now just called "px" and the less frequently
used physical pixels have the "phx" suffix.
The existing markup was adapted using the syntax updater and the
following patch:
+ if node.kind() == SyntaxKind::NumberLiteral {
+ if node.text().ends_with("lx") {
+ return write!(
+ file,
+ "{}px",
+ node.text().as_str().split_at(node.text().as_str().len() - 2).0
+ );
+ }
+ if node.text().ends_with("px") {
+ return write!(
+ file,
+ "{}phx",
+ node.text().as_str().split_at(node.text().as_str().len() - 2).0
+ );
+ }
+ }
Fixes #49
2020-10-16 07:19:40 +02:00
Olivier Goffart
e0e2a63b15
Draw the frame around the ScrollView
2020-10-14 18:03:37 +02:00
Olivier Goffart
e48f0b7621
Add a current item to the StandardListView
2020-10-14 14:32:18 +02:00
Simon Hausmann
7be918ec43
Use a GridLayout for the Button in the ugly style
...
The text element is able to convey reasonable constraints, so the hard-coded
minimum sizes should not be needed.
2020-10-13 22:00:33 +02:00
Olivier Goffart
8f1c5a96c1
Fix ListView being scrollable when it shouldn't
...
Relates to #86
2020-10-13 13:45:18 +02:00
Olivier Goffart
3bdd71b36f
Start working on the Native ListView
...
Currently only the interpret part
2020-10-08 15:51:33 +02:00
Olivier Goffart
2b6ba5052d
Fix scrollbar of the ugly theme when the viewport is smaller than the listview
2020-10-02 18:22:46 +02:00
Olivier Goffart
f10c2bfd7c
More ListView WIP
2020-10-02 18:07:39 +02:00
Olivier Goffart
dec06be70c
WIP ListView
2020-10-02 18:07:39 +02:00
Simon Hausmann
74900302bd
Fix CheckBox height in the ugly style
...
With the previous grid layout implementation the checkbox minimum/maximum height of 40lx
was ignored in the todo app and instead it was
rendered using 20lx, which looks fine.
With the stretch layout the outer constraint of 20lx and the inner constraint of 40lx
create an impossible situation where eventually the
checkboxes in todo get misplaced.
2020-10-02 14:54:05 +02:00
Olivier Goffart
4cc7677ed2
Implement scrollbar in the ScrollBar for the ugly style
2020-10-01 11:26:35 +02:00
Olivier Goffart
6662e1ff00
Proper Scrollbar on the native style
2020-09-28 18:13:13 +02:00
Olivier Goffart
6dd0d178a0
Rename ScrollArea to ScrollView
2020-09-28 10:52:29 +02:00
Olivier Goffart
5caeb601ff
Remove the accepted_text workaround now that we have the two way bindings
2020-09-25 16:47:24 +02:00
Simon Hausmann
acb6eddeaf
Expose the focused property on TextInput correctly
...
As per #55 introduce a has_focus property on the TextInput.
2020-09-25 11:22:32 +02:00
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