Olivier Goffart
67777ccdaa
Fix wrong cfg statement
...
Found with -Zcheck-cfg
2024-02-29 13:39:45 +01:00
Olivier Goffart
5e7ddf3a19
Image Tiling
...
(Doesn't work yet with 9slice)
2024-02-26 12:16:41 +01:00
Olivier Goffart
926786fb59
Remove ImageHorizontalAlignement::Start/End
...
Since RTL language are not yet implemented, let's leave that out for now
2024-02-08 18:59:26 +01:00
Olivier Goffart
ce6c7f5527
Image: add horizontal and vertical alignment
2024-02-08 18:59:26 +01:00
Olivier Goffart
cb92ba1132
Add ImageFit.preserve and de-duplicate the fitting code
2024-02-08 10:10:56 +01:00
Olivier Goffart
1e19e0a754
Rust codegen: fix compile if slint names matches internal names
...
Fixes #4419
2024-01-24 22:47:58 +01:00
Olivier Goffart
01336be871
Fix svg loading on android after update of resvg
...
It would incoditionally try to load the FONTDB that can't load any font
from the system using libloading
Instead, hardcode the path to the font to a known android font
2024-01-23 23:04:59 +01:00
Simon Hausmann
8cee95e04c
Fix documentation of the keyboard modifiers
...
Match the implementation :-)
Fixes #4335
2024-01-19 16:59:06 +01:00
Daniel
807a233849
feat: Add Key.Space to Key namespace. ( #4311 )
2024-01-10 16:25:31 +01:00
Tobias Hunger
9737720cf2
touch-area: Trigger pointer-evnet on mouse move
...
Trigger the `pointer-event` callback on mouse move. This is of "kind"
Move and the mouse button will always be `Other`, but at least the mappings
will be correct:-)
Closes : #2770
2023-12-11 09:07:44 +01:00
Simon Hausmann
3e71d1b559
doc: clarify the meaning of the repeat field in KeyEvent
...
... as suggested by Joceln.
2023-11-29 10:16:21 +01:00
Jocelyn Turcotte
82916bc2ec
Implement KeyEvent.repeat
...
Now that winit was upgraded do 0.29 we can use its KeyEvent::repeat field.
Also feed Qt's QKeyEvent::isAutoRepeat() in the Qt backend.
2023-11-29 09:31:31 +01:00
Simon Hausmann
ba28846dc3
Bump fontdb and resvg version
...
The memmap and fontconfig features of fontdb are enabled by default.
2023-11-14 19:40:40 +08:00
Simon Hausmann
a5c3692fbc
Add progress-indicator accessible role
2023-11-07 13:37:12 +01:00
Olivier Goffart
5f36eaca9a
Android: handle InputEvent::TextEvent
2023-11-02 12:16:40 +01:00
Olivier Goffart
f24014a2dd
Refactor the internal IME event
...
Base the info on what's discussed in #3811
but this is just the internal event and not the public API
2023-11-02 12:16:40 +01:00
Olivier Goffart
12cd8e71f1
WIP: some polish over the winit update to 0.29
2023-10-23 14:22:48 +02:00
Tobias Hunger
58d61606cc
Winit update to master
...
Conflicts:
internal/backends/winit/event_loop.rs
internal/common/key_codes.rs
2023-10-23 14:22:48 +02:00
Tobias Hunger
b12575a4c4
janitor: Go over our spell checking setup
...
* Extend the cspell word list
* Remove those extensions from individual source files
* white-list licenses and such as we should not meddle with those
* Fix spelling
2023-10-16 09:01:51 +02:00
Olivier Goffart
4c0a435196
Implement TouchArea::scroll-event
...
Closes #1280
2023-10-07 07:59:53 +02:00
Olivier Goffart
d688f37ee8
Change alias to the native style depending on the platform
...
Fixes #3431
2023-09-29 17:05:10 +02:00
Tobias Hunger
85e1c6020b
janitor: Use workspace dependnecies for the slint crates
...
This moves most of the version information we need to update into one
place.
Note that the workplace dependency features are in *addition* to any
feature set when using the workspace dependency. So we have all
workspace dependencies defined with `no-default-features = true`.
2023-09-25 16:34:16 +02:00
Tobias Hunger
d6695c55cb
Janitor: Use cargo workspace package data more
2023-09-25 16:34:16 +02:00
darknight
5e5bbed8ee
Expand InputType to support number & decimal
2023-09-07 14:56:45 +02:00
tronical
b8b9db4e42
Bump version number to 1.3.0
2023-09-05 15:46:36 +02:00
Simon Hausmann
e56cac8031
Fix typo
2023-09-02 11:34:44 +02:00
Olivier Goffart
4920224be0
Rename Slider::vertical to Slider::orientation
2023-08-30 13:43:59 +02:00
Olivier Goffart
93a8f604a8
linuxkms: update dependencies
2023-08-28 12:04:34 +02:00
Simon Hausmann
96d7bb132c
reuse: remove glob for markdown files
...
Instead, place the copyright and license right into the source.
To satisfy reuse, this also removes the unnecessary MIT.txt
symlinks.
2023-08-17 08:55:28 +02:00
Tobias Hunger
09d3eaf00a
Update license symlinks
...
run `cargo xtask check_reuse_compliance --fix-symlinks`
2023-08-16 11:46:15 +02:00
Simon Hausmann
d61a929e34
Move widgets out of builtins/ and into its own section under the language reference
2023-08-15 12:04:43 +02:00
Simon Hausmann
f301e3d8c9
Remove Rust/C++ type name sentence in StandardListViewItem docs
...
This makes no sense in the Slint docs. But it's okay, this is a really
simple data structure anyway.
Amends 37488f015d
2023-08-03 15:54:54 +02:00
darknight
37488f015d
Refactoring: define macro rules to group builtin structs
...
apply new macro for struct declaration, type register,
doc generation, cpp header generation, struct-value conversion.
2023-08-03 11:01:18 +02:00
Olivier Goffart
ad389aa4eb
linuxkms: Implement keyboard input and clamp mouse
...
Unfortunately, this is currently not mapped to the right keyboard layout
Also keep the mouse clamped in the visible area.
And make it start in the middle of the screen.
2023-07-31 17:27:53 +02:00
Olivier Goffart
0a8f9c585a
C++: expose special key codes constants
2023-07-31 15:11:57 +02:00
ogoffart
aebaa7d6c9
Bump version number to 1.2.0
2023-07-25 10:44:53 +00:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +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
Tobias Hunger
e02c360000
Clippy polish
2023-06-28 14:22:30 +02:00
ogoffart
c8c9496722
Bump version number to 1.1.1
2023-06-26 12:50:02 +00:00
Olivier Goffart
9b59036816
Add licenses symlinks
2023-06-26 13:12:29 +02:00
Simon Hausmann
2337882e82
Improve error reporting when loading fontconfig fails
...
Print the error to stderr and report that locating a family for sans-serif failed.
2023-06-21 12:13:18 +02:00
Simon Hausmann
c81a3f7b64
Remove yeslogic-fontconfig dependency
...
We need only 9 different functions from fontconfig and one data
structure. We can do that interaction with libloading by hand and avoid
causing issues like servo/font-kit#212
2023-06-21 12:13:18 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +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
039e54a5de
Add royalty free license to files except examples and docs ( #2888 )
2023-06-15 11:20:50 +02:00
Simon Hausmann
9d2cc6ee5e
janitor: Fix typo
2023-06-01 14:46:44 +02:00
Simon Hausmann
6b8214c3f9
Add support for italic and bold text in the software renderer's bitmap font path
...
In the screenshot tests this works by setting SLINT_DEFAULT_FONT to
pointer to a directory, instead of a file. We then load all fonts in
that directory and consider their families the default unless a family
is specified. This way for "Noto Sans" a regular as well as an italic
version is registered in fontdb and returned in the list of font
fallback ids. embed_glyphs in the compiler then embeds those variants
and we find them at run-time.
2023-05-31 18:47:39 +02:00
Simon Hausmann
057493b3a9
Add support for italic text in the software renderer's vector font path
...
Centralize also fontdb::Query creation and family fallback handling in
sharedfontdb. This way SLINT_DEFAULT_FONT also works for the femtovg
renderer.
2023-05-31 18:47:39 +02:00