Tobias Hunger
bfca0e3573
Mass update copyright messages to be more REUSE compliant
2021-12-22 10:06:12 +01:00
Olivier Goffart
afde21fdeb
Handle the Up and Down arrow keys in the StandardListView
...
This change the current item, but doesn't scroll the view yet to
make sure it is visible. We are missing the ability to know the
position of the visible item to be able to do that
2021-12-10 11:28:09 +01:00
Olivier Goffart
310bf897cd
Native ComboBox: style the background of the popup
...
Fixes : #720
2021-12-06 18:52:10 +01:00
Olivier Goffart
2ffa83db0e
Native Style: hover effect on NativeStandardListViewItem
2021-12-06 18:52:10 +01:00
Olivier Goffart
19ce555d36
Don't hardcode ScrollArea's viewport size
...
The Flickable should already have sane default
But we need to make sure that the default binding don't override bindings
set with aliases. So we must use BindingsMap::set_binding_if_not_set which
sets the priority properly
Closes #581
2021-10-15 15:43:44 +02:00
Olivier Goffart
4436b422e5
Fix LineEdit.has-focus witht he native style
...
The property had the wrong name.
Also it is not a native-output
2021-10-14 15:34:25 +02:00
Simon Hausmann
4a26faef9a
Add AboutSixtyFPS element
2021-10-05 23:16:46 +02:00
Olivier Goffart
a72c442b58
Native style: use the QPalette for the placeholder color in a LineEdit
2021-09-30 12:50:30 +02:00
Olivier Goffart
671df0f24f
New widget: StandardButton
2021-09-29 16:25:44 +02:00
Olivier Goffart
cbf22d494e
TextEdit
2021-09-06 21:52:12 +02:00
Olivier Goffart
a28bc7c629
Refactor the way the builtin files are loaded
...
So that we can share some code accross styles
2021-09-03 22:31:54 +02:00
Olivier Goffart
4f1eacd6d8
LineEdit is now able to scroll to keep the cursor visible
2021-09-02 17:20:44 +02:00
Olivier Goffart
b2392c25c7
Basic support for Multi-line TextInput
2021-09-01 16:52:37 +02:00
Tobias Hunger
aea4ecca99
Apply pre-commit hooks to all files
2021-08-17 22:38:16 +02:00
Olivier Goffart
143510b593
Set the width of items in a ListView
...
Fixes #408
2021-08-13 11:57:56 +02:00
Olivier Goffart
6cb1095e53
Styles: replace all _
by -
2021-08-10 22:21:01 +02:00
Olivier Goffart
a0a8cc3bc9
Mark the TabWidget as internal and re-export it from the style
2021-08-09 12:41:03 +02:00
Olivier Goffart
d41839abe3
Compiler pass for the TabWidget
...
it will lower the TabWidget into a TabWidgetImpl and the tabs into TabImpl
2021-08-06 15:58:13 +02:00
Olivier Goffart
18572fbaa3
WIP: More TabWidget work in progress
2021-08-06 15:58:13 +02:00
Olivier Goffart
9d40779d69
WIP work for TabWidget
2021-08-06 15:58:13 +02:00
Olivier Goffart
6aa6dec9b4
Small simplification on the usages of ListView
...
Now that the height computation is done properly
2021-07-22 17:29:53 +02:00
Olivier Goffart
cc7242c523
Add a selected
callback to ComboBox
2021-07-13 11:42:31 +02:00
Olivier Goffart
13bd828b96
Update license date
2021-07-02 15:55:54 +02:00
Olivier Goffart
962dc0075c
Layout: Make the default padding and spacing 0
...
and add Box widgets that have proper defaults
Closes #200
2021-06-21 14:29:53 +02:00
Simon Hausmann
e61529976e
Issue warnings when creating bindings against deprecated properties
2021-02-02 22:42:02 +01:00
Olivier Goffart
07df517473
Replace $children
with @children
2021-01-28 11:55:08 +01:00
Olivier Goffart
3636c76848
Also forward the LineEdit focus in the native style
...
Just like in the ugly style
2021-01-21 13:21:09 +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
0d2d48be4f
Rename "signal" to "callback"
2020-12-18 09:51:01 +01:00
Olivier Goffart
5bdb9befb5
Use the PopupWindow in the native style combobox
...
Note: the background is not styled yet
2020-11-30 18:39:41 +01:00
Simon Hausmann
1c787d2cb3
Use font-size instead of font_size
2020-11-11 09:38:01 +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
c3ba5a0808
Clean up NativeButton
...
Eliminate native_button_enabled
2020-10-30 16:28:06 +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
dc98487160
Add a placeholder-text property to LineEdit
2020-10-27 10:55:08 +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
Olivier Goffart
e4e601de83
Draw the frame properly around the native scrollview
2020-10-16 10:45:17 +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
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
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
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