Olivier Goffart
9685af865a
MenuBar: error when MenuBar is repeated or conditional
2025-01-08 11:00:59 +01:00
Arnold Loubriat
f7b9da96d4
Set accessible-enabled
on group box widgets
2025-01-07 23:08:03 +01:00
Arnold Loubriat
8b95752de7
Set accessible-label
on group box widgets
2025-01-07 23:08:03 +01:00
Arnold Loubriat
49196728a7
Add AccessibleRole::GroupBox
2025-01-07 23:08:03 +01:00
Olivier Goffart
863a6fdebb
Fix panic when inlining 0 children in a Row
...
The first inlining pass should inline any element that has children.
Row is going to be optimized out before the second inlining pass.
In that pass, we shouldn't care if there is no children while inlining
in a `@children`
Fixes #7284
2025-01-07 18:40:38 +01:00
Tobias Hunger
cfb2324526
lsp: Rename structs and enums
...
... but only when directly on the name of the struct
when it is declared.
2025-01-07 16:18:46 +01:00
Olivier Goffart
aedd04a3d8
Parser: skip UTF-8 BOM
...
Skip the byte order mark.
BOM is also allowed in .rs or Cargo.toml file.
Fixes #7291
2025-01-07 12:34:08 +01:00
Olivier Goffart
a942ed0852
Remove thiserror dependency
...
Uses derive_more instead
2025-01-06 17:25:08 +01:00
Olivier Goffart
58242676f6
Janitor: Update rowan dependency
2025-01-06 17:25:08 +01:00
Olivier Goffart
76332c5e16
Improve a bit the error when the base of an element is missing
2025-01-06 10:47:05 +01:00
Arnold Loubriat
9c25040b00
Set accessible-action-default
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
14466d1be6
Set accessible-label
on tab panels
2025-01-06 09:30:11 +01:00
Arnold Loubriat
3304df0f82
Add AccessibleRole::TabPanel
2025-01-06 09:30:11 +01:00
Arnold Loubriat
60aacc8f82
Set accessible-item-selected
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
67f6e1a737
Set accessible-item-selectable
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
23e37ce4de
Set accessible-item-index
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
38499962a9
Set accessible-item-count
on tab bar widgets
2025-01-06 09:30:11 +01:00
Arnold Loubriat
c3cfa6044a
Remove tab title label from the accessibility tree
2025-01-06 09:30:11 +01:00
Simon Hausmann
3bff12f092
Make i-slint-compiler widget library inclusion Bazel sandbox friendly
...
The cargo manifest path differs between the invocation of build.rs and rustc when compiling included_library.rs. Accomodate this by providing relative paths.
2025-01-04 12:48:10 +01:00
Simon Hausmann
251bf2332c
Partial fix for bazel build when packaging the widgets library during i-slint-compiler build
...
When the build script runs within a sandbox, all files are symlinked. So checking for say widgets/fluent/button.slint to be a file with is_file() fails, because it's a symlink. Use !is_dir() instead.
2025-01-04 12:48:10 +01:00
Simon Hausmann
d0232782e0
Fix typo
2025-01-03 17:04:27 +01:00
Olivier Goffart
12c99f1c80
Add a warning when a component/type name overwrite another
...
Also fix the unused component warning when that happens
Fixes #7176
ChangeLog: Warning when a type name overwrite another
2025-01-03 09:29:27 +01:00
Olivier Goffart
3ea8be06e8
Make StandardButton focusable
...
Fixes #7230
ChangleLog: Fixed StandardButton not focusable
2024-12-30 13:33:15 +01:00
ogoffart
f309a551b5
Bump version number to 1.9.2
2024-12-30 10:18:16 +00:00
Tasuku Suzuki
bc89c634b3
Fix warning message for a property that name is used for function
2024-12-26 17:54:38 +01:00
Tasuku Suzuki
7a8ca9b147
Fix error message when a property named color is override
...
It said `Cannot override property 'background'` because color is defined
as below
```slint
property <color> color <=> background;
```
For the warning, the name should not be resolved.
Fixes #6324
2024-12-26 17:50:45 +01:00
aurindam
dc3f29b6da
Bump version number to 1.9.1
2024-12-19 12:57:19 +00:00
Olivier Goffart
f31cefdea9
Fix min/max/clamp in presence of percentages
...
We were not properly converting the first argument
Fixes #7118
2024-12-16 18:44:55 +01:00
Olivier Goffart
60c10213d2
Remove LayoutSpec
and undeprecate StyleMetrics.layout-*
properties ( #7069 )
...
StyleMetrics is the right name for these
2024-12-16 14:52:28 +01:00
Olivier Goffart
4a5ba09e7a
Fix panic in legacy component with out property
...
Fixes #7095
2024-12-16 13:58:56 +01:00
Benny Sjoestrand
5ef4aace4c
Implement full-screen property for slint Window item
...
Make it possible to programatically to switch to full-screen mode
via a new property in the Windows item.
The SLINT_FULLSCREEN environment variable will default set this
property to true. However settings this property in the slint code
will override the SLINT_FULLSCREEN.
Fixes #6665
2024-12-16 09:52:40 +01:00
FloVanGH
e0ad561c86
widgets: added key-pressed and key-released callbacks to all text input components ( #7081 )
...
* widgets: removed rejected event
* widgets: added key-pressed, key-released callbacks to text input components
* Update docs/astro/src/content/docs/reference/std-widgets/lineedit.mdx
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-12-12 16:20:45 +00:00
Tobias Hunger
b7e1fb9d18
lsp: Offer to populate empty documents ( #4767 )
2024-12-11 19:33:24 +01:00
Olivier Goffart
6b3361d079
Properly report binding loop involing font-metrics
2024-12-10 21:26:58 +01:00
Olivier Goffart
a107462942
compiler: fix materialize_fake_property for properties in base class
...
Especially for font-metrics
2024-12-10 21:02:33 +01:00
Olivier Goffart
0f15a26f35
PopopWindow: Fix close-policy and close-on-click when inheriting
2024-12-10 12:10:49 +01:00
Olivier Goffart
69d201d6a0
ComboBox: key event when popup is open
...
Fixes #4826
The previous patch changed that the ComboBox was no longer focused when
the popup is shown, so make a hack around that
2024-12-09 15:58:16 +01:00
Olivier Goffart
e03e812984
Fix Focus in PopupWindow
...
Fix https://github.com/slint-ui/slint/issues/2911
2024-12-09 15:58:16 +01:00
Arnold Loubriat
9b9a34561d
Improve keyboard navigation of StandardListView
( #6955 )
2024-12-09 15:14:15 +01:00
Olivier Goffart
a3dad45f0b
Accessibility: rename a few properties after API review:
...
- Rename `accessible-selectable` and `accessible-selected` to `accessible-item-{selectable,selected}`.
Because the property is for items in list rather than eg Text
- Rename `accessible-position-in-set` to `accessible-item-index`.
- Rename `accessible-size-of-set` to `accessible-item-count` and move
the property to the container element rather than the item itself
2024-12-07 08:25:42 +01:00
Olivier Goffart
2ea482da49
Compiler: Change a new error from 1.9 to a warning
...
To keep compatibility with existing Slint code
Commit 53e79000a4
added a call to
LayoutConstraints::new which is shown to produce error in the crater
run.
2024-12-06 23:04:26 +01:00
Olivier Goffart
a7f0fdcd93
C++: explicitly cast to float when generating gradiant stop
...
To avoid the error `error: narrowing conversion of`
2024-12-06 23:04:12 +01:00
asuper0
387220227d
Add step
property to Slider
( #6981 )
...
Closes #4549
ChangedLog: Slider: added `step` property
2024-12-05 11:50:08 +01:00
Olivier Goffart
1be59466dc
llr: Slint global lowering so it doesn't panic with cross-reference
...
Global can reference other global.
This means that all global needs to be mapped before we can lower their
expressions
Fixes #6984
2024-12-03 15:52:48 +01:00
Olivier Goffart
461beb80cd
Fix purity check for focus()
on custom component
...
Do the purity check before doing the transformation of the `focus()`
function, so the source location of the error is the most accurate
Fixes #6979
2024-12-03 15:52:33 +01:00
FloVanGH
0d1412afc5
removed skip-taskbar property from window ( #6982 )
2024-12-03 10:07:36 +00:00
FloVanGH
901afde11f
api review: callback parameters and properties name adjustements
2024-12-02 16:22:39 +00:00
Olivier Goffart
8efdcb332d
Don't allow Menu without experimenal support
...
Previous attempt which included changing `lookup_type_for_child_element`
to check for `is_internal` failed because internal types shouldn't be
enabled in experimental mode, actually
We already have a function that removes the experimental types from the
TypeRegister, so do the same for MenuBar
2024-12-02 16:03:28 +01:00
crai0
e4b70efe6e
compiler: Warn user when immediately converting gradient macro to color ( #6956 )
...
Fixes #6819
2024-12-02 13:05:38 +01:00
Olivier Goffart
459fad7528
Janitor: fix comments in builtins.slint
...
The compiler is using StyleMetrics
2024-12-02 11:08:35 +01:00