Dirley Jordan
35b9c1e738
Fix a positive minimum causing an incorrect slider/spinbox value ( #5148 )
...
sets the default value to that of the minimum
2024-04-30 09:30:31 +02:00
Olivier Goffart
a3df400308
Basic tests for the Button
2024-04-26 17:25:44 +02:00
Olivier Goffart
4856f387ee
C++ Todo example: add test
2024-04-22 13:54:28 +02:00
Olivier Goffart
c2b3bbdf92
Accessibility: add accessible-label
and accessible-set-value
to LineEdit
2024-04-16 15:50:53 +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
ab86683d3c
Accessibility: add actions for the button and the spinbox
2024-04-16 12:58:31 +02:00
Olivier Goffart
eb2b7bf178
Widgets: test that widgets have the same accessible-role in all styles ( #5065 )
2024-04-15 18:15:47 +02:00
Olivier Goffart
8aac4fcc49
Qt style: Fix the Combobox has-focus should be out
...
But the Native one needs to be `in` so we can't use the Native as a base
anymore
2024-04-15 15:25:23 +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
notfirefox
2ee1ee435d
Allow scrolling through tabs for all backends
...
This allows the user to use the scroll wheel to scroll through the tabs.
In order to do this I have made created a common TabBarBase and let all
other implementations of TabBar* inherit from it. I also used slint-lsp
to format the files (it did not like the inline comments).
2024-04-15 12:10:56 +02:00
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