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
3f54e6cbc1
Fix ScrollView on cupertino not showing the last few pixels
...
Within the cupertino's ScrollView, the Flickable is positioned
with a 2 pixel margin with the `x` and `y` properties
property, so the width and height should also account for that margin.
Fix the test_cpp_elements_listview in test-driver-cpp
2025-01-22 19:52:02 +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
Simon Hausmann
aa332202c5
Rename AccessibleRole.GroupBox to AccessibleRole.Groupbox
...
While unfortunate in casing, this is consistent with Checkbox, Combobox, and Spinbox.
2025-01-10 16:27:14 +01: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
Arnold Loubriat
f7b9da96d4
Set accessible-enabled
on group box widgets
2025-01-07 23:08:03 +01:00
Arnold Loubriat
8b95752de7
Set accessible-label
on group box widgets
2025-01-07 23:08:03 +01:00
Arnold Loubriat
49196728a7
Add AccessibleRole::GroupBox
2025-01-07 23:08:03 +01:00
Arnold Loubriat
9c25040b00
Set accessible-action-default
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
60aacc8f82
Set accessible-item-selected
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
67f6e1a737
Set accessible-item-selectable
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
23e37ce4de
Set accessible-item-index
on tabs
2025-01-06 09:30:11 +01:00
Arnold Loubriat
38499962a9
Set accessible-item-count
on tab bar widgets
2025-01-06 09:30:11 +01:00
Arnold Loubriat
c3cfa6044a
Remove tab title label from the accessibility tree
2025-01-06 09:30:11 +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
Olivier Goffart
a3dad45f0b
Accessibility: rename a few properties after API review:
...
- Rename `accessible-selectable` and `accessible-selected` to `accessible-item-{selectable,selected}`.
Because the property is for items in list rather than eg Text
- Rename `accessible-position-in-set` to `accessible-item-index`.
- Rename `accessible-size-of-set` to `accessible-item-count` and move
the property to the container element rather than the item itself
2024-12-07 08:25:42 +01:00
asuper0
387220227d
Add step
property to Slider
( #6981 )
...
Closes #4549
ChangedLog: Slider: added `step` property
2024-12-05 11:50:08 +01:00
FloVanGH
901afde11f
api review: callback parameters and properties name adjustements
2024-12-02 16:22:39 +00:00
szecket
ba14285332
Szecket/cupertino colours ( #6801 )
...
* creating a lookup table of colors based on the set on apple docs
then selecting from these colors rather than always typing hex
also added an in property for setting selected color (future)
* splitting out method of changing selection colour for later
* forgot to pull CupertinoColors from import
* Squashed commit of the following:
commit 4924aa908d6e039a7bf1f79ede3dc7c26f71007f
Author: szecket <szecket@magrittescow.com>
Date: Fri Nov 15 17:31:45 2024 -0500
use defined Palette for states
commit 80711ee7188f37b1b29ce11855b6a636d7a39306
Author: szecket <szecket@magrittescow.com>
Date: Fri Nov 15 17:29:51 2024 -0500
make control colour consistent with style and other controls
commit 1cfd39e6da6643600e8b553dfab2418c8552cdc4
Author: szecket <szecket@magrittescow.com>
Date: Fri Nov 15 13:58:07 2024 -0500
selection of controls when focused is not current cupertino style and too strong
commit 4bf4ae6ad385e118687f752362b34e079c03fe22
Author: szecket <szecket@magrittescow.com>
Date: Fri Nov 15 13:42:58 2024 -0500
make foreground color contrast when selected
* removing property that is only in cupertino
2024-11-22 08:18:27 +13:00
Olivier Goffart
f225f79d49
compiler: Put the argument names in the Type
...
That simplifies things a bit and will allow to have names for builtin callback and functions
2024-11-21 09:53:17 +01:00
Olivier Goffart
5bd20def0e
Experimental support for MenuBar
...
Introduces `MenuBar{ ... }` that can be put in a Window
2024-11-20 09:25:37 +01:00
FloVanGH
5ea05e18af
std-widgets: added horizontal-alignment to SpinBox ( #6778 )
2024-11-15 08:05:57 +00:00
FloVanGH
2cb5fb1d99
std-widgets: fixed arrow size of scroll bar button ( #6728 )
2024-11-11 15:02:39 +00:00
FloVanGH
c84af1a8d7
std-widgets: added LayoutSpec global ( #6711 )
2024-11-06 14:47:04 +00:00
Olivier Goffart
929e71e6b0
Widgets: add callback arg names to some callback
...
The ones that have a comment already.
Tests that the name is consistent accross the styles.
2024-11-04 17:09:57 +01:00
Ryan Naddy
908580b951
Added rejected to textedit ( #6662 )
2024-10-31 16:23:50 +01:00
Arnold Loubriat
17207b0508
Make accessible-position-in-set
zero-based
2024-10-30 15:54:01 +08:00
Arnold Loubriat
97219c21bf
Add the accessible-size-of-set
property
2024-10-30 15:54:01 +08:00
Arnold Loubriat
67166fcc2d
Add the accessible-position-in-set
property
2024-10-30 15:54:01 +08:00
Ryan Naddy
58efd5312b
Added rejected to TextInput ( #6649 )
2024-10-25 17:24:47 +02:00
DataTriny
2de3b9d455
Add the accessible-enabled
property
2024-10-25 10:20:09 +02:00
FloVanGH
de67a6d201
checkbox: fixed min-height on all styles ( #6647 )
2024-10-24 16:59:18 +00:00
FloVanGH
b874adbc1c
material: fixed button touch area ( #6645 )
2024-10-24 16:25:59 +00:00
FloVanGH
69bb6462c3
checkbox: remove margins for fluent and cupertino ( #6639 )
2024-10-24 11:17:37 +00: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
DataTriny
28b5a67583
Implement accessible-delegate-focus
for the AccessKit backend
2024-10-22 12:54:00 +02:00
FloVanGH
25607a9706
fluent: fixed foreground of switch ( #6613 )
...
* fluent: formatting
* fluent: fixed foreground color of Switch
2024-10-22 07:24:18 +00:00
DataTriny
9ff905f924
Fix ListItem
accessible tree representation
2024-10-21 07:13:07 +02:00
Arnold Loubriat
19f09950c2
Changelog: Add accessible-selectable
and accessible-selected
properties
2024-10-16 15:38:46 +02:00
FloVanGH
f8f1d468a0
widgets: fix tabs overflow behaviour ( #6517 )
2024-10-11 12:15:27 +00:00
FloVanGH
b3f19e446e
LineEdit: fixes cursor draws out of bounds ( #6382 )
2024-10-09 14:31:42 +00: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
Olivier Goffart
0c36499936
Rename common.slint -> about-slint.slint
...
The file used to contain many things but now it only contains AboutSlint
widget, so we can as well rename it accordingly
2024-10-08 14:52:03 +02:00