Olivier Goffart
88697c68bb
Remove license header from .md/.mdx files
...
They should be in the lines, but the problem is that this causes issues
in the .mdx files.
License header doesn't really make sense for .md files anyway
2025-12-04 21:58:09 +01:00
Olivier Goffart
c78dbd3d16
license_headers_check: The spdx identifier needs to be in its own line
2025-12-04 21:58:09 +01:00
Olivier Goffart
db81b1f916
CI: Install the latest version of reuse
2025-12-04 21:58:09 +01:00
Leon Matthes
077d3b6972
Add length to spans and diagnostics ( #9703 )
...
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
This allows diagnostics to cover not just a single character, but the
entire relevant code region.
ChangeLog: Diagnostics now indicate the range of the error/warning, not just the starting character
2025-12-03 17:56:01 +01:00
Olivier Goffart
977ae6a9c5
Fix exporting builtin global (such as Palette from Qt style) ( #10196 )
...
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
* Fix exporting builtin global (such as Palette from Qt style)
We would otherwise have errors in our generated code such as
`no 'NativePalette' in slint_generatedTestCase`
So we need to generate the public Rust/C++ API for the builtin globals
as well
2025-12-03 17:19:42 +01:00
Simon Hausmann
1f8ef6046e
CI: Restore intel binaries for the tools and the VS code extension's lsp build
...
Fixes #10190
2025-12-03 11:55:36 +01:00
Nigel Breslaw
9b2e9cd1ec
Add missing Home-automation link and screenshot ( #10195 )
2025-12-03 12:54:47 +02:00
taichi765
9e0204bee1
docs: Add description for orientation in TabWidget ( #10192 )
...
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
This is follow-up PR for #10094 .
2025-12-03 09:17:22 +01:00
Simon Hausmann
33eb83316a
CI: Fix typo
2025-12-03 06:39:48 +01:00
Simon Hausmann
a61fe11b71
CI: Prospective fix for 1.88 build_and_test crashing in the CI on Linux
...
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
Swap 1.88 and nightly between Linux and Windows
2025-12-02 16:47:34 +01:00
Simon Hausmann
2da1b1a601
Fix for —all-features build
...
Slint-Compiler will enable the dlopen feature, which must be also
conveyed to other consumers so that they can expect that API. One such
consumer is font-kit through the plotters example. We can't influence
the feature flags of that, so let's exclude the plotters build on Linux
for now.
2025-12-02 16:02:21 +01:00
Simon Hausmann
b76bd8e6e7
C++: Fix build against Yocto SDKs
...
When using `. environment-setup-*` against a Yocto SDK, we end up with PKG_CONFIG_PATH set to the target sysroot and the pkg-config binary coming out of Yocto SDK and always locating packages in the target.
That means the build of slint-compiler fails as it needs font-config from the host system, when enabling support for embedding glyphs.
In this scenario, enable the compiler/fontique to dlopen fontconfig instead.
2025-12-02 16:02:21 +01:00
Tasuku Suzuki
010f6e6810
Add Japanese translations for new menu items ( #10193 )
...
Translate "MenuItem with Icon" and "MenuItem with Checkmark" to Japanese.
2025-12-02 10:46:15 +01:00
taichi765
357423beba
TabWidget: Add orientation property to TabWidget ( #10094 )
...
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
autofix.ci / format_fix (push) Waiting to run
Fixes #3688
2025-12-01 15:25:50 +01:00
Montel Laurent
2b53cbe086
lineedit: add autotest for testing enable/read_only support ( #10189 )
2025-12-01 14:38:17 +01:00
Laurent Montel
abbc30d368
[textedit] don't allow to cut/paste action when it's readonly or disabled
2025-12-01 13:40:03 +01:00
Montel Laurent
ec5a84b263
Add Spinbox read only support ( #10133 )
2025-12-01 13:31:00 +01:00
Olivier Goffart
6e4a14d893
Docs: add missing SwipeGestureHandler in the list of element not filling their parent
2025-12-01 12:24:14 +01:00
Olivier Goffart
dd46e8fa8a
Docs: Rewrite the docs of ScrollArea to document actual behavior
...
Fixes #10185
2025-12-01 12:03:01 +01:00
Kristof Mattei
16b6101c40
LSP: add support for vscode-remote:// schemas ( #10182 )
...
I validated all usages of `"builtin` in the `lsp` crate, but
all occurrences found are actually referring standard slint components
Fixes #8089
2025-12-01 11:38:55 +01:00
Montel Laurent
1d0399c659
[switch] fix accessible_default_action when switch is disabled ( #10174 )
2025-12-01 11:31:55 +01:00
Ashley
710f0c1968
Styled Text: add a macro and functions for parsing markdown ( #10060 )
...
* Add markdown macro and parse/escape functions
* Markdown stuff
* Implement escape markdown, handle trailing literal sections
* add StyledText Type and Value
* Implement more things
* [autofix.ci] apply automated fixes
* Rename MarkdownText to StyledText
* Add comments and solve warnings
* Apply automated fixes
* Fill out styled text type
* Change rendertext trait to use enum
* Add allow missing docs to stuff
* Fix testing backend thing
* Move test
* Don't use std:: for certain types
* Fix api/node
* [autofix.ci] apply automated fixes
* Rename to StyledTextItem
* Ignore styledtext in cpp for now
* Remove whitespace change
* Add tests, cpp generator changes
* Add markdown interpolation tests
* Add more tests, some fixes
* Implement some StyledText things
* Fix sharedparley imports
* Manually implement StyledText cpp type
* [autofix.ci] apply automated fixes
* Fix escape and parse markdown functions
* [autofix.ci] apply automated fixes
* Add ignore pyi, documentation for cpp styled text
* Apply some suggestions
* [autofix.ci] apply automated fixes
* Add cpp functions for styled text
* [autofix.ci] apply automated fixes
* Add documentation
* Fix api exports
* class -> struct
* Gate exports behind shared-parley
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-01 22:58:56 +13:00
Olivier Goffart
cf36183a8c
editors/kate: Change the license to MIT ( #10184 )
...
So that we can upstream it in KDE repository
See https://github.com/slint-ui/slint/discussions/10154
2025-12-01 10:57:53 +01:00
dependabot[bot]
decc619b67
build(deps): bump the npm-minor-updates group across 1 directory with 5 updates ( #10186 )
...
* build(deps): bump the npm-minor-updates group across 1 directory with 5 updates
Bumps the npm-minor-updates group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [@figma/plugin-typings](https://github.com/figma/plugin-typings ) | `1.119.0` | `1.121.0` |
| [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki ) | `3.15.0` | `3.17.0` |
| [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight ) | `0.36.2` | `0.37.0` |
| [@playwright/test](https://github.com/microsoft/playwright ) | `1.56.1` | `1.57.0` |
| [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro ) | `5.15.9` | `5.16.3` |
Updates `@figma/plugin-typings` from 1.119.0 to 1.121.0
- [Commits](https://github.com/figma/plugin-typings/compare/v1.119.0...v1.121.0 )
Updates `shiki` from 3.15.0 to 3.17.0
- [Release notes](https://github.com/shikijs/shiki/releases )
- [Commits](https://github.com/shikijs/shiki/commits/v3.17.0/packages/shiki )
Updates `@astrojs/starlight` from 0.36.2 to 0.37.0
- [Release notes](https://github.com/withastro/starlight/releases )
- [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md )
- [Commits](https://github.com/withastro/starlight/commits/@astrojs/starlight@0.37.0/packages/starlight )
Updates `@playwright/test` from 1.56.1 to 1.57.0
- [Release notes](https://github.com/microsoft/playwright/releases )
- [Commits](https://github.com/microsoft/playwright/compare/v1.56.1...v1.57.0 )
Updates `astro` from 5.15.9 to 5.16.3
- [Release notes](https://github.com/withastro/astro/releases )
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md )
- [Commits](https://github.com/withastro/astro/commits/astro@5.16.3/packages/astro )
---
updated-dependencies:
- dependency-name: "@figma/plugin-typings"
dependency-version: 1.121.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor-updates
- dependency-name: shiki
dependency-version: 3.17.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-minor-updates
- dependency-name: "@astrojs/starlight"
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: npm-minor-updates
- dependency-name: "@playwright/test"
dependency-version: 1.57.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: npm-minor-updates
- dependency-name: astro
dependency-version: 5.16.3
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: npm-minor-updates
...
Signed-off-by: dependabot[bot] <support@github.com>
* [autofix.ci] apply automated fixes
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-01 11:15:20 +02:00
Olivier Goffart
0286f257ba
CI: fix ci_path_filter
...
Everything was matching 'internal' because I misunderstood how exclusion filter worked.
2025-12-01 09:50:09 +01:00
Pierre Freire
ade0195c55
fix(tree-sitter): support named parameters in callback signatures ( #10180 )
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
2025-11-30 10:04:53 +01:00
Simon Hausmann
d903afecef
Python: Fix tests in the CI having difficulties connecting to Xvfb
...
Instead of connecting to the X server, let's run the Python tests with the testing backend, like we do for test-driver-rust, test-driver-cpp, etc.
When building the Python package, pass --features backend-testing to Cargo, to forward to enabling the backend-testing feature in i-slint-backend-selector. That consequently enables SLINT_BACKEND=testing.
2025-11-30 10:02:36 +01:00
Olivier Goffart
af0b3822c6
BackendSelector: allow what SLINT_BACKEND accepts as backend name ( #10168 )
...
autofix.ci / format_fix (push) Has been cancelled
autofix.ci / lint_typecheck (push) Has been cancelled
autofix.ci / ci (push) Has been cancelled
So that we can use the BackendSelector from the slint-viewer
2025-11-28 18:42:22 +01:00
Montel Laurent
dcc1518e17
[slider] Add enable state autotest ( #10172 )
2025-11-28 17:32:20 +01:00
Montel Laurent
80a9f397d9
[checkbox] fix accessible-action-default when checkbox is disabled ( #10173 )
2025-11-28 17:27:45 +01:00
Olivier Goffart
25ec2fb589
Docs: fix wrong link
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
2025-11-28 11:12:31 +01:00
Olivier Goffart
59307db44b
Fix warning about redundant explicit link target
...
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
Since the 2024 edition, Future is in the prelude
2025-11-27 17:07:35 +01:00
Olivier Goffart
579cef451d
interpreter: fix unsafe in unsafe function warnings
2025-11-27 17:07:35 +01:00
Olivier Goffart
b3470206ff
Reformat after edition change
2025-11-27 17:07:35 +01:00
Olivier Goffart
423c5adaf9
Screenshot tests: test for skia rendering
2025-11-27 16:04:20 +01:00
Olivier Goffart
0376dfc04c
Screenshot test: move software renderer into feature/module
...
In preparation to add a Skia rendere
2025-11-27 16:04:20 +01:00
Simon Hausmann
37dbe7c1ec
Node.js: Don't run npm to install for dev dependencies that use a catalog url
...
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
That only works with pnpm or yarn, AFAICS.
2025-11-26 15:45:14 +01:00
burhankhanzada
ef9d5d5c0c
docs: Update language mod docs line.
2025-11-26 15:38:03 +01:00
burhankhanzada
3ab76828fc
docs: Clarify language module as containing built-in Slint types and add slint_doc attribute.
2025-11-26 15:38:03 +01:00
burhankhanzada
bd1b7a0d94
ci: re-enable ubuntu build
2025-11-26 15:38:03 +01:00
burhankhanzada
f9dfde1171
refactor: move ColorScheme to the new slint::language module
2025-11-26 15:38:03 +01:00
burhankhanzada
fdf518b4ed
refactor: use platform::Key for SlintKey import
2025-11-26 15:38:03 +01:00
burhankhanzada
3d6ef41fe5
refactor: remove i_slint_core and replace with private_unstable_api
2025-11-26 15:38:03 +01:00
Olivier Goffart
c8b864dbab
Screenshot tests: re-organize the test cases
...
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
- Remove "software" from the name in the testcases as we plan on
running these tests with several renderer
- Split into `image` and `text` directories
2025-11-26 13:35:08 +01:00
Simon Hausmann
16a96399b5
Python: Unpin ty type checker version
...
Match the name of the argument to please the type checker.
2025-11-26 11:30:10 +01:00
Olivier Goffart
25463bd782
C++: Fix warning about unused value if there is no bundled plurals translations
2025-11-26 11:11:07 +01:00
Olivier Goffart
59de54a1e4
Translations: allow to opt out of default context
...
Fixes #9955
2025-11-26 11:11:07 +01:00
Olivier Goffart
5b4c6847da
CI: increase granularity of the jobs
2025-11-26 10:56:09 +01:00
Simon Hausmann
15ff153c1e
CI: Add comment about why the version is pinned
2025-11-26 10:17:19 +01:00
Simon Hausmann
5e72094985
Python: Fix failing type check after new ty release
...
Pin to the previous version. See https://github.com/astral-sh/ty/issues/1644 for upstream report.
2025-11-26 10:14:38 +01:00