ogoffart
f2aa4899db
Bump version number to 1.14.0
2025-09-11 14:01:14 +00:00
ogoffart
09e397f3ba
Bump version number to 1.13.1
2025-09-08 09:43:17 +00:00
Olivier Goffart
41c5194c0a
LineEdit: Fix show password icon being out of sync with fluent
...
The problem was that the `LineEditPasswordIcon` had an internal property
that would get out of sync when the component is re-created.
The component does get re-created in fluent depepending on the focus,
and this is the case especially with wasm because of the hidden input
that takes the focus.
Fixes #9225
2025-08-22 16:20:11 +02:00
Simon Hausmann
b6421b0730
Fix large icons in menu items enlarging the menus unnecessarily
...
Size them according to the icon size and preserve the aspect-ratio.
2025-08-21 16:14:32 +02:00
npwoods
19d8350273
support for menus with checkmarks ( #9056 )
...
Added `checkable` property to `MenuItem` and `MenuEntry`
ChangeLog: Added `checkable` and `checked` property to MenuEntry
2025-08-21 09:07:01 +02:00
Laurent Montel
91dd549722
Hide clear button when line edit is read only or disabled
2025-08-01 16:17:50 +02:00
David Faure
9eb14714d9
LineEdit: add icon to toggle password visibility
...
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Has been cancelled
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Has been cancelled
CI / build_and_test (ubuntu-22.04, nightly) (push) Has been cancelled
CI / node_test (macos-14) (push) Has been cancelled
CI / node_test (ubuntu-22.04) (push) Has been cancelled
CI / node_test (windows-2022) (push) Has been cancelled
CI / python_test (macos-14) (push) Has been cancelled
CI / python_test (ubuntu-22.04) (push) Has been cancelled
CI / cpp_test_driver (macos-13) (push) Has been cancelled
CI / cpp_test_driver (ubuntu-22.04) (push) Has been cancelled
CI / cpp_test_driver (windows-2022) (push) Has been cancelled
CI / cpp_cmake (macos-14, 1.85) (push) Has been cancelled
CI / cpp_cmake (windows-2022, nightly) (push) Has been cancelled
CI / cpp_package_test (push) Has been cancelled
CI / vsce_build_test (push) Has been cancelled
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Has been cancelled
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Has been cancelled
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Has been cancelled
CI / mcu-embassy (push) Has been cancelled
CI / ffi_32bit_build (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / wasm (push) Has been cancelled
CI / wasm_demo (push) Has been cancelled
CI / tree-sitter (push) Has been cancelled
CI / updater_test (0.3.0) (push) Has been cancelled
CI / fmt_test (push) Has been cancelled
CI / esp-idf-quick (push) Has been cancelled
CI / android (push) Has been cancelled
CI / miri (push) Has been cancelled
CI / test-figma-inspector (push) Has been cancelled
Material icons from
https://github.com/marella/material-design-icons/tree/main/svg/outlined
also used for cupertino.
Fluent icons from
https://fluenticons.co/outlined/
Cosmic icons extracted from
https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/blob/master/src/symbolic/core.svg
because there's no such icon in https://github.com/pop-os/cosmic-icons/tree/master/freedesktop/scalable
ChangeLog: LineEdits with "input-type: password" now feature
an icon to toggle password visibility
2025-07-25 15:30:50 +02:00
David Faure
2e99dde397
LineEdit: add clear icon, visible when not empty
...
cc #4518
ChangeLog: LineEdits now show a clear icon (when not empty)
2025-07-25 15:30:50 +02:00
Olivier Goffart
d49fe14e4a
Menu: avoid using padding properties ( #8847 )
...
Padding properties exists as reserved properties but don't have effect.
But the menu code was using them to store values.
This is now a warning because people got confused by setting padding and
wondering why it has not effect.
This also had some bug in the code were properties were padding was set
on a layout, as well as all the padding-* properties, so the padding was
not taking in account
2025-07-04 16:42:59 +02:00
Joshua Goins
c09ed19a85
Menu: Add icon property
...
This adds an icon that is displayed to the left of the title, and is
also shown for Menus are inside of a parent menu.
Closes #7791
ChangeLog: Added icon property to MenuItem and Menu
2025-06-26 18:45:37 +02:00
ogoffart
9cc24ff284
Bump version number to 1.13.0
2025-06-26 13:30:43 +00:00
ogoffart
92f9f0e85d
Bump version number to 1.12.1
2025-06-16 13:32:39 +00:00
Olivier Goffart
fece71ebf0
Menus: make it possible to have items with different height
...
Can be usefull for separator
(Required for #8339 )
2025-05-19 14:58:31 +02:00
Olivier Goffart
e8012c70d0
Fix MenuBar on android
...
The ContextMenuArea on android intercepts clicks to trigger on long clicks
and this prevent the MenuBar's TouchArea to work properly
Fixes #8353
2025-05-09 08:58:12 +02:00
Montel Laurent
4cd6f92013
Hide action when widget is disabled
...
ChangeLog: TextEdit/LineEdit : disable context menu action when the widget is disabled or read-only
ChangeLog: Added ContextMenuArea::enabled
2025-05-02 13:20:46 +02:00
ogoffart
e0099ea500
Bump version number to 1.12.0
2025-04-30 13:27:50 +00:00
Laurent Montel
eafa9bae12
Disable cut/paste action when textedit is disabled
...
(Too bad that we can't hide these actions)
2025-04-19 10:14:58 +02:00
Laurent Montel
706bd3e984
Disable cut/paste action in lineedit when disabled
2025-04-19 10:12:45 +02:00
Joshua Goins
d1f2fef430
Menu: Add enabled property ( #8145 )
...
By default it's enabled, of course. This property is not only added to
MenuItem, but Menu as well - since they can be nested. It's also
possible to select a disabled item, but it's hard to modify that since
it's logic is written in Slint. You should be prevented from activating
it with a tap or key press at least.
See #7791
2025-04-15 08:08:11 +02:00
FloVanGH
4d754b7ddf
StandardButton improvements ( #8035 )
...
* StandardButton improvements
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-03 07:29:49 +00:00
Olivier Goffart
e5289af154
Introduce MenuSeparator
...
Fixes #7790
2025-04-02 11:50:45 +02:00
Olivier Goffart
6010cf724c
Hover on MenuBar should activate menu if a menu is already open
...
Fixes #7822
2025-03-31 14:06:24 +02:00
ogoffart
178cf21c2e
Bump version number to 1.11.0
2025-03-18 09:48:22 +00:00
Arnold Loubriat
615be362b2
Disable built-in TextInput accessibility for Spinbox
2025-03-17 14:27:08 +01:00
FloVanGH
f6cec29fed
menu: finished cupertino style
2025-02-27 12:13:44 +01:00
FloVanGH
be7c125726
menus: fluent style and refactoring ( #7723 )
...
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 17:01:22 +01:00
Olivier Goffart
fe333049ea
Fix Menu highlight on hover
...
Regressed in 5cccfda36f
2025-02-24 09:37:37 +01:00
FloVanGH
5cccfda36f
menu: cleanup code, extract MenuItemImpl ( #7696 )
...
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-22 08:10:54 +01:00
Olivier Goffart
39191e5acd
Menu API changes
...
`ContextMenu` -> `ContextMenuArea`
`ContextMenu` must have a `Menu` child.
`MenuItem` can no longer be put dirrectly in `MenuBar` and can no longer
have children
`Menu` is used now for sub menus
2025-02-21 16:03:47 +01:00
Simon Hausmann
368ec3459b
Improve default accessibility of TextInput elements
...
Apply similar logic as to LineEdit and TextEdit, so that when folks build their own text input widgets, they're accessible by default. Also fixed the docs while at it to mention default applications.
Amends #7669
2025-02-20 13:44:16 +01:00
Arnold Loubriat
90c337f1d1
Add AccessibleRole::Image and use it in the AboutSlint widget ( #7593 )
...
* Add `AccessibleRole::Image`
* Improve accessibility of the `AboutSlint` widget
* Filter out some images from the accessibility tree
2025-02-18 09:43:53 +01:00
Olivier Goffart
c85b20d431
ContextMenu on the LineEdit and TextEdit
...
With usual copy/paste entries
We need to make sure that showing the popup window don't clear the
selection in the TextInput which happens if the TextInput gets a
FocusOut event.
2025-02-11 10:30:11 +01:00
Olivier Goffart
2e4353d3c9
Implement closing of popup menus
2025-02-10 20:27:43 +01:00
Olivier Goffart
9853384f56
CombBox: Don't change on scroll unless we have focus / not at all on cupertino
...
* ComboBox: Don't change on scroll uless we have focus
This is what native Windows combobox does.
Otherwise this causes problem when combobox are in scrollable
Fixes #5929
* ComboBox: Don't scroll at all with the wheel on Mac.
This is also Qt's behavior
https://doc.qt.io/qt-6/qstyle.html#:~:text=SH_ComboBox_AllowWheelScrolling
2025-02-07 13:52:14 +01:00
Olivier Goffart
c0b72cad2f
ContextMenu: show submenu on hover after a timeout
...
This means that the parent menu still get the mouse events
Also add the ability to close the menu programmatically
2025-02-07 13:27:32 +01:00
Olivier Goffart
7104c6e88e
Rudimentary key navigation of the popup menu ( #7556 )
...
Closing the menus is still not implemented
2025-02-07 10:01:40 +01:00
Olivier Goffart
2846c35055
TextInput: implement page up/down
...
CC #474
2025-02-06 14:52:28 +01:00
Arnold Loubriat
95715b6610
Set accessible-action-default on ListView items ( #7465 )
...
* Set `accessible-action-default` on `ListView` items
* Set `accessible-role` on `ListItem` for Qt style
* Set `accessible-label` on `ListItem` for Qt style
2025-01-27 13:53:57 +01:00
Arnold Loubriat
c739f1e9ba
Slider widget: react to Home and End keys
2025-01-25 21:30:22 +01:00
Olivier Goffart
98e8386aee
MenuBar/ContextMenu: hide the entries interface
...
This can only be used internally by the style to implement the actual
ContextMenu
Only the declarative `MenuItem` interface is exposed.
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-25 11:06:31 +01:00
Olivier Goffart
28e54175f6
Work on the ContextMenu
...
- Add the `entries` property in the ContextMenu
- Make right click on the ContextMenu show the menu
- Use the proper technique to register ContextMenu and MenuBar as
experimental (same as ComponentContainer)
2025-01-16 20:21:06 +01:00
ogoffart
c83af3ca5c
Bump version number to 1.10.0
2025-01-13 13:38:41 +00:00
Olivier Goffart
3e94bd2167
Janitor: Remove trailing whitespaces from all files
...
`git grep -I -l -O'sed -i "s/[[:space:]]*$//"' -e ''`
2025-01-10 13:23:22 +01:00
Olivier Goffart
3ea8be06e8
Make StandardButton focusable
...
Fixes #7230
ChangleLog: Fixed StandardButton not focusable
2024-12-30 13:33:15 +01:00
ogoffart
f309a551b5
Bump version number to 1.9.2
2024-12-30 10:18:16 +00:00
aurindam
dc3f29b6da
Bump version number to 1.9.1
2024-12-19 12:57:19 +00:00
Olivier Goffart
60c10213d2
Remove LayoutSpec and undeprecate StyleMetrics.layout-* properties ( #7069 )
...
StyleMetrics is the right name for these
2024-12-16 14:52:28 +01:00
FloVanGH
e0ad561c86
widgets: added key-pressed and key-released callbacks to all text input components ( #7081 )
...
* widgets: removed rejected event
* widgets: added key-pressed, key-released callbacks to text input components
* Update docs/astro/src/content/docs/reference/std-widgets/lineedit.mdx
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-12-12 16:20:45 +00:00
Olivier Goffart
69d201d6a0
ComboBox: key event when popup is open
...
Fixes #4826
The previous patch changed that the ComboBox was no longer focused when
the popup is shown, so make a hack around that
2024-12-09 15:58:16 +01:00
Arnold Loubriat
9b9a34561d
Improve keyboard navigation of StandardListView ( #6955 )
2024-12-09 15:14:15 +01:00