Commit graph

139 commits

Author SHA1 Message Date
Simon Hausmann
f1987cd208 Fix links to widgets in AccessibleRole docs embedded in i-slint-backend-testing docs
The relative links don't work, so use slint-reference: custom schemes that works with sphinx and is rewritten with JavaScript through injections.
2024-06-12 07:17:35 -07:00
Simon Hausmann
2d6a8b1545 Add a note about the mouse cursor limitiation in the software renderer 2024-06-10 06:01:19 -07:00
Simon Hausmann
f8ddc9c358 Document availability of the linuxkms-software backend choice 2024-06-10 06:01:19 -07:00
Simon Hausmann
0ec577f981 Fix markdown link syntax
Oops
2024-06-07 12:10:27 +02:00
Simon Hausmann
cdf20a313b DatePicker docs: Fix myst-parser not automatically turning the strftime link to a link 2024-06-07 11:25:52 +02:00
Chris Chinchilla
0a76954aa9 Make Rust default 2024-06-06 07:14:44 -07:00
Luc Fauvel
44a537d902
Implemented resizing for non-decorated winit windows (#5026)
Fixes #5023

* Implemented resizing for non-decorated winit windows

* Fixed formatting

* Changed direction match to use a tuple, reduced resize border size, returned after handling resize

* Added is resizable check for before resizing winit window

* Added resize-border property to window

* Formatted code

* Change resize-border from float to length
2024-06-06 11:17:05 +02:00
Florian Blasius
973ecac989 DatePicker: finished features 2024-06-06 09:03:50 +02:00
Florian Blasius
fe6dba9779 DatePicker: base setup 2024-06-06 09:03:50 +02:00
Florian Blasius
3ccee816be
Added TimePicker widget (#5251) 2024-06-05 15:23:06 +02:00
Simon Hausmann
ef11ccfd2d
Fix @tr context docs example
The example that shows the default context should not have a specified context :)
2024-06-05 14:26:03 +02:00
ogoffart
3a6e34ba45 Bump version number to 1.7.0 2024-06-04 20:34:29 +00:00
Chris Chinchilla
ab9d7f342b
Consolidate language tutorials (#5037)
All the language tutorials are merged into the Slint reference as "quick starts".
2024-06-04 16:54:36 +02:00
Aurindam Jana
3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Florian Blasius
dc4e421f2c
Added step-size to SpinBox (#5293) 2024-05-31 09:45:37 +00:00
Olivier Goffart
1feb612633 Docs: Fix documentation of easing curve
Don't duplicate the list of easing. Refer to the list in the animation page.
The list in types.md was out of date
2024-05-28 12:04:05 +02:00
ab7wd
8a54af975e added macOS 14 to supported platform markdown file 2024-05-16 16:41:59 +02:00
Michael Winkelmann
b6ee0287e7 gradiEnt 2024-05-16 11:40:20 +02:00
Michael Winkelmann
d1c2d8c744 types.md: Fix doc typos for radial gradient 2024-05-16 11:40:20 +02:00
Florian Blasius
a3d4112897
Added placeholder-text to TextEdit (#5239)
---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-05-15 10:20:13 +00:00
Olivier Goffart
0929e3dfc1 Slint: make the abs work with unit types 2024-05-08 19:04:22 +02:00
Olivier Goffart
e1f6c48958
Improve docs about backend and render selection 2024-05-07 11:31:36 +02:00
Dirley Jordan
35b9c1e738
Fix a positive minimum causing an incorrect slider/spinbox value (#5148)
sets the default value to that of the minimum
2024-04-30 09:30:31 +02:00
Noah Sweilem
e62f75cfd1 Docs: add info about text stroking 2024-04-26 13:16:19 +02:00
Noah Sweilem
b592915f0e Docs: note incompatibility for text stroking in software renderer 2024-04-26 13:16:19 +02:00
Simon Hausmann
899ed0e1ba Document the impact of clear-focus() 2024-04-26 11:09:11 +02:00
Simon Hausmann
31767eb6ab Add a clear-focus()function on all elements that have a focus() function
This is the counter-part, which removes focus from the element if it's currently focused. The window - if focused - may still be focused towards the windowing system.
2024-04-26 11:09:11 +02:00
Olivier Goffart
0dd8cd257a
Documentation for the accessible-action 2024-04-18 19:17:35 +02:00
claudex
2b81d5359d Typo on TextEdit doc
Fixes extra `  after link.
2024-04-17 15:41:24 +02:00
Olivier Goffart
0f05089d5e Polish the C++ and Rust HSV API 2024-04-15 18:18:00 +02:00
Olivier Goffart
f1192673cb Slint: use to-hsv() to access hsv color 2024-04-15 18:18:00 +02:00
Luke D. Jones
0b1ec5e4c9 Convert to struct field access and make HsvColor public 2024-04-15 18:18:00 +02:00
Luke D. Jones
d4a3f77877 feat: color: add HSV methods to slint 2024-04-15 18:18:00 +02:00
Simon Hausmann
ae2e0197f8
Deprecate the use of StyleMetrics for users of the public API (#4947) 2024-04-15 17:07:05 +02:00
Simon Hausmann
a61ca93cd1 doc: Attempt to clarify how the factor of color's mix() function is applied 2024-04-15 09:05:54 +02:00
Simon Hausmann
8e3728864e Fix markup of mix function in slint docs
Markdown doesn't have \a for arguments, that's doxygen.
2024-04-15 09:05:54 +02:00
Simon Hausmann
aebc7570c8 doc: For the Skia build, add the xcode command line tools SDK issue to the troubleshooting
Closes #5043
2024-04-12 15:40:07 +02:00
Simon Hausmann
89eaac9d02 doc: Fix mismatch of gallery vs. my_application in the translation docs
bindtextdomain was called with "my_application", but the rest talked about gallery. I switched all to the former, but it could also be the latter.
2024-04-12 13:04:38 +02:00
ogoffart
6bf40989d9 Bump version number to 1.6.0 2024-03-27 07:49:22 +00:00
Simon Hausmann
68083243b2
Add an in-out boolean color-scheme property to Palette (#4701)
This allows applications to force dark/light mode, as well as determine
which mode is active.
2024-03-26 15:44:22 +01:00
Simon Hausmann
ccc92e6143 doc: Explain how gradients can be expensive to render. 2024-03-26 14:53:14 +01:00
Simon Hausmann
f27c185daf
Add a released callback to Slider (#4821)
The released callback is invoked when the user finished changing the value, for example
when the arrow key is released.

As a bonus, for the Qt implementation this fixes a few bugs in the keyboard handling:
  - Handle orientation
  - Implement click-to-focus
  - Emit released also on key release

Co-authored-by: Luke D. Jones <luke@ljones.dev>
2024-03-26 14:15:52 +01:00
Olivier Goffart
74d0dafb9c
docs: delete docs for property that doesn't exist
Discussion on https://github.com/slint-ui/slint/pull/4899#issuecomment-2012072132
2024-03-21 13:01:19 +01:00
Olivier Goffart
9885c4744a
docs: fix cut of sentence
Restore the text that disappeared in commit eec9d31809
2024-03-20 16:13:29 +01:00
ogoffart
20c570ab1d Bump version number to 1.5.1 2024-03-18 08:55:01 +00:00
Olivier Goffart
1d40f9ed78
Update backends_and_renderers.md
to mention that Qt is only built by default on Linux
2024-03-13 23:24:31 +01:00
Luke D. Jones
8c60cc74be feat: color: add channel properties to color
Add extra properties to the `color` type.
- `red`
- `green`
- `blue`
- `alpha`
2024-03-12 09:42:30 +01:00
Olivier Goffart
255dc59ef4 Rename @image-url(..., 9slice(...)) to @image-url(..., nine-slice(...))
As per API review:
 - In the Rust and C++ API we use `set_nine_slice_edges` because the getter couldn't start with 9
 - in english we spell number less than 10 with letters and this is a name
2024-03-07 17:01:57 +01:00
Simon Hausmann
9599bb7710 doc: Add troubleshooting note about skia builds on windows with older MSVC versions 2024-02-26 15:02:09 +01:00
Paul Zinselmeyer
73e05aebdb Added flicked-Callback on Flickable
As requested in #1462, I've added a `flicked`-Callback that gets
triggered when the `viewport_x`- or `viewport_y` -Properties are changed
by a mouse drag or mouse wheel movement.
2024-02-26 12:17:31 +01:00