Simon Hausmann
1e579eeb4e
Make it possible to focus Cupertino and Fluent buttons
...
The Material button already has the forward-focus.
2023-11-02 07:24:42 +01:00
Florian Blasius
10066c5eef
cleanup widgets according to upcoming code guidelines ( #3771 )
2023-10-30 10:45:25 +01:00
Florian Blasius
74219f833c
Make fluent light scroll bars more visible ( #3759 )
2023-10-25 09:30:23 +02:00
Florian Blasius
030cf2cd19
Update scroll offset on ScrollView on ScrollBar scroll-event ( #3668 )
2023-10-16 10:41:39 +02:00
Tobias Hunger
b12575a4c4
janitor: Go over our spell checking setup
...
* Extend the cspell word list
* Remove those extensions from individual source files
* white-list licenses and such as we should not meddle with those
* Fix spelling
2023-10-16 09:01:51 +02:00
Florian Blasius
e83f3c8068
Added SpinBoxBase, use scroll-event to change value. ( #3665 )
2023-10-13 13:37:20 +02:00
Florian Blasius
caecbb98ac
Introduce ComboboxBase and in/decrement selection by scroll event ( #3648 )
2023-10-11 12:55:49 +02:00
Olivier Goffart
4398a64add
Fluent: fix selection foreground color
...
When selecting text, the foreground color is inverted
2023-09-26 07:25:59 +02:00
J-P Nurmi
123406338d
StandardTableView: prevent internal FocusScope from eating the first press ( #3495 )
...
* TableView: prevent internal FocusScope from eating the first press
Fixes : #3436
* Restore keyboard navigation
2023-09-19 09:45:19 +02:00
Thorbjørn Lindeijer
74b37df4db
Optimize StandardTableView in Fluent, Material and Native styles ( #3425 )
...
* Optimize StandardTableView in Fluent and Material styles
By using a ListView instead of a ScrollView + VerticalLayout, we trigger
the optimization where only visible children are being instantiated.
For the Fluent style, this was making the rows more compact, so I've
added additional padding to the TableViewCell to compensate. I don't
know where the padding used to come from.
I didn't touch Cupertino style since it's currently work-in-progress.
This optimization can be done there as well.
For the Native style, this optimization isn't as straight-forward
because it uses a NativeScrollView + Flickable directly rather than a
the ScrollView.
* Optimize StandardTableView for Native style
Using the ListView makes it possible to only instantiate the visible
items, which makes the StandardTableView a lot faster for larger models
(already very noticeably in the gallery example).
When using a ListView, StandardTableView lost access to the
NativeScrollView.native-padding-top/left properties, which are now
exposed through the ScrollView item.
It could also no longer position the Flickable below the header (or in
doing so, would take the scrollbar along with it), so a property was
added to ScrollView for that purpose as well.
* Introduced InternalScrollView
This avoids exposing additional properties on the ScrollView for just
the native style.
* Fix missing default values for Native style ScrollView
Added minimum size, preferred size and stretch factors (they were not
present before introducing InternalScrollView either, but are added now
for consistency with the other styles).
2023-09-08 08:23:03 +02:00
Olivier Goffart
4920224be0
Rename Slider::vertical to Slider::orientation
2023-08-30 13:43:59 +02:00
Eric
4b9fb89332
add property for slider to support vertical orientation ( #3236 )
2023-08-16 09:58:50 +02:00
Florian Blasius
297b55dbdd
Added item-pointer-event to StdListView ( #3165 )
2023-07-26 14:43:55 +02:00
Florian Blasius
d65c8a1774
Added current-item-changed to StdListView and current-row-change to StdTableView ( #3135 )
2023-07-23 08:42:28 +02:00
Florian Blasius
1ecd36d51a
Fixed enabled in fluent ComboBox ( #3127 )
...
* Fixed enabled in fluent ComboBox
* Updated changelog
2023-07-21 07:59:36 +02:00
Aleš Katona
44fb865ad4
add row-pointer-event callback to tableview ( #3082 )
2023-07-19 08:34:24 +02:00
Florian Blasius
94ce4ebaee
Fixed text input on fluent and material SpinBox ( #3101 )
2023-07-18 07:43:37 +00:00
Eric
1b0d3b1061
Add edited callback for SpinBox ( #3096 )
...
* add edited callback for SpinBox
* fix compile error
* add inline comment for callback definition
2023-07-18 07:53:54 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Tiller
94ecce4040
Added zero width to focus scope to prevent double-click to select a list item
2023-07-10 08:35:52 +02:00
Guiguiprim
6db1c44d2a
Support button with only icon ( #3024 )
2023-07-03 12:17:46 +02:00
Olivier Goffart
7a88dba2e7
Add clear-selection()
to all our input fields
2023-06-28 17:07:55 +02:00
Florian Blasius
82cc0683e8
Switched to relative-font-size for fluent. ( #2951 )
2023-06-21 15:37:42 +02:00
Florian Blasius
e3486542d8
Polish fluent design refresh ( #2950 )
2023-06-21 11:46:47 +02:00
Florian Blasius
18d56800c8
Adjusted structure of material widgets. ( #2941 )
2023-06-20 14:54:10 +02:00
Florian Blasius
2656dfad7d
Refactor ProgressIndicator api according to api review. ( #2937 )
...
* Refactor ProgressIndicator api according to api review.
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Capping progress also for native.
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-06-20 12:27:48 +02:00
Florian Blasius
7784e37928
Fluent widgets refresh ( #2928 )
2023-06-19 17:04:56 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs ( #2888 )
2023-06-15 11:20:50 +02:00
Florian Blasius
3ff8d072fb
Added current-row
to StandardTableView
( #2831 )
...
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
---------
Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
2023-06-07 07:34:29 +02:00
Florian Blasius
94a0327af6
Add primary flag toButton
( #2820 )
...
* Add default flag to button
* Code review feedback
* Update CHANGELOG.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update examples/gallery/ui/pages/controls_page.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review feedback
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-06-06 15:41:23 +02:00
Simon Hausmann
c428601370
Add support for select-all(), cut(), copy() and paste() functions on text input elements ( #2804 )
...
In the compiler this is still very primitive, but an attempt to start a
generic interface. The basic assumption is that all item functions will
eventually need access to the window adapter and itemrc. Support for
additional arguments is still missing.
Also missing is support for the function access via rtti in the
interpreter, hence the hardcoding at the moment.
2023-06-01 16:04:53 +02:00
Florian Blasius
0755af3b6d
Change progress property of ProgressIndicator from in-out to out
2023-06-01 12:19:43 +02:00
Florian Blasius
b4472b9118
Added switch widget ( #2798 )
...
* Add material Switch
* Add fluent switch
* Add native Switch and cleanup
* Rebase fix
* Update internal/compiler/widgets/fluent-base/std-widgets-impl.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update examples/gallery/ui/pages/controls_page.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review tweak on gallery layout
* Code review tweak on gallery layout
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-05-31 14:57:23 +02:00
Florian Blasius
9e267bcc94
Add ProgressIndicator widgets ( #2792 )
...
* Add material ProgressIndicator and documentation
* Add fluent ProgressIndicator
* Add native ProgressIndicator
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review
* Update internal/compiler/widgets/fluent-base/std-widgets-base.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update changelog
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-05-31 09:57:12 +02:00
Olivier Goffart
df2f76a65b
Make the non-native TabWidget fill the parent size when not in layout
...
Fix #2683
2023-05-04 07:23:04 +02:00
Olivier Goffart
1089d29ebb
Make Empty not fill the parent by default
...
Unless `preferred-*:100%` is set
Part of #2284
2023-03-24 11:15:05 +01:00
Florian Blasius
1237707b7a
scroll-view: add min width/height vor scorll bar ( #2353 )
2023-03-09 09:08:48 +01:00
Olivier Goffart
488fb14846
Fluent style: Adjust disabled scrollbar background color
...
So that the TextEdit looks alright when disabled
Fixes #2281
2023-03-07 11:48:21 +01:00
Florian Blasius
1b04601750
std-list-view: bring selected into view ( #2246 )
...
* std-list-view: bring selected into view
* Update internal/compiler/widgets/fluent-base/std-widgets-base.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* code review
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-02-17 13:50:09 +01:00
Olivier Goffart
ca7b2e0bb8
Harmonize style properties
2023-02-10 16:49:25 +01:00
Olivier Goffart
9c20369653
Fluent style: cleanup unwanted properties
...
Don't make our widgets inherit element that we didn't want to expose in the API
The other styles will be synchronized with later
2023-02-03 20:29:26 +01:00
Olivier Goffart
d899257225
Fixup last commit: duplicated exports
2023-01-31 09:53:49 +01:00
Olivier Goffart
6e3610da93
Remove AboutSixtyFPS
2023-01-31 09:38:56 +01:00
Olivier Goffart
a0fdf94fb1
StandardTableView: Remove the editable feature for now
...
This commit can be reverted when we want to introduce it again.
There is a few bugs with the editable property:
- The text is not in sync with the model if the model changes after an
edit. (can be seen by making an edit and then sort)
- The highlight of the current row doesn't work properly
- We should probably only edit on double click or some shortcut instead
of just clicking
- The editable field exist but does nothing for the StandardListView
2023-01-24 07:31:29 +01:00
Olivier Goffart
66b848227b
StandardTableView resizable columns
2023-01-23 16:26:49 +01:00
Olivier Goffart
aad6cbbe07
StandardTableView: don't inherit from Rectangle
2023-01-23 16:26:49 +01:00
Olivier Goffart
6e87385cb3
Style: Harmonize the in/out properties accross styles
2023-01-20 16:21:59 +01:00
Olivier Goffart
6e4b1b3468
Rename the std-widgets files of style base so they are not considered as a style
...
This is just so they don't appear in the error message, and also not
being tested by #2076 (https://github.com/slint-ui/slint/pull/2076#issuecomment-1385408167 )
2023-01-17 16:21:53 +01:00
Florian Blasius
520df46998
Update examples to new syntax ( #2067 )
...
* run slint-updater on examples
* manual syntax updates
2023-01-16 12:11:25 +00:00