FloVanGH
0d1412afc5
removed skip-taskbar property from window ( #6982 )
2024-12-03 10:07:36 +00:00
FloVanGH
901afde11f
api review: callback parameters and properties name adjustements
2024-12-02 16:22:39 +00:00
FloVanGH
712f930897
windows: added skip_taskbar ( #6911 )
...
* Update internal/backends/winit/winitwindowadapter.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/backends/winit/winitwindowadapter.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update docs/src/content/docs/reference/window/window.mdx
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-27 09:55:11 +00:00
Simon Hausmann
1888e58735
Add API to set the XDG app id
...
ChangeLog: Added function to set the XDG app id on Wayland/X11. This needs to be added with respective function names in the language sections.
Fixes #1332
2024-11-22 11:24:06 +01:00
FloVanGH
5ea05e18af
std-widgets: added horizontal-alignment to SpinBox ( #6778 )
2024-11-15 08:05:57 +00:00
Olivier Goffart
14adc2af2f
Silence a warning in Qt headers
2024-11-04 20:45:04 +01:00
Brandon Fowler
6da0f55b05
Associate PopupWindow
s with an ID for their active popup ( #6693 )
...
Popups are stored in a HashMap and are assigned an ID so popup.close(); closes the correct popup and so a single PopupWindow cannot be opened multiple times
2024-11-04 09:17:55 +01:00
Olivier Goffart
2d944b242c
Support multiple PopupWindow
...
Fixes #4356
Still not perfect:
- Calling several times `popup.show()` on the same popup, will open
that popup multiple times (instead of being a noop once opened)
- Calling `some-popup.close()` will always close the top of the stack,
without considering if it is the `some-popup` or another popup.
Both problems are because we don't remember whether a particular popup
is open and we don't associate `close()` with a particular popup
2024-10-31 22:27:56 +01:00
Olivier Goffart
3ce0e49003
Qt: Fix PopupClosePolicy::CloseOnClickOutside
2024-10-31 22:27:56 +01:00
Arnold Loubriat
97219c21bf
Add the accessible-size-of-set
property
2024-10-30 15:54:01 +08:00
FloVanGH
14c7910d49
PopupWindow: added close-policy property ( #6614 )
...
* Update api/cpp/include/slint_window.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update docs/reference/src/language/builtins/elements.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update internal/core/window.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/interpreter/eval.rs
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update internal/backends/qt/qt_window.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/interpreter/dynamic_item_tree.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/compiler/passes/materialize_fake_properties.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-10-24 09:27:39 +00:00
Simon Hausmann
a4eb794e43
Fix missing redraws when embedding Slint into QWidget hierarchy
...
Commit 5718b15899
regressed this by
issuing the update on the window, which breaks when the widget is
embedded in a hierarchy (like a QGraphicsView). We really need to mark
the widget as dirty, even if that means we don't get frame throttling
then.
2024-10-17 16:45:16 +02:00
Renato Araujo Oliveira Filho
1e4de3fe0c
Implement ScrollBarPolicy property for ScrollView ( #6442 )
...
ChangeLog: ScrollView: added vertical-bar-policy and horizontal-bar-policy
Fixes : #3552
Fixes : #5578
2024-10-08 17:02:17 +02:00
Simon Hausmann
0b028bfb6f
Add support for a font-metrics property to Text/TextInput. ( #6452 )
...
The struct held provides access to the design metrics of the font scaled
to the font pixel size used by the element.
ChangeLog: Slint Language: Added font-metrics property to `Text` and `TextInput`.
Closes #6047
2024-10-05 17:00:46 +02:00
Simon Hausmann
f772cb8e11
live-preview: Bring the window to the front and focus it when the use… ( #6295 )
...
Fixes #196
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2024-09-24 17:05:03 +02:00
crai0
3f3ac7e347
common: add support for back and forward pointing-device buttons ( #6149 )
...
Closes #6043
ChangeLog: add support for back and forward pointing-device buttons
2024-09-18 07:48:30 +02:00
Arnold Loubriat
f01420258f
Changelog: Introduce AccessibleRole::ListItem
2024-09-16 09:15:39 +02:00
Simon Hausmann
e35d05f6b9
API Review: Remove SharedImageBuffer from public API and rename Window::grab_window() to take_snapshot()
...
Use SharedPixelBuffer as return value for take_snapshot() and provide counter-parts to from_rgb* in Image as to_rgb*
2024-07-05 20:46:55 +02:00
Olivier Goffart
8b5df70dd0
Make a trait for the Text rendering
...
So we can Split Text
2024-07-05 12:51:25 +02:00
Olivier Goffart
161a734805
Qt: fix unexpected_cfgs warning
...
We didn't emit the directive for all features
2024-07-02 11:50:27 +02:00
Olivier Goffart
f4085cfd13
winit: Fix setting the size with set_size before showing the window
...
Fixes #5489
We shouldn't resize the window to the size of the WindowItem after
start. This happens when set_size is called before show. The the
resize event didn't yet propagate the size to the WindowItem properties.
2024-06-27 16:12:35 +02:00
Simon Hausmann
977b827df2
Add Rust API to grab the contents of a slint::Window into a slint::SharedImageBuffer ( #5445 )
2024-06-22 09:33:18 +02:00
Olivier Goffart
4eea278ef7
TextEdit qt: fix text selection
...
Fixes #5417
2024-06-18 17:03:54 +02:00
Olivier Goffart
99bb23eb02
Qt backend: fix combobox quiting the application with Qt6
...
When the popup window is destroyed, the hack we did to close the app on
the last window was too aggressive with Qt6 and closed the application
when it shouldn't have.
Fixes #4803
2024-06-18 15:51:46 +02:00
Daniel Stuart
436efaceea
renderer: Use TextWrap enum for text_size function
2024-06-17 23:52:04 -07:00
Daniel Stuart
9f63d157d1
Add character wrapping for Qt Backend
...
This adds a new wrapping mode called `char-wrap`, which allows for wrapping at any character.
Currently, it only supports the Qt backend, with the other backends falling back to `word-wrap` when this option is selected.
2024-06-17 23:52:04 -07:00
Simon Hausmann
97df6b1be1
Mark AccessibleRole as non-exhaustive
...
That way we can add new variants in the future, while still exporting this in our public API.
2024-06-11 08:02:10 -07:00
Simon Hausmann
d183498c4e
Add support for step-size to SpinBox rendered by the Qt style
...
Fixes #5325
2024-05-31 09:45:29 -07: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
Aurindam Jana
9a3aa265d5
Update Royalty-free license ( #5257 )
...
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Simon Hausmann
09cfd067dd
Prospective fix for Qt style’s slider’s release callback
...
Like in the Slint impl, invoke only if previously pressed.
2024-05-09 14:14:09 +02:00
Simon Hausmann
43e3c57b3b
Prospective fix for rustdoc warnings about unknown cfg's
...
Let cargo know about our internal cfgs.
2024-05-06 12:00:44 +02:00
Olivier Goffart
5e634fda9f
PropertyTracker: Pin the DirtyHandler
2024-05-02 22:25:53 +02:00
Noah Sweilem
3ae3da3a04
Fix formatting issues
2024-04-26 13:16:19 +02:00
Noah Sweilem
15b8e6c9fa
Text stroking: implement hairline stroking when width is zero
2024-04-26 13:16:19 +02:00
Noah Sweilem
f51d91f9f1
Text stroking: check if brush is transparent instead of stroke width to disable rendering
2024-04-26 13:16:19 +02:00
Noah Sweilem
d9caef02e1
Qt text stroke implementation
2024-04-26 13:16:19 +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
64404ceca2
accessibility: return an Option for accessible string values
...
So we can know whether the item had the property set at all or not
2024-04-19 11:23:26 +02:00
Olivier Goffart
13127dc71c
Accessibility: Add support for accessibility-action-* callback ( #5073 )
...
Merge branch 'feature/accessibility'
Conflicts:
internal/compiler/widgets/cosmic-base/button.slint
internal/compiler/widgets/cupertino-base/button.slint
internal/compiler/widgets/fluent-base/button.slint
internal/compiler/widgets/material-base/button.slint
Also updated license header in actions.slint
2024-04-16 15:02:25 +02:00
Olivier Goffart
4e580c6ea4
Accessibility: Remove the replace-select-text from the slint api
...
Because we don't support it in Qt and in our widgets yet.
Also accessible-action-set-value now takes a string because value is a
string (for the line edit)
2024-04-16 14:41:17 +02:00
Olivier Goffart
01e0f0c526
Accesibility: Implement the action in the backend ( #5062 )
2024-04-15 16:39:25 +02:00
notfirefox
e2aeb56263
Show focus for NativeComboBox
2024-04-15 15:25:23 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License ( #4994 )
...
Updated the version from 1.1 to 1.2
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
Arnold Loubriat
e17b1fda8b
Properly expose Switch
as such in the accessibility tree
2024-04-08 08:41:47 +02:00
notfirefox
fb2bbd8d92
Check mouse button for qt widgets in input_event
2024-04-04 09:30:01 +02:00
notfirefox
6462d699af
Fix scroll direction of spinbox for qt backend
2024-04-04 09:30:01 +02:00
notfirefox
45490fca21
Implement has_hover
for NativeComboBox ( #5001 )
...
Closes #5000
2024-04-02 18:20:07 +02:00
notfirefox
ab2014c42a
Implement has_hover
for NativeCheckBox
...
Closes #4998
2024-04-02 17:41:40 +02: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