Commit graph

880 commits

Author SHA1 Message Date
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
Simon Hausmann
4d91610634 Document how to set the style from Node.js
cc #4471
cc #4540
2024-02-05 11:35:00 +01:00
Olivier Goffart
9200480b53 Fix a few links to the docs that changed with the new structure 2024-02-03 09:38:49 +01:00
Chris Chinchilla
ba98a89e9b
Use Rust project templates as basis for current tutorial (#4488)
Uses the Rust project template to refactor the tutorial and numerous grammar and language changes.
2024-02-02 16:55:11 +01:00
Simon Hausmann
f766f30c3b Revert "Prepare 1.4.1 release"
This reverts commit 0984170cb3.

The release is done.
2024-02-02 11:38:08 +01:00
Simon Hausmann
0984170cb3 Prepare 1.4.1 release 2024-02-02 09:31:51 +01:00
Truman Kilen
bfc2283dd5 Fix mentioned lang in docs 2024-02-01 17:10:56 +01:00
ogoffart
fec2b961db Bump version number to 1.4.1 2024-02-01 09:12:42 +00:00
Simon Hausmann
aad3ad1f7b Revert "Prepare 1.4.0 release"
This reverts commit c31b621cb5.

The release is done.
2024-01-31 11:35:18 +01:00
Simon Hausmann
c31b621cb5 Prepare 1.4.0 release
Also downgrade precies to match commit 212e28071c
2024-01-31 09:16:58 +01:00
Chris Chinchilla
607e325ed4
Add more details to the building read me for docs (#4414)
Add more details to the build read me file on how to build the individual docs components.
2024-01-25 10:29:15 +01:00
Simon Hausmann
93142bf417 winit: Always make skia-opengl available
The Skia OpenGL renderer is portable and sometimes esp. on Windows produces better results, so make it always available as an open if `renderer-skia` is enabled. `renderer-skia-opengl` continues to select the GL renderer as default.
2024-01-24 18:20:04 +01:00
Simon Hausmann
9f440c2699 Node.js: Document global singletons 2024-01-23 17:51:01 +01:00
Simon Hausmann
e619a50601
Clarify TouchArea docs with regards to clicking and touching (#4409)
Mention that clicked is limited to the left mouse button, or any finger of course.

Fixes #4213
2024-01-23 17:45:56 +01:00
Florian Blasius
1ca8ff517e
Added cosmic style for std-widgets. (#4350) 2024-01-16 13:21:17 +01:00
Simon Hausmann
17a49cb22c doc: trim vulkan/drm mode list selection example and clarify the meaning of "output" 2024-01-12 17:32:56 +01:00
Simon Hausmann
2b699c2189 LinuxKMS: Add support for selecting display modes with DRM output 2024-01-12 17:32:56 +01:00
Olivier Goffart
4a1a7b1f7e Fix slint warnings in the docs 2024-01-12 09:24:51 +01:00
Daniel
807a233849
feat: Add Key.Space to Key namespace. (#4311) 2024-01-10 16:25:31 +01:00
Tobias Hunger
ad026d2a4c core: Change double-click to always send clicked first
Change the double-click implementation to send after two click events
were sent first.

This gets rid of the wait when a double-click handler is installed
before delivering the click.
2024-01-10 11:41:55 +01:00
Aurindam Jana
ae9ec50eef Update index.html for docs 2024-01-08 15:25:31 +01:00
Jason Birbal
8fde827055
Document dependencies and add figma_import in the workspace (#4278)
- Compile figma_import as part of the workspace
 - Updated readme to reflect dependencies and workspace build instructions
2024-01-08 11:32:54 +01:00
Simon Hausmann
05079f79fb doc: Fix typo 2024-01-08 10:08:05 +01:00
Simon Hausmann
982b4c806f LinuxKMS: Add initial support for software rendering with Skia
This is the initial implementation based on DRM dumb buffers,
which cleans up various things at the same time:

 - DRM output is separate from GBM and DRM dumb buffer displays.
   The latter two re-use the former.
 - The timer refresh for the Vulkan KHR Display rendering lives
   now with the KHR display code, in hope to be replaced with a
   better mechanism in the future.

What's missing still is support for partial updates as well as
rendering with our own software renderer.
2024-01-07 11:54:29 +01:00
Brandon Fowler
3e8940660b
Add set-selection-offsets function to TextInput, TextEdit, and LineEdit (#4197)
The function accepts two arguments that specify the start and the end of the text to select.

Fixes #4164
2024-01-06 11:12:53 +01:00
Olivier Goffart
0ca42445c1 Janitor: fixup markdown typo 2023-12-29 13:54:16 +01:00
Simon Hausmann
81a636bb5f Exclude python module from workspace wide cargo test
It doesn't quite compile like that
2023-12-21 12:57:35 +01:00
Simon Hausmann
3b51c8e30a
LinuxKMS: Add support for synthetic display rotations (#4166)
This patch adds support for the `SLINT_KMS_ROTATION` environment
variable, that instructs the Skia/FemtoVG renderers to rotate
the scene before rendering.
2023-12-18 17:49:05 +01:00
Florian Blasius
e587c09d9c
Added colorize-icon to Button (#4152)
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-12-14 12:07:55 +01:00
Simon Hausmann
cca6081d01 doc: Simplify Node.js test driver instructions
tests/driver/nodejs/nodejs.rs runs npm install --ignore-scripts
and npm run build:debug before running the tests, so no extra
steps should be needed.
2023-12-12 14:37:32 +01:00
Simon Hausmann
85fea499ed doc: Separate groupbox docs into a file of its own
That was probably an oversight
2023-12-12 09:26:30 +01:00
Simon Hausmann
c1841fdfbe Add support for compiling the linuxkms backend without libseat support 2023-12-11 17:36:17 +01:00
Florian Blasius
6da8120dfa
added palette global (#3984)
* Update docs/reference/src/language/builtins/globals.md

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Update docs/reference/src/language/builtins/globals.md

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Update docs/reference/src/language/builtins/globals.md

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Update docs/reference/src/language/builtins/globals.md

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Update docs/reference/src/language/builtins/globals.md

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>


---------

Co-authored-by: Florian Blasius <florian.blasius@slint-ui.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
Co-authored-by: Florian Blasius <flovansl@fedora.fritz.box>
2023-12-11 14:44:05 +00:00
ogoffart
b081c489d6 Bump version number to 1.4.0 2023-12-11 11:21:37 +00:00
Tobias Hunger
9737720cf2 touch-area: Trigger pointer-evnet on mouse move
Trigger the `pointer-event` callback on mouse move. This is of "kind"
Move and the mouse button will always be `Other`, but at least the mappings
will be correct:-)

Closes: #2770
2023-12-11 09:07:44 +01:00
Tobias Hunger
2bdcbc8e9f
core: Add a double-click callback to the TouchArea (#4060)
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2023-12-08 12:12:41 +01:00
Olivier Goffart
9bb61b8ec6 Revert "Prepare 1.3.2 release"
This reverts commit 1d41f0b402.

Release is done
2023-12-01 14:51:58 +01:00
Olivier Goffart
1d41f0b402 Prepare 1.3.2 release 2023-12-01 09:11:02 +01:00
ogoffart
b9255ab8e2 Bump version number to 1.3.2 2023-12-01 08:05:15 +00:00
Simon Hausmann
d69bb1f5c1
Document the preferred linear history approach a little (#4034)
... including some example commands how to do it.
2023-11-30 11:01:53 +01:00
Olivier Goffart
f07e05c08b Revert "Prepare for 1.3.1 release"
This reverts commit 76009f199d.

Release is done
2023-11-28 10:26:00 +01:00
Olivier Goffart
76009f199d Prepare for 1.3.1 release 2023-11-28 09:22:48 +01:00
Olivier Goffart
e6d15576a3
Docs: remove non-existing properties in TabWidget (#3998)
These were added by commit eec9d31809 but
they are compiler internal properties that are not available to users,
or just don't exist

Discussed in https://github.com/slint-ui/slint/discussions/3995
2023-11-24 08:56:01 +01:00
ogoffart
0a5bf6c37b Bump version number to 1.3.1 2023-11-23 07:47:07 +00:00
Tobias Hunger
2ad8774a61 Add clamp function to slint language 2023-11-22 12:27:54 +01:00
Olivier Goffart
c695869344 Fix typo in docs 2023-11-17 14:31:25 +01:00