Olivier Goffart
31b3dc21c8
Documentation: document default values
...
As discussed in https://github.com/slint-ui/slint/discussions/2966
2023-06-27 12:29:53 +02:00
Simon Hausmann
bcca47615b
doc: Fix broken grammar
...
"Annotate custom the properties" -> "Annotate extra properties"
(extra instead of custom because that's how we introduced them earlier)
2023-06-27 11:00:01 +02:00
Simon Hausmann
246541f44a
Prospective fix for pipenv errors about invalid specifiers
...
PEP 508 requires a comparator for version_one, so specify some.
2023-06-27 10:13:39 +02:00
Simon Hausmann
ab4c8699ae
doc: Fix example of ProgressIndicator
...
Use 50% instead of 50 for the property that has a value between 0 and 1...
2023-06-26 16:52:41 +02:00
ogoffart
c8c9496722
Bump version number to 1.1.1
2023-06-26 12:50:02 +00:00
Olivier Goffart
e1c651d5df
Revert "Prepare for release by changing the URL in slint-docs-preview.html"
...
This reverts commit b1a01fb05a .
Release is done
2023-06-26 14:47:55 +02:00
Olivier Goffart
b1a01fb05a
Prepare for release by changing the URL in slint-docs-preview.html
...
Note that the Cargo.lock which is usually part of this commit was done
in a previsous commit
2023-06-26 12:42:11 +02:00
runiq
65712e89ae
Fix some links in Rust tutorial
2023-06-23 11:03:57 +02:00
Simon Hausmann
a259095353
Attempt at improving the preview of the GroupBox widget example
...
Put some real widget into it, so that it becomes visually clearer in the
preview that this is about grouping widgets - even if the fluent design
that's used in the preview has no frame around it.
2023-06-21 11:57:37 +02:00
Simon Hausmann
ab0e38c76d
Merge absolute-x and absolute-y "virtual" properties into absolute-position ( #2942 )
...
The type of thep property is `Point`, which existed before. It was
mapped to `slint::private_unstable_api::re_exports::Point` (euclid) and
is now mapped to slint::LogicalPosition (also in C++).
2023-06-21 08:17:57 +02:00
Florian Blasius
2656dfad7d
Refactor ProgressIndicator api according to api review. ( #2937 )
...
* Refactor ProgressIndicator api according to api review.
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Capping progress also for native.
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-06-20 12:27:48 +02:00
Aurindam Jana
83f789120b
Adapt docs front-page to new web design
...
https://github.com/slint-ui/slint/issues/2922
2023-06-20 10:57:03 +02:00
Simon Hausmann
533046ea06
Separate GroupBox and GridBox ( #2927 )
...
Fixes #2901
2023-06-19 22:47:32 +02:00
Simon Hausmann
9103b9172e
Various edits to the translations conceptual docs
2023-06-18 20:14:59 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Tobias Hunger
24c822dd60
xtask: Make docs MIT license
2023-06-16 09:14:20 +02:00
Tobias Hunger
04d1229685
Fix licnese information using xtask
2023-06-16 09:14:20 +02:00
ogoffart
641cab0e75
Bump version number to 1.1.0
2023-06-15 16:01:28 +00:00
Aurindam Jana
789cb3b735
Set MIT license to snippets under doc ( #2891 )
2023-06-15 11:21:16 +02:00
Simon Hausmann
401a6dda4d
Fix preview in SlintPad and VS code web extension ( #2871 )
...
The interpreter now creates the window typically in show(), so similar
to commit a8fcb5acd6 make show() return a
promise and invoke show() from within the event loop.
Amends d98c6773e1
2023-06-13 16:29:43 +02:00
Olivier Goffart
72de76b71a
Documentation for enums
2023-06-12 13:02:14 +02:00
Olivier Goffart
d8b0737b1d
Translations: disable gettext by default for C++ and the viewer
...
Can cause problem when compiling on windows or mac
2023-06-08 16:56:10 +02:00
Simon Hausmann
764c0f4c7f
Document the default context
...
As per #2850
2023-06-08 16:12:13 +02:00
Simon Hausmann
0ee603fe56
Rework the translation documentation
...
Provide an intro that outlines the overall steps, and then go into
details in each of them.
The C++ bit is marked with TODO, as I think we still have to sort out
some details there.
2023-06-08 16:12:13 +02:00
Simon Hausmann
031288b64c
Fix broken link to NodeJS docs
2023-06-08 08:45:56 +02:00
Olivier Goffart
4100c5e63c
Translations: documentation updates
...
Apply suggestions from code review
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-06-07 10:34:34 +02:00
Olivier Goffart
16edca0030
More documentation for translations
2023-06-07 10:34:34 +02:00
Olivier Goffart
12e6b34e2d
Translations: support for plurals
2023-06-07 10:34:34 +02:00
Florian Blasius
3ff8d072fb
Added current-row to StandardTableView ( #2831 )
...
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
---------
Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
2023-06-07 07:34:29 +02:00
Florian Blasius
94a0327af6
Add primary flag toButton ( #2820 )
...
* Add default flag to button
* Code review feedback
* Update CHANGELOG.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update examples/gallery/ui/pages/controls_page.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review feedback
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-06-06 15:41:23 +02:00
Olivier Goffart
e97a2e8229
Translations: support context
2023-06-06 14:48:48 +02:00
Simon Hausmann
1bf05eae7c
Add support for absolute-x and absolute-y properties on any element ( #2823 )
...
Fixes #1691
2023-06-06 14:37:53 +02:00
Olivier Goffart
1654077510
Add some documentation for translations
2023-06-05 16:34:59 +02:00
Jan Moeller
91d80996d8
docs(fonts): mention OpenType support
...
96aeffa added support for importing .otf files
2023-06-03 18:30:53 +02:00
Simon Hausmann
0f54b9599b
Add support for manually closing PopupWindows
...
This patch adds a `close()` function that can be called to close a popup
window, and a `close-to-click` boolean that can be set to false to
disable the default behavior.
2023-06-02 18:07:49 +02:00
Olivier Goffart
f7e61fdd37
Fix transparentize to multiply by 1-factor
...
Also add `[[nodicard]]` in C++
2023-06-02 17:02:08 +02:00
Olivier Goffart
5599bd44e0
Remove Color::opaque
...
It is not a right name and i don't think it is a so common operation
2023-06-02 17:02:08 +02:00
Olivier Goffart
cb4ef70d33
Fixup tests and and compilation with no_std
...
The interpolation now rounds the value, so the test needs to be adjusted
by one unit
2023-06-02 17:02:08 +02:00
Simon Hausmann
a8fcb5acd6
Fix delayed docs preview not working
...
After commit 7df902b53c , the winit window
is not created when calling show() anymore but it's now created at
component creation time. That means the event loop workaround removed
in 459f810bd8 is now needed at
construction time.
Since this is a winit and wasm specific issue, it's now dealt with in
the wasm interpreter implementation, by invoking the creation from the
event loop from there and returning a promise in the API.
This changes the API therefore: create() can only be called after the
event loop is running.
2023-06-01 16:51:12 +02:00
Simon Hausmann
c428601370
Add support for select-all(), cut(), copy() and paste() functions on text input elements ( #2804 )
...
In the compiler this is still very primitive, but an attempt to start a
generic interface. The basic assumption is that all item functions will
eventually need access to the window adapter and itemrc. Support for
additional arguments is still missing.
Also missing is support for the function access via rtti in the
interpreter, hence the hardcoding at the moment.
2023-06-01 16:04:53 +02:00
Simon Hausmann
3cf1b38a48
Add basic support for italic font face selection to Text and TextInput
...
This is implemented for FemtoVG, Skia, and Qt.
2023-05-31 18:47:39 +02:00
Florian Blasius
b4472b9118
Added switch widget ( #2798 )
...
* Add material Switch
* Add fluent switch
* Add native Switch and cleanup
* Rebase fix
* Update internal/compiler/widgets/fluent-base/std-widgets-impl.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update examples/gallery/ui/pages/controls_page.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review tweak on gallery layout
* Code review tweak on gallery layout
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-05-31 14:57:23 +02:00
Florian Blasius
9e267bcc94
Add ProgressIndicator widgets ( #2792 )
...
* Add material ProgressIndicator and documentation
* Add fluent ProgressIndicator
* Add native ProgressIndicator
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review
* Update internal/compiler/widgets/fluent-base/std-widgets-base.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update changelog
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-05-31 09:57:12 +02:00
Olivier Goffart
eb88a9ac9c
Adjust sizing of the AboutSlint widget
2023-05-09 12:19:18 +02:00
Adun Tong
9f8d576dfc
Fix a typo
...
Fixed a typo
2023-05-04 09:07:57 +02:00
Olivier Goffart
6441968a43
Janitor: Remove trailing spaces in most files
2023-05-04 08:14:28 +02:00
Cole Lawrence
554ee022c1
docs: Correct "debug(...)" builtin
...
Co-Authored-By: Olivier Goffart <ogoffart@users.noreply.github.com>
2023-04-28 18:10:57 +02:00
Simon Hausmann
d1ebe920ec
doc: Fix markdown link to GitHub issue
2023-04-28 14:34:48 +02:00
ogoffart
dfd5fc38b3
Bump version number to 1.0.3
2023-04-26 14:04:08 +00:00
Olivier Goffart
c8b4b92ccc
Revert "Prepare for 1.0.2 release"
...
The release is done
This reverts commit 30d0b11c1d .
Conflicts:
Cargo.lock
2023-04-26 13:19:07 +02:00