Commit graph

71 commits

Author SHA1 Message Date
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
Kavindra Palaraja
803c02bc41 Remote trailing sentence fragment 2023-04-04 18:57:35 +02:00
Kavindra Palaraja
9f51fd61b7 Improve the landing page for the Slint Language documentation
Remove the Intro page and move that content to the landing page instead.
2023-04-04 18:57:35 +02:00
Alex Kladov
ba793a8447 Update intro.md 2023-04-03 17:04:14 +02:00
Olivier Goffart
6711bf6ea6 Apply suggestions from code review
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-03-24 11:15:05 +01:00
Olivier Goffart
8f52015fe5 WIP: layouting attempt to document the behavior we would like to have
For issue #2284
2023-03-24 11:15:05 +01:00
Olivier Goffart
88f9d0aed5 Slint docs style cleanups
- refresh copyright
 - link to slint-ui.com
 - add footer icons
2023-03-23 12:23:31 +01:00
Simon Hausmann
4ca6fd53c9 Re-add syntax highlighting in the Slint Language Docs 2023-03-23 09:34:16 +01:00
Simon Hausmann
4af7ea8ab7 Switch to the Furo theme for the Slint Language and C++ documentation 2023-03-23 09:34:16 +01:00
Simon Hausmann
c1dbe974ef Fix missing navigation sidebar in the slint language docs
The navigation sidebar requires jquery, which from Sphinx >= 6.0 needs
to be bundled via a separate extension. In the C++ docs Sphinx remains
at version 4.5.0 (due to exhale), but the slint language site doesn't
need exhale (no C++) and thus Pip ends up picking a newer Sphinx
version.
2023-03-20 16:04:07 +01:00
Simon Hausmann
26c8221141 Fix doc rendering of remaining callbacks
- Don't show a literal underscore.
- Close the code fence so that the markdown link turns into a real link.
2023-03-06 13:36:14 +01:00
Simon Hausmann
69d2f4a190 Fix markup for FocusScope callbacks 2023-03-06 09:19:42 +01:00
Simon Hausmann
d596f476cf Remove leaked HTML comment 2023-03-03 13:17:11 +01:00
Simon Hausmann
979256142a doc: From Text's text property, link to the string handling
As pointed out by Miłosz, users of this property may very likely be also
interested in string formatting / interpolation.
2023-03-02 13:58:44 +01:00