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
Olivier Goffart
cec9818123
Revert "Prepare for 1.3.0 release"
...
This reverts commit e63720b341
.
Release was done, this can be removed
2023-11-10 11:04:33 +01:00
Olivier Goffart
e63720b341
Prepare for 1.3.0 release
...
add Cargo.lock and set the version number in the docs
2023-11-10 08:22:56 +01:00
Olivier Goffart
e25a19cbe8
Docs: adjust style documentation to the new behavior in 1.3 ( #3879 )
...
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-11-08 09:11:19 +01:00
Florian Blasius
110689bad1
Added Spinner widget ( #3871 )
2023-11-07 15:04:24 +01:00
Simon Hausmann
1a064e09a8
Node.js tutoria: Don't mention a main function
...
No such function exists
2023-11-07 09:04:32 +01:00
Simon Hausmann
7576ea71f2
Node.js tutoria: Use await when calling run()
...
As it happens, the run() call is the last call in the app, so it also works without
await. But the moment somebody
adds code after run(), they'd be surprised
that it gets called
"before" run. So await for good measure.
2023-11-07 09:04:32 +01:00
Simon Hausmann
ee096f4386
Fix Node.js tutorial's package.json
...
Require 1.3.0, as the sources use API from that version.
2023-11-07 09:04:32 +01:00
Simon Hausmann
2acaa222d0
Provide some "bare-bones" documentation for component libraries ( #3865 )
...
Sadly, this makes it a bit more obvious that this feature is practically only
available to Rust devs using build.rs
at the moment.
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2023-11-06 18:33:03 +01:00
Simon Hausmann
849b583b77
doc: update the tutorial README to mention the node tutorial
2023-11-06 17:39:13 +01:00
Simon Hausmann
7b61e455eb
Initial implementation of a Slint event loop sitting on top of Node.js
...
At the moment this is implemented using polling.
cc #2477
2023-11-06 11:37:45 +01:00
Ken Carpenter
b20536131f
Add more easing formulas ( #3812 )
...
Closes #2655
2023-11-03 09:20:44 +01:00
Simon Hausmann
55085d43af
Fix Node.js version of memory game not working properly ( #3789 )
...
The rules require comparing if tiles are equal, which used to be a string comparison as we just
converted the image to a path. With ImageData this doesn't
work anymore, so this patch proposes an optional path
property that makes the code also a tad bit more readable.
2023-10-31 08:50:32 +01:00
Simon Hausmann
131dd136df
doc: add missing links from repeaters to array/model docs
...
Pointed out by a kind user :-)
2023-10-27 17:12:49 +02:00
Olivier Goffart
a67735b5d5
Document the limitations of the software renderer
...
Related discussion: https://github.com/slint-ui/slint/discussions/3782
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-10-27 10:08:13 +02:00
Florian Blasius
0045787e1c
node: api review adjustements part I ( #3766 )
...
* Update api/node/src/types/brush.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update tests/cases/callbacks/handler_with_arg.slint
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2023-10-26 10:02:49 +02:00
Florian Blasius
bf77b064ab
Replace neon node port ( #3744 )
...
* Update api/node/README.md
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>
2023-10-24 15:07:59 +02:00
Tobias Hunger
3c4c747198
docs: Mention debug()
in debugging docs ( #3731 )
...
* docs: Mention `debug()` in debugging docs
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2023-10-24 12:20:26 +02:00
Simon Hausmann
d6ab1c4882
Document the explicit choice of Skia as software renderer as well as its support in general
2023-10-23 13:55:23 +02:00
Florian Blasius
3e3dd03566
Added focus-changed-event callback to FocusScope ( #3650 )
2023-10-17 17:30:19 +02:00
Simon Hausmann
b34e365701
doc: Add missing space as word separator
2023-10-17 13:32:32 +02:00
Tobias Hunger
b12575a4c4
janitor: Go over our spell checking setup
...
* Extend the cspell word list
* Remove those extensions from individual source files
* white-list licenses and such as we should not meddle with those
* Fix spelling
2023-10-16 09:01:51 +02:00
Simon Hausmann
f2d09eb2c8
Document one more skia armv7 build caveat
...
Sadly I could not find a reliable way of retrieving this from within
CMake (as for example CMAKE_CXX_FLAGS is already folded into
CMAKE_CXX_COMPILER_ARG1 by the the time our cmake code runs), so
document this as a workaround for now.
2023-10-11 15:59:01 +02:00
Simon Hausmann
aece085213
doc: mention support for line-by-line rendering in the software renderer overview
2023-10-11 11:42:35 +02:00
Olivier Goffart
8f001ac490
Add support for protected functions
...
Protected function can only be called from the direct base
Issue #3636
2023-10-11 10:50:50 +02:00