Commit graph

94 commits

Author SHA1 Message Date
Olivier Goffart
eb257774e8
Add modifiers to PointerEvent
* Add modifiers to PointerEvent

Closes #2686
2023-07-06 09:54:43 +02:00
Florian Blasius
496ca987b9
Added splitter to responsive recipe (#3040) 2023-07-04 16:06:29 +02:00
Simon Hausmann
14a5cf57e8 doc: Remove translations from the recipes
This is built into Slint now.
2023-06-30 13:31:07 +02:00
Olivier Goffart
e836e42997 Docs: don't commit the generated enums.md to the repo
Just generate it as we build the docs
2023-06-30 09:55:35 +02:00
Olivier Goffart
7a88dba2e7 Add clear-selection() to all our input fields 2023-06-28 17:07:55 +02:00
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
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
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
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
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
Simon Hausmann
0cc7ad6e8b Bump version of Slint Language Documentation 2023-04-26 11:39:56 +02:00
Kavindra Palaraja
13b5a867fa Fix the Get Started links to point to official docs 2023-04-26 09:15:10 +02:00