Florian Blasius
973ecac989
DatePicker: finished features
2024-06-06 09:03:50 +02:00
Florian Blasius
f75cedb893
DatePicker: calendar
2024-06-06 09:03:50 +02:00
Florian Blasius
fe6dba9779
DatePicker: base setup
2024-06-06 09:03:50 +02:00
Simon Hausmann
b162e9df45
Make it possible to toggle the state of checkboxes via accessibility
2024-06-05 09:51:41 -07:00
Florian Blasius
3ccee816be
Added TimePicker widget ( #5251 )
2024-06-05 15:23:06 +02:00
Olivier Goffart
7f014050ac
Qt StandardTableView: properly elide the cell in the text
...
Contrary to the ListView that needs a minimum size and can be scrolled,
the TableView needs the cell to be ellided and don't have a minimum size
Fixes #5285
2024-06-05 12:29:43 +02:00
Arnold Loubriat
0b8a0a90dd
Also fix the Qt theme
2024-06-03 01:38:06 -07:00
Simon Hausmann
d183498c4e
Add support for step-size to SpinBox rendered by the Qt style
...
Fixes #5325
2024-05-31 09:45:29 -07:00
Aurindam Jana
3523e86359
Simplify commercial license ( #3063 )
...
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Florian Blasius
dc4e421f2c
Added step-size to SpinBox ( #5293 )
2024-05-31 09:45:37 +00:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license ( #5257 )
...
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Florian Blasius
a3d4112897
Added placeholder-text to TextEdit ( #5239 )
...
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-05-15 10:20:13 +00:00
Florian Blasius
bd777b4312
Added TextEditBase ( #5236 )
2024-05-15 06:26:50 +02:00
Dirley Jordan
35b9c1e738
Fix a positive minimum causing an incorrect slider/spinbox value ( #5148 )
...
sets the default value to that of the minimum
2024-04-30 09:30:31 +02:00
Olivier Goffart
a3df400308
Basic tests for the Button
2024-04-26 17:25:44 +02:00
Olivier Goffart
c2b3bbdf92
Accessibility: add accessible-label
and accessible-set-value
to LineEdit
2024-04-16 15:50:53 +02:00
Olivier Goffart
13127dc71c
Accessibility: Add support for accessibility-action-* callback ( #5073 )
...
Merge branch 'feature/accessibility'
Conflicts:
internal/compiler/widgets/cosmic-base/button.slint
internal/compiler/widgets/cupertino-base/button.slint
internal/compiler/widgets/fluent-base/button.slint
internal/compiler/widgets/material-base/button.slint
Also updated license header in actions.slint
2024-04-16 15:02:25 +02:00
Olivier Goffart
4e580c6ea4
Accessibility: Remove the replace-select-text from the slint api
...
Because we don't support it in Qt and in our widgets yet.
Also accessible-action-set-value now takes a string because value is a
string (for the line edit)
2024-04-16 14:41:17 +02:00
Olivier Goffart
ab86683d3c
Accessibility: add actions for the button and the spinbox
2024-04-16 12:58:31 +02:00
Olivier Goffart
eb2b7bf178
Widgets: test that widgets have the same accessible-role in all styles ( #5065 )
2024-04-15 18:15:47 +02:00
Olivier Goffart
8aac4fcc49
Qt style: Fix the Combobox has-focus should be out
...
But the Native one needs to be `in` so we can't use the Native as a base
anymore
2024-04-15 15:25:23 +02:00
notfirefox
e2aeb56263
Show focus for NativeComboBox
2024-04-15 15:25:23 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License ( #4994 )
...
Updated the version from 1.1 to 1.2
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
notfirefox
2ee1ee435d
Allow scrolling through tabs for all backends
...
This allows the user to use the scroll wheel to scroll through the tabs.
In order to do this I have made created a common TabBarBase and let all
other implementations of TabBar* inherit from it. I also used slint-lsp
to format the files (it did not like the inline comments).
2024-04-15 12:10:56 +02:00
Arnold Loubriat
e17b1fda8b
Properly expose Switch
as such in the accessibility tree
2024-04-08 08:41:47 +02:00
Simon Hausmann
f27c185daf
Add a released callback to Slider ( #4821 )
...
The released callback is invoked when the user finished changing the value, for example
when the arrow key is released.
As a bonus, for the Qt implementation this fixes a few bugs in the keyboard handling:
- Handle orientation
- Implement click-to-focus
- Emit released also on key release
Co-authored-by: Luke D. Jones <luke@ljones.dev>
2024-03-26 14:15:52 +01:00
Montel Laurent
fc0e8faae9
Accessibility: use tab-list for the tabwidget ( #4909 )
...
* Don't show tabwidget as tab
2024-03-21 17:48:42 +01:00
Montel Laurent
1a57e9fc7a
Fix accessible-role of ProgressIndicator ( #4912 )
...
In other styles it's defined as progress-indicator.
2024-03-21 15:42:31 +01:00
Montel Laurent
4844b84e0c
Add Treeview accessibility support ( #4907 )
2024-03-21 15:18:52 +01:00
Montel Laurent
c2517008d8
Add TextInput as accessibility role ( #4899 )
2024-03-21 13:39:31 +01:00
Simon Hausmann
6fefe75a1c
Don't require components that use forward-focus to be inlined
...
Achieve this by generating a `focus()` function for such components
and call it from the outside.
This replaces the previous focus handling with what should be cleaner:
- Any `forward-focus: some-element;` is basically syntactic sugar for
`public function focus() { some-element.focus(); }`.
- The init code gets simplified to calling focus() on the root, if it's
available.
Since the `focus()` functions are now generated in the imports pass,
they become visible in the style checker. That means the checker
requires consistent focus handling between the styles.
2024-01-26 12:16:09 +01:00
Brandon Fowler
3e8940660b
Add set-selection-offsets
function to TextInput, TextEdit, and LineEdit ( #4197 )
...
The function accepts two arguments that specify the start and the end of the text to select.
Fixes #4164
2024-01-06 11:12:53 +01:00
Florian Blasius
e587c09d9c
Added colorize-icon to Button ( #4152 )
...
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-12-14 12:07:55 +01:00
Florian Blasius
6da8120dfa
added palette global ( #3984 )
...
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
---------
Co-authored-by: Florian Blasius <florian.blasius@slint-ui.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
Co-authored-by: Florian Blasius <flovansl@fedora.fritz.box>
2023-12-11 14:44:05 +00:00
Florian Blasius
6d6b18300a
added focus state to StandardLIstView ( #4086 )
...
* added focus state to StandardLIstView
* (wip) focus handling for qt style
* Update CHANGELOG.md
Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
* Share StandardListView between all styles
* Update internal/compiler/widgets/material-base/combobox.slint
Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
* code review feedback
---------
Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
2023-12-08 10:58:58 +01:00
Florian Blasius
c00a21d651
make use of textinputbase ( #4014 )
2023-11-27 08:50:29 +01:00
Olivier Goffart
7a04b9a643
Qt Spinner: different design without hardcoded strong colors
2023-11-08 12:04:18 +01:00
Florian Blasius
110689bad1
Added Spinner widget ( #3871 )
2023-11-07 15:04:24 +01:00
Florian Blasius
10066c5eef
cleanup widgets according to upcoming code guidelines ( #3771 )
2023-10-30 10:45:25 +01: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
caecbb98ac
Introduce ComboboxBase and in/decrement selection by scroll event ( #3648 )
2023-10-11 12:55:49 +02:00
Olivier Goffart
834068a20e
Rename "native" style to "qt", make "native" an alias
...
First step of https://github.com/slint-ui/slint/issues/3431
2023-09-25 09:06:47 +02:00