Ryan Naddy
58efd5312b
Added rejected to TextInput ( #6649 )
2024-10-25 17:24:47 +02:00
Simon Hausmann
a98d4709be
Move printer demo and energy-monitor into new top-level demos/ folder
...
These are showing off use-cases for Slint, but they're not examples showing individual Slint features.
Also removed the old printerdemo while at it.
2024-10-25 12:09:32 +02:00
Simon Hausmann
acafc9c3e6
Add default value to the docs of accessible-enabled
.
2024-10-25 10:20:09 +02:00
DataTriny
2de3b9d455
Add the accessible-enabled
property
2024-10-25 10:20:09 +02: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
Aurindam Jana
d9e40caff9
Update Slint docs css for dark mode
2024-10-21 14:24:28 +02:00
Tasuku Suzuki
2df734e0c1
doc: Fix typo in plurals example
...
When the score is not one, plural form should be used
2024-10-21 09:08:35 +02:00
Aurindam Jana
5032ff1943
docs: apply FOUT fix for Safari only
2024-10-18 22:05:11 +02:00
Arnold Loubriat
504f87a212
Fix documentation
...
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2024-10-16 15:38:46 +02:00
Arnold Loubriat
bae1a4d242
Document the accessible-selectable
and accessible-selected
properties
2024-10-16 15:38:46 +02:00
Olivier Goffart
66ebcbd1b7
Janitor: fix wording of the building.md docs
2024-10-16 15:30:23 +02:00
Simon Hausmann
739c057759
Add codemirror integration to pnpm workspace
...
That way we get lint/format checks
2024-10-15 09:39:42 +02:00
Simon Hausmann
84aabae54d
Fix biome formatting with codemirror JS
2024-10-15 09:39:42 +02:00
Simon Hausmann
3b9a2027f7
Fix biome lints in codemirror JS
2024-10-15 09:39:42 +02:00
Simon Hausmann
c2ebe3ca2a
Remove traces of mdbook
...
- We don't use it anymore, so this saves us time in the CI
- Remove the completely mis-placed README and moved the typesearch relevant sections as a sub-section under "Building Documentation"
2024-10-14 17:05:27 +02:00
Aurindam Jana
463031b6d8
Use Editor in Docs ( #6451 )
2024-10-14 15:19:29 +02:00
FloVanGH
f01ac8fc39
node: added url support to loadFile ( #6507 )
2024-10-10 11:43:32 +00: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
Olivier Goffart
552e4c0520
Janitor: update docs to new syntax
2024-10-08 11:03:32 +02:00
Simon Hausmann
0b028bfb6f
Add support for a font-metrics property to Text/TextInput. ( #6452 )
...
The struct held provides access to the design metrics of the font scaled
to the font pixel size used by the element.
ChangeLog: Slint Language: Added font-metrics property to `Text` and `TextInput`.
Closes #6047
2024-10-05 17:00:46 +02:00
Enyium
cb2a386c40
Improved GridLayout
docs. ( #6368 )
...
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-10-02 11:38:32 +02:00
Olivier Goffart
d6706494a5
Binding between a read only property to input-output is deprecated ( #6419 )
...
ChangeLog: deprecated two way binding between `in` and `in-out` property
Fixes #6400
2024-10-01 16:00:06 +02:00
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
Simon Hausmann
e41c2faaf3
Initial import of a basic style guide for docs, blog posts, and social media ( #6389 )
...
cc #4321
2024-09-30 18:02:24 +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
Olivier Goffart
fc324a4db2
Update MSRV to 1.77
2024-09-26 09:14:58 +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
Olivier Goffart
f3ba16c5cf
Revert release preparation
...
1.8.0 was released. Cleanup
This reverts commit ca66a6af4a
.
This reverts commit 98fde8c543
.
This reverts commit 45bb5b34b6
.
This reverts commit 3b891acef2
.
2024-09-23 15:36:16 +02:00
Olivier Goffart
45bb5b34b6
update slint-docs-preview.html for release
...
(Should have been part of last commit but wasn't commited together)
2024-09-23 12:12: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
Simon Hausmann
5a1d0617c8
Add STM32 "SDKs" to the releaes artifacts table ( #6176 )
...
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2024-09-17 08:54:10 +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
Olivier Goffart
c82ff11419
Adjust the nightly script to the fact that the cpp artifact are named differently
2024-09-14 09:04:03 +02:00
chenren
a7e74b0def
docs: translation is not supported on Windows
2024-09-14 07:19:34 +02:00
Olivier Goffart
f415893f4b
Nightly template: add instruction on how to use "nightly" slint ( #6120 )
2024-09-12 17:20:47 +02:00