Simon Hausmann
68a4e15cff
Fix link to images docs
...
Fixes #6408
2024-10-01 10:06:36 +02:00
Aurindam Jana
64ef62cd87
Docs: Show version warning banner
2024-10-01 01:28:13 +02:00
Aurindam Jana
1f64b0ba66
Add sitemap and improve docsearch scraper
2024-10-01 00:14:13 +02:00
Aurindam Jana
2933badba9
Update search bar styling in docs for mobile devices
2024-09-30 09:51:49 +02:00
aurindam
b2016239d1
Searchbar css tweaks
2024-09-27 23:07:58 +02:00
Aurindam Jana
3e96d0f930
Add Typesense Search ( #6314 )
...
Co-authored-by: aurindam <aurindam@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-09-27 20:18:41 +02:00
aurindam
dc4aaf7540
Sphinx Book Theme: disable "edit page" button
2024-09-25 23:16:16 +02:00
Simon Hausmann
8e69b88562
Fix injection of syntax highlighting and preview into Slint docs
...
The sphinx book theme uses a different base HTML file and different blocks, than furo.
Amends 2d58ead4f4
2024-09-25 15:26:22 +02:00
ogoffart
eb273a63ee
Bump version number to 1.9.0
2024-09-25 11:49:15 +00: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
aurindam
2d58ead4f4
Change to Sphinx Book Theme
2024-09-24 11:15:55 +02:00
Simon Hausmann
69ad7e3671
doc: Fix comment in main template for C++ quickstart guide
2024-09-23 16:21:53 +02:00
Simon Hausmann
4c3ca9ba17
Fix C++ quickstart
...
The C++ code to copy & paste into main.cpp needs to have the #include
<app-window.h> line.
2024-09-23 16:14:06 +02:00
Simon Hausmann
30c6668d35
Add macOS 15 to supported platforms
2024-09-23 11:09:43 +02:00
Enyium
9894eca229
Fixed kebab casing of previous appwindow.slint
.
2024-09-20 10:26:49 +02:00
Simon Hausmann
cd2b738c7a
Rename SwipeGestureRecognizer to SwipeGestureHandler
...
The origin of this proposal is the name of the `swipe-left`, etc.
directional, boolean properties. They're missing another verb in their
name. In principle the right choice would be "recognize". That is what
the type name suggests, that's the term the documentation uses, so the
code should read `recognize-swipe-left: true;`. However that is a long
word. "Handle" is a verb that's simpler. It's also more generic (that's
a downside), but it's otherwise short enough to make things look
"right":
```
SwipeGestureHandler {
handle-swipe-left: true;
swiped => { something.naviate-left(); }
}
```
Therefore this patch proposes to rename the type to SwipeGestureHandler
and prefixes the boolean directional properties with "handle".
2024-09-18 16:37:27 +02:00
Simon Hausmann
ddfbd1821a
For our Rust, C++, and Node.js templates, recommend the use of a zip archive download instead of git
...
This removes any git history of ours from the download, and removes the need to have git installed.
2024-09-18 10:48:38 +02:00
Olivier Goffart
bcdc3e1cee
Timer: make the interval
property mandatory
...
A default of 0 is not a great default because that's way too often
2024-09-18 09:24:39 +02:00
Olivier Goffart
02467bd4cc
Change mod()
to always return positive number ( #6179 )
...
* Change `mod()` to always return positive number
Closes #6178
ChangeLog: The mod function was changed to always return a positive value (#6178 )
2024-09-17 11:37:32 +02:00
Olivier Goffart
21d60b1050
Fix the documentation of the absolute-position property
...
It is an `out` property (read-only)
Fixes #6174
2024-09-17 08:52:32 +02:00
chenren
a7e74b0def
docs: translation is not supported on Windows
2024-09-14 07:19:34 +02:00
Simon Hausmann
b8c6a09a94
doc: Simplify Getting Started for Rust
...
There's no need anymore to use cargo-generate.
2024-09-11 10:05:40 +02:00
Olivier Goffart
0c8a9fcefb
Fix compiler panic when accessing path.commands in expressions
...
Fixes #5564
2024-09-10 13:36:09 +02:00
Olivier Goffart
5663ddd9cc
SwipeGestureRecognizer ( #6005 )
2024-09-09 14:40:55 +02:00
Olivier Goffart
0feb674612
unmark changed callback as experimental
...
Closes #112
2024-09-09 14:40:16 +02:00
Nigel Breslaw
482308f5da
Add Math.atan2 to the inbuilt math function
...
Math.atan2(y, x) -> angle
2024-08-30 09:55:10 +02:00
FloVanGH
039f33eaae
Added scrolled callback to ListView and ScrollView ( #5964 )
2024-08-27 10:18:43 +00:00
Olivier Goffart
302b23b020
docs: add a note that z
needs to be a compile time constant
...
As mentioned in https://github.com/slint-ui/slint/issues/221#issuecomment-2306360643
2024-08-23 12:05:08 +02:00
Olivier Goffart
48de17f5c6
Update Timer documentation
...
Apply suggestions from code review
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-08-16 16:36:38 +02:00
Olivier Goffart
a9f526491a
Timer Element
...
Closes #5724
2024-08-16 16:36:38 +02:00
ogoffart
4dd7d96a28
Bump version number to 1.8.0
2024-08-15 12:44:46 +00:00
Simon Hausmann
782bf6e7c6
Minor tweak to the quickstart guide
...
Apply #5618 also to the quickstart guide.
2024-08-13 15:02:43 +02:00
Simon Hausmann
227bd78150
Change Rust Quickstart to use the Rust template
...
This reduces duplicated documentation and fixes two bugs. One minor additional change is that Rust code from the game logic chapter can now safely be copied, because the tiles variable is cloned in the previous step.
Fixes #5825
Fixes #5824
2024-08-13 15:02:43 +02:00
Olivier Goffart
51481b101c
Make conversion from float to int property truncate
...
- Make sure that in Rust and C++ we also truncate if the properties are
inlined
- Change the interpreter to truncate
This is a redo of commit f5d003d
but truncate instead of round
fixes #5689
2024-08-10 14:51:05 +02:00
ogoffart
bbf7edc5a3
Bump version number to 1.7.2
2024-08-09 09:52:17 +00:00
Olivier Goffart
916d6cd186
brighter/darker: Add docs that specify that we go in the HSV color space
...
Just copy the sentences from the rust docs for slint::Color
Closes #5753
2024-08-06 16:43:45 +02:00
Kevin Moonen
34f1a990d7
Clarify that generated <kind>_clicked callbacks are aliases
...
My assumption from reading the docs was that the `StandardButton`s
delegated to the root and that the generated callbacks in the root
were to facilitate that behavior.
2024-07-31 07:25:41 +02:00
botent
17f71a3b15
Typos-Fix: Getting Started Docs
2024-07-30 21:52:37 +02:00
Simon Hausmann
9a34789070
Revert "Fix conversion to from float to int"
...
This reverts commit f5d003d1e2
.
We decided to postpone this change until a later release, in maybe a
different shape.
2024-07-25 15:25:00 +02:00
Olivier Goffart
f5d003d1e2
Fix conversion to from float to int
...
Round the value.
The previous behavior is that
- For the interpreter, we were rounding (same as new behavior)
- for Rust and C++ we were truncating, unless the properties were
inlinined and then we were keeping it as float
2024-07-23 17:32:57 +02:00
ogoffart
aa25e3cd44
Bump version number to 1.7.1
2024-07-23 12:05:34 +00:00
Simon Hausmann
97ac7138c1
Clarify the use of file vs. directory references in library paths
2024-07-19 11:45:40 +02:00
Simon Hausmann
167ca4bc3b
Library Docs: Mention how to add library paths with C++/CMake
2024-07-19 11:45:40 +02:00
Danut Enachioiu
7d00f0a80b
Clarify that init callback can't be used from backend code and why ( #5645 )
2024-07-18 21:55:01 +02:00
Simon Hausmann
7141e5fa3d
Fix broken note rendering
...
colon_fence in myst still requires curly braces to render the directive correctly.
2024-07-17 10:58:43 +02:00
Simon Hausmann
36bef5a483
API review: clean up Time/Date struct docs
...
- Remove `struct Date` and `struct Time` from the widgets side bar
- Move it to the bottom of each page
- Link to it from the respective properties
2024-07-10 15:54:11 +02:00
Simon Hausmann
25dbba7053
doc: Rename DatePicker
and TimePicker
to DatePickerPopup
and TimePickerPopup
2024-07-10 15:38:44 +02:00
Chris Chinchilla
da0769ade6
Audit language concepts ( #5497 )
...
* Draft
* Feedback
2024-07-10 14:48:54 +02:00
Florian Blasius
6e2013e4ff
API Review: DatePicker and TimePicker ( #5582 )
2024-07-09 22:16:54 +02:00
teknalb
1b9a5e308a
fix-some-doc-typos
2024-07-08 11:55:38 +02:00