Simon Hausmann
31767eb6ab
Add a clear-focus()
function on all elements that have a focus()
function
...
This is the counter-part, which removes focus from the element if it's currently focused. The window - if focused - may still be focused towards the windowing system.
2024-04-26 11:09:11 +02:00
aurindam
e321ef70a9
Update from slint-ui/website
...
Update index.html from commit 1612058b9201f5bb0925c76ee3910c806c41e1be (refs/heads/prod)
2024-04-24 00:59:34 +00:00
Olivier Goffart
0dd8cd257a
Documentation for the accessible-action
2024-04-18 19:17:35 +02:00
Scott B
4bf8e788c4
Quickstart Rust Example Fix: Add x value for left Rectangle. ( #5091 )
2024-04-18 17:41:11 +02:00
claudex
2b81d5359d
Typo on TextEdit doc
...
Fixes extra ` after link.
2024-04-17 15:41:24 +02:00
Olivier Goffart
0f05089d5e
Polish the C++ and Rust HSV API
2024-04-15 18:18:00 +02:00
Olivier Goffart
f1192673cb
Slint: use to-hsv() to access hsv color
2024-04-15 18:18:00 +02:00
Luke D. Jones
0b1ec5e4c9
Convert to struct field access and make HsvColor public
2024-04-15 18:18:00 +02:00
Luke D. Jones
d4a3f77877
feat: color: add HSV methods to slint
2024-04-15 18:18:00 +02:00
Simon Hausmann
ae2e0197f8
Deprecate the use of StyleMetrics for users of the public API ( #4947 )
2024-04-15 17:07:05 +02:00
Simon Hausmann
a61ca93cd1
doc: Attempt to clarify how the factor of color's mix() function is applied
2024-04-15 09:05:54 +02:00
Simon Hausmann
8e3728864e
Fix markup of mix function in slint docs
...
Markdown doesn't have \a for arguments, that's doxygen.
2024-04-15 09:05:54 +02:00
Simon Hausmann
aebc7570c8
doc: For the Skia build, add the xcode command line tools SDK issue to the troubleshooting
...
Closes #5043
2024-04-12 15:40:07 +02:00
Simon Hausmann
89eaac9d02
doc: Fix mismatch of gallery vs. my_application in the translation docs
...
bindtextdomain was called with "my_application", but the rest talked about gallery. I switched all to the former, but it could also be the latter.
2024-04-12 13:04:38 +02:00
aurindam
2f38455cfc
Update from slint-ui/website
...
Update index.html from commit 15a472ac6d42c7238ed9fad8154cb9f55a1fd36b (refs/heads/prod)
2024-04-07 02:56:31 +00:00
aurindam
dfa833250f
Update from slint-ui/website
...
Update index.html from commit 582d8cbaa5144b9116916fcda2ab1b76e0b9b8d4 (refs/heads/prod)
2024-04-04 14:04:55 +00:00
Chris Chinchilla
7afa34a7e1
Rename tutorial to quickstart ( #4941 )
2024-04-04 13:26:24 +02:00
Aurindam Jana
5ea8a91381
Update the releases and snapshots url in slint-docs-preview.html
2024-04-03 15:17:39 +02:00
Aurindam Jana
5a36de73c6
Add version info to index.html when publishing docs
2024-04-02 19:57:57 +02:00
Bedis Nbiba
edc46a0839
doc: fix js error
2024-03-31 09:30:18 +02:00
Olivier Goffart
fd4dcfc128
Update MSRV to 1.73
...
A MSRV update is required to update the image crate to 0.25, otherwise
we get link error that are ficed in newer version.
Also other dependency update such as env_logger needs a newer MSRV.
Update to 1.73 because it has functions like `with_borrow` on thread
storage which we already actually use in some platform.
This is also the last release before the the drop of macOs < 10.12
in Rust 1.74
2024-03-27 09:04:31 +01:00
ogoffart
6bf40989d9
Bump version number to 1.6.0
2024-03-27 07:49:22 +00: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
Simon Hausmann
ccc92e6143
doc: Explain how gradients can be expensive to render.
2024-03-26 14:53:14 +01: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
Olivier Goffart
74d0dafb9c
docs: delete docs for property that doesn't exist
...
Discussion on https://github.com/slint-ui/slint/pull/4899#issuecomment-2012072132
2024-03-21 13:01:19 +01:00
Aurindam Jana
c2c289c122
Update index.html under docs/site
2024-03-20 23:57:37 +01:00
Aurindam Jana
58d62befa3
Update index.html for docs
2024-03-20 16:39:25 +01:00
Olivier Goffart
9885c4744a
docs: fix cut of sentence
...
Restore the text that disappeared in commit eec9d31809
2024-03-20 16:13:29 +01:00
Laurent Montel
7ab34410ef
It seems that syntax_tests.rs was moved to ./internal/compiler/tests/
2024-03-18 14:58:41 +01:00
ogoffart
20c570ab1d
Bump version number to 1.5.1
2024-03-18 08:55:01 +00:00
Ikko Eltociear Ashimine
a1c283629e
chore: update torizon.md
...
paramter -> parameter
2024-03-16 18:00:30 +01:00
Olivier Goffart
b7bd6f574b
Revert "Prepare for release"
...
The release was released
This reverts commit 7df9b3cbb7
.
2024-03-14 12:20:52 +01:00
Olivier Goffart
7df9b3cbb7
Prepare for release
2024-03-14 09:44:58 +01:00
Olivier Goffart
1d40f9ed78
Update backends_and_renderers.md
...
to mention that Qt is only built by default on Linux
2024-03-13 23:24:31 +01:00
Luke D. Jones
8c60cc74be
feat: color: add channel properties to color
...
Add extra properties to the `color` type.
- `red`
- `green`
- `blue`
- `alpha`
2024-03-12 09:42:30 +01:00
Chris Chinchilla
0409cb0140
Changes to the WASM stage of the Rust quickstart
2024-03-12 09:20:30 +01:00
Chris Chinchilla
0095d65696
Small consistency fixes and typos across quickstarts ( #4813 )
2024-03-11 17:34:27 +01:00
Chris Chinchilla
9345638191
Refactor CPP Quickstart to use project template project ( #4722 )
...
* Refactor CPP Quickstart to use project template project
* Update docs/tutorial/cpp/src/main_initial.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update docs/tutorial/cpp/src/game_logic_in_cpp.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/tutorial/cpp/src/creating_the_tiles_from_cpp.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/tutorial/cpp/src/from_one_to_multiple_tiles.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/tutorial/cpp/src/from_one_to_multiple_tiles.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/tutorial/cpp/src/getting_started.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Remove commented text
* Re-add removed powershell icon commands
* Undo rename
* Correct path in CMakeLists.txt
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-03-11 15:09:01 +01:00
Chris Chinchilla
203259f024
Refactor JavaScript example to use template project ( #4758 )
...
* Refactor JavaScript example to use template project
* Feedback
* Update docs/tutorial/node/src/getting_started.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-03-08 13:20:37 +01:00
Olivier Goffart
255dc59ef4
Rename @image-url(..., 9slice(...))
to @image-url(..., nine-slice(...))
...
As per API review:
- In the Rust and C++ API we use `set_nine_slice_edges` because the getter couldn't start with 9
- in english we spell number less than 10 with letters and this is a name
2024-03-07 17:01:57 +01:00
Simon Hausmann
9599bb7710
doc: Add troubleshooting note about skia builds on windows with older MSVC versions
2024-02-26 15:02:09 +01:00
Paul Zinselmeyer
73e05aebdb
Added flicked
-Callback on Flickable
...
As requested in #1462 , I've added a `flicked`-Callback that gets
triggered when the `viewport_x`- or `viewport_y` -Properties are changed
by a mouse drag or mouse wheel movement.
2024-02-26 12:17:31 +01:00
Olivier Goffart
5e7ddf3a19
Image Tiling
...
(Doesn't work yet with 9slice)
2024-02-26 12:16:41 +01:00
ogoffart
a0eed4e58e
Bump version number to 1.5.0
2024-02-20 17:33:11 +00:00
Simon Hausmann
24f5bb5629
Fix typo
2024-02-15 07:36:07 +01:00
Olivier Goffart
7980eda7e1
Doc: add a not that export *
is only possible once per file
...
CC https://github.com/slint-ui/slint/issues/4613
2024-02-14 11:22:36 +01:00
Olivier Goffart
192ff07857
Documentation for 9slice
2024-02-13 14:46:27 +01:00
Olivier Goffart
ce6c7f5527
Image: add horizontal and vertical alignment
2024-02-08 18:59:26 +01:00
J-P Nurmi
51457025bf
Add BorderRectangle::border_top|bottom_left|right_radius
2024-02-06 18:01:35 +01:00