Simon Hausmann
06a19e59ad
slint: Change Platform.os to return a new enum OperatingSystemType ( #8679 )
...
* slint: Change Platform.os to return a new enum OperatingSystemType
cc #8631
2025-06-12 14:25:16 +02:00
Olivier Goffart
7b4d2fd3d3
Renames after the API review
...
CC #8631
2025-06-06 12:31:50 +02:00
Avery Townsend
8c4ccabf7d
Expose FocusReason
to .slint as an argument in focus-event-changed
and add focus-gained
and focus-lost
callbacks ( #8569 )
...
This exposes FocusReason to .slint, and adds it as an argument to focus-event-changed callback on FocusScope to close #8387 . It also adds two new callbacks, focus-gained and focus-lost, which are identical to focus-event-changed but are only invoked on focus gain or loss respectively.
In addition to this, it removes the FocusEventReason::AccessKit variant, replacing it with the mouse variant to hopefully make AccessKit more compatible with any Slint code that will use FocusEventReason.
Finally, I added two tests based on focus_change_event.slint, one for testing the FocusEventReason argument and another for testing the new callbacks.
close #8387
ChangeLog: Added `focus-gained` and `focus-lost` callback to FocusScope. Pass an `FocusReason` enum to the FocusScope callbacks
2025-06-04 09:51:26 +02:00
Simon Hausmann
368ec3459b
Improve default accessibility of TextInput
elements
...
Apply similar logic as to LineEdit and TextEdit, so that when folks build their own text input widgets, they're accessible by default. Also fixed the docs while at it to mention default applications.
Amends #7669
2025-02-20 13:44:16 +01:00
Arnold Loubriat
90c337f1d1
Add AccessibleRole::Image
and use it in the AboutSlint
widget ( #7593 )
...
* Add `AccessibleRole::Image`
* Improve accessibility of the `AboutSlint` widget
* Filter out some images from the accessibility tree
2025-02-18 09:43:53 +01:00
Simon Hausmann
0d723953f9
Add support for line caps in Path Strokes
...
ChangeLog: Added `Path::stroke-line-cap` property.
Fixes #4676
2025-01-20 22:28:45 +01:00
Simon Hausmann
aa332202c5
Rename AccessibleRole.GroupBox to AccessibleRole.Groupbox
...
While unfortunate in casing, this is consistent with Checkbox, Combobox, and Spinbox.
2025-01-10 16:27:14 +01:00
Arnold Loubriat
49196728a7
Add AccessibleRole::GroupBox
2025-01-07 23:08:03 +01:00
Arnold Loubriat
3304df0f82
Add AccessibleRole::TabPanel
2025-01-06 09:30:11 +01:00
Nigel Breslaw
2eedfcc1a2
1.9 Docs: Turn on link validator ( #7057 )
2024-12-11 01:20:02 +02:00
FloVanGH
0bd242cb1b
popup: close popup on escape press. ( #6978 )
...
* Update internal/common/enums.rs
Co-authored-by: Arnold Loubriat <datatriny@gmail.com>
---------
Co-authored-by: Arnold Loubriat <datatriny@gmail.com>
2024-12-03 13:46:32 +00:00
FloVanGH
14c7910d49
PopupWindow: added close-policy property ( #6614 )
...
* Update api/cpp/include/slint_window.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update docs/reference/src/language/builtins/elements.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update internal/core/window.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/interpreter/eval.rs
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update internal/backends/qt/qt_window.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/interpreter/dynamic_item_tree.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/compiler/passes/materialize_fake_properties.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-10-24 09:27:39 +00:00
Olivier Goffart
c4cefb3007
Janitor: typo fix
2024-10-09 15:26:18 +02:00
Renato Araujo Oliveira Filho
1e4de3fe0c
Implement ScrollBarPolicy property for ScrollView ( #6442 )
...
ChangeLog: ScrollView: added vertical-bar-policy and horizontal-bar-policy
Fixes : #3552
Fixes : #5578
2024-10-08 17:02:17 +02:00
Josh Wood
6a131e2648
Added PropertyAnimation.direction
property for controlling animation direction ( #6261 )
...
Closes #6260
ChangeLog: Added property for controlling animation direction
2024-09-24 19:55:24 +02:00
crai0
3f3ac7e347
common: add support for back and forward pointing-device buttons ( #6149 )
...
Closes #6043
ChangeLog: add support for back and forward pointing-device buttons
2024-09-18 07:48:30 +02:00
Arnold Loubriat
f01420258f
Changelog: Introduce AccessibleRole::ListItem
2024-09-16 09:15:39 +02:00
Simon Hausmann
cc47d6863f
Improve WordWrap docs
2024-07-05 09:47:57 +02:00
Simon Hausmann
39f49c468d
doc: Add a little note about CharWrap
2024-06-18 08:53:20 +02:00
Daniel Stuart
9f63d157d1
Add character wrapping for Qt Backend
...
This adds a new wrapping mode called `char-wrap`, which allows for wrapping at any character.
Currently, it only supports the Qt backend, with the other backends falling back to `word-wrap` when this option is selected.
2024-06-17 23:52:04 -07:00
Simon Hausmann
f1987cd208
Fix links to widgets in AccessibleRole docs embedded in i-slint-backend-testing docs
...
The relative links don't work, so use slint-reference: custom schemes that works with sphinx and is rewritten with JavaScript through injections.
2024-06-12 07:17:35 -07:00
Simon Hausmann
97df6b1be1
Mark AccessibleRole as non-exhaustive
...
That way we can add new variants in the future, while still exporting this in our public API.
2024-06-11 08:02:10 -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
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
Noah Sweilem
6ede27a364
Add text stroke properties to Text
element
2024-04-26 13:16:19 +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
Arnold Loubriat
e17b1fda8b
Properly expose Switch
as such in the accessibility tree
2024-04-08 08:41:47 +02:00
Simon Hausmann
68083243b2
Add an in-out boolean color-scheme property to Palette ( #4701 )
...
This allows applications to force dark/light mode, as well as determine
which mode is active.
2024-03-26 15:44:22 +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
da30fa2663
Add ListView accessibility role ( #4911 )
2024-03-21 15:20:43 +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
d5f18b3cae
doc: Small typo fix
2024-03-07 13:29:27 +01:00
Olivier Goffart
5e7ddf3a19
Image Tiling
...
(Doesn't work yet with 9slice)
2024-02-26 12:16:41 +01:00
Olivier Goffart
926786fb59
Remove ImageHorizontalAlignement::Start/End
...
Since RTL language are not yet implemented, let's leave that out for now
2024-02-08 18:59:26 +01:00
Olivier Goffart
ce6c7f5527
Image: add horizontal and vertical alignment
2024-02-08 18:59:26 +01:00
Olivier Goffart
cb92ba1132
Add ImageFit.preserve and de-duplicate the fitting code
2024-02-08 10:10:56 +01:00
Tobias Hunger
9737720cf2
touch-area: Trigger pointer-evnet on mouse move
...
Trigger the `pointer-event` callback on mouse move. This is of "kind"
Move and the mouse button will always be `Other`, but at least the mappings
will be correct:-)
Closes : #2770
2023-12-11 09:07:44 +01:00
Simon Hausmann
a5c3692fbc
Add progress-indicator accessible role
2023-11-07 13:37:12 +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
darknight
5e5bbed8ee
Expand InputType to support number & decimal
2023-09-07 14:56:45 +02:00
Olivier Goffart
4920224be0
Rename Slider::vertical to Slider::orientation
2023-08-30 13:43:59 +02:00
Simon Hausmann
d61a929e34
Move widgets out of builtins/ and into its own section under the language reference
2023-08-15 12:04:43 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Olivier Goffart
e836e42997
Docs: don't commit the generated enums.md to the repo
...
Just generate it as we build the docs
2023-06-30 09:55:35 +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
Olivier Goffart
a68df6eb70
WindowAdaptor: change the 3 ime call into one single ime request enum ( #2747 )
2023-05-17 17:50:19 +02:00
Tobias Hunger
42d1fbdbcf
docs: Use it's, etc. more consistently ( #2287 )
2023-02-24 17:42:22 +01:00
Tobias Hunger
5b347e0b13
Add @tronical's suggestions
...
... and more links ...
2023-02-24 16:09:11 +01:00