Arnold Loubriat
d863893e62
Expose toggle buttons as such to AccessKit
2024-04-09 00:09:01 +02:00
Arnold Loubriat
e17b1fda8b
Properly expose Switch
as such in the accessibility tree
2024-04-08 08:41:47 +02:00
Olivier Goffart
d1da3baa27
Spinbox: fix and test the behaviour on mousewheel
...
Scrolling up should increase the value, not decrease it.
The Qt behaviour was changed in #5010
2024-04-04 10:54:13 +02:00
Florian Blasius
cd6e8ae253
Cosmic: fix reuse license issues for the icons ( #4970 )
2024-03-28 11:15:52 +01:00
Florian Blasius
dc5004f9c4
Cosmic: ListView and ScrollView design adjustments
2024-03-28 08:55:55 +01:00
Florian Blasius
fa7771710d
Cosmic: replace path icon in list item with svg ( #4958 )
2024-03-28 08:49:07 +01:00
Florian Blasius
748c7e6a8e
Cosmic: replaces path icon in ComboBox with svg. ( #4957 )
2024-03-27 14:05:48 +01:00
Florian Blasius
0b26ca79b3
Cosmic: updated TabWidget style ( #4953 )
2024-03-27 12:03:02 +01: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
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
7e3c00be9c
Material style: fix text color
...
The text color for the text input that has the focus is the normal
"on-surface" color according to https://m3.material.io/components/text-fields/specs
Also fix the selection color of the TextEdit
2024-03-22 11:22:50 +01:00
Montel Laurent
fc0e8faae9
Accessibility: use tab-list for the tabwidget ( #4909 )
...
* Don't show tabwidget as tab
2024-03-21 17:48:42 +01:00
Laurent Montel
7ab5d7f5a1
Add missing accessibility in common textedit
2024-03-21 17:14:38 +01:00
Montel Laurent
1a57e9fc7a
Fix accessible-role of ProgressIndicator ( #4912 )
...
In other styles it's defined as progress-indicator.
2024-03-21 15:42:31 +01:00
Montel Laurent
da30fa2663
Add ListView accessibility role ( #4911 )
2024-03-21 15:20:43 +01:00
Montel Laurent
4844b84e0c
Add Treeview accessibility support ( #4907 )
2024-03-21 15:18:52 +01:00
Montel Laurent
c2517008d8
Add TextInput as accessibility role ( #4899 )
2024-03-21 13:39:31 +01:00
ogoffart
20c570ab1d
Bump version number to 1.5.1
2024-03-18 08:55:01 +00:00
Florian Blasius
82d784a4d4
Cupertino: added pressed state to tab, fix animation ( #4751 )
2024-03-05 14:40:18 +01:00
Florian Blasius
22095ccf03
Cupertino TabWidget: Tweaked visual appearance ( #4743 )
2024-03-04 09:11:45 +01:00
ogoffart
a0eed4e58e
Bump version number to 1.5.0
2024-02-20 17:33:11 +00:00
Florian Blasius
9d3f2ed08e
Fixed edited callback for SpinBox material and cupertino style ( #4578 )
2024-02-08 07:52:57 +01:00
ogoffart
fec2b961db
Bump version number to 1.4.1
2024-02-01 09:12:42 +00:00
Florian Blasius
3fec65822c
Fixed cosmic SpinBox buttons doing the opposite operation
2024-01-30 15:00:37 +01:00
Simon Hausmann
6fefe75a1c
Don't require components that use forward-focus to be inlined
...
Achieve this by generating a `focus()` function for such components
and call it from the outside.
This replaces the previous focus handling with what should be cleaner:
- Any `forward-focus: some-element;` is basically syntactic sugar for
`public function focus() { some-element.focus(); }`.
- The init code gets simplified to calling focus() on the root, if it's
available.
Since the `focus()` functions are now generated in the imports pass,
they become visible in the style checker. That means the checker
requires consistent focus handling between the styles.
2024-01-26 12:16:09 +01:00
Florian Blasius
866300c34b
Improved Slider drag and click behaviour ( #4406 )
2024-01-24 13:12:36 +01:00
Olivier Goffart
a19a2cfc8d
Material style: make the ScrollView pan with the mouse
...
Other style are more desktop oriented, but this is important on android
to pan with the finger
2024-01-23 17:44:16 +01:00
Florian Blasius
2871fadd5c
Added SliderBase and use it in non qt styles. ( #4384 )
2024-01-19 13:14:17 +01:00
Florian Blasius
c8f58be7c9
Reject events on disabled ComboBox ( #4359 )
2024-01-17 15:41:32 +01:00
Florian Blasius
0a2147c6a8
Revert "Disable keyboard input on disabled ComboBox"
...
This reverts commit 33578d8898
.
2024-01-16 15:21:55 +01:00
Florian Blasius
33578d8898
Disable keyboard input on disabled ComboBox
2024-01-16 15:18:07 +01:00
Florian Blasius
2cf2a36b1d
Fix style issues on the cosmic style
2024-01-16 15:16:04 +01:00
Florian Blasius
1ca8ff517e
Added cosmic style for std-widgets. ( #4350 )
2024-01-16 13:21:17 +01:00
Brandon Fowler
3e8940660b
Add set-selection-offsets
function to TextInput, TextEdit, and LineEdit ( #4197 )
...
The function accepts two arguments that specify the start and the end of the text to select.
Fixes #4164
2024-01-06 11:12:53 +01:00
Olivier Goffart
6ca9a9b884
SpinBox: enabled by default
2024-01-02 12:11:41 +01:00
Simon Hausmann
617d0921ca
Fix Switch element in Cupertino & Fluent style not showing text when font size is large
...
Take the minimum height of the layout into account, like in the material style implementation.
Fixes #4201
2024-01-02 10:07:03 +01:00
Florian Blasius
e587c09d9c
Added colorize-icon to Button ( #4152 )
...
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-12-14 12:07:55 +01:00
Florian Blasius
6da8120dfa
added palette global ( #3984 )
...
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update docs/reference/src/language/builtins/globals.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
---------
Co-authored-by: Florian Blasius <florian.blasius@slint-ui.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
Co-authored-by: Florian Blasius <flovansl@fedora.fritz.box>
2023-12-11 14:44:05 +00:00
ogoffart
b081c489d6
Bump version number to 1.4.0
2023-12-11 11:21:37 +00:00
Florian Blasius
6d6b18300a
added focus state to StandardLIstView ( #4086 )
...
* added focus state to StandardLIstView
* (wip) focus handling for qt style
* Update CHANGELOG.md
Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
* Share StandardListView between all styles
* Update internal/compiler/widgets/material-base/combobox.slint
Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
* code review feedback
---------
Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
2023-12-08 10:58:58 +01:00
Florian Blasius
c53a70db8d
fixed cupertino spinbox, move more code to base ( #4083 )
2023-12-07 14:53:31 +01:00
Florian Blasius
5d34c8307b
combobox fix mouse wheel selection direction ( #4091 )
2023-12-07 14:53:02 +01:00
ogoffart
b9255ab8e2
Bump version number to 1.3.2
2023-12-01 08:05:15 +00:00
Olivier Goffart
41f7275c35
Fluent: fix disabled LineEdit
...
The `color` is the Rectangle's deprecated alias to background. I wonder why we don't get a warning though.
It was meant to change the text-color
2023-12-01 07:25:00 +01:00
Florian Blasius
e55bde4c97
fix lineedit callbacks ( #4028 )
2023-11-29 06:13:23 +01:00
Florian Blasius
6963aefb7b
make fluent scrollbar bigger
2023-11-27 22:21:52 +01:00
Olivier Goffart
017448893a
Fix LineEdit with right alignment ( #4016 )
...
* Fix LineEdit with right alignement
- Align the placeholder the same way
- Make sure the cursor is visible to the right (it is drawn outside of
the TextInput, so some size need to be accounted for
(Discussed in https://github.com/slint-ui/slint/discussions/3996 )
2023-11-27 18:52:54 +01:00
Florian Blasius
c00a21d651
make use of textinputbase ( #4014 )
2023-11-27 08:50:29 +01:00
Olivier Goffart
e27a662019
Revert "Clip button texts"
...
This reverts commit 19e1cd8ac2
.
This caused regressions as the button no longer have the proper minimum
size.
Fixes #3985
Reverts #3977
2023-11-23 08:53:12 +01:00