Commit graph

84 commits

Author SHA1 Message Date
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
Kavindra Palaraja
acaa7a6e1e Start creating pathways for the get started topic. 2023-04-26 09:15:10 +02:00
Olivier Goffart
addc1247ec
Docs: document that \{...} is not working in a slint! macro
Closes #2517
2023-04-20 13:06:20 +02:00
Olivier Goffart
918551cf3f
Docs: Document that opacity uses layers
Closes #2407
2023-04-20 10:48:06 +02:00
Cole Lawrence
af30896e4a Add always-on-top property to Window element 2023-04-15 13:58:47 +02:00
Olivier Goffart
a57c7eb6bc Added TextInputInterface.text-input-focused 2023-04-12 14:49:08 +02:00
Simon Hausmann
feb5f90671 Document the enabled property of FocusScope in terms of tab focus traversal. 2023-04-12 08:48:24 +02:00
Simon Hausmann
77895d3a2a doc: Document the enabled property of FocusScope
Also add a test for the described behavior.
2023-04-12 08:48:24 +02:00
Olivier Goffart
fd3f974d7e Don't use old syntax in docs 2023-04-06 17:06:46 +02:00
Olivier Goffart
09fc4010ff Add a easy to find link to Slint homepage from the docs intro.
Since the theme don't have obvious link to the homepage, at least add a
link early in the first documentation page
2023-04-05 06:52:25 +02:00
Kavindra Palaraja
5f239124de Remove intro.md from the list of files 2023-04-04 18:57:35 +02:00