Florian Blasius
1d92d29649
DatePicker: Fix bug where switch from input to selection clears date text
2024-06-14 06:43:28 +00:00
Florian Blasius
029ed7e4c2
DatePicker: fix selection on month navigation
2024-06-14 06:43:28 +00:00
Florian Blasius
557c95d0eb
TimePicker: Fix foreground of selected input for cosmic
2024-06-06 09:53:29 +02:00
Olivier Goffart
3da0ee5bb9
DatePicker: Logic in C++
...
Had to simplify a bit the rust logic to make it work
2024-06-06 09:03:50 +02:00
Florian Blasius
973ecac989
DatePicker: finished features
2024-06-06 09:03:50 +02:00
Florian Blasius
f75cedb893
DatePicker: calendar
2024-06-06 09:03:50 +02:00
Florian Blasius
fe6dba9779
DatePicker: base setup
2024-06-06 09:03:50 +02:00
Florian Blasius
3ccee816be
Added TimePicker widget ( #5251 )
2024-06-05 15:23:06 +02:00
Simon Hausmann
c27cbb94a6
Simplify spinbox test
...
Replace dummy accessible-label use with the new element id lookup mechanism for testing.
2024-06-05 01:29:58 -07:00
ogoffart
3a6e34ba45
Bump version number to 1.7.0
2024-06-04 20:34:29 +00: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
Florian Blasius
dc4e421f2c
Added step-size to SpinBox ( #5293 )
2024-05-31 09:45:37 +00: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
Florian Blasius
5313044f36
Fix text update of SpinBox ( #5243 )
2024-05-16 05:07:48 +00:00
Florian Blasius
310b01a2e2
ComboBox reset current on model changed ( #5217 )
...
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-05-15 14:28:57 +02:00
Florian Blasius
a3d4112897
Added placeholder-text to TextEdit ( #5239 )
...
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-05-15 10:20:13 +00:00
Florian Blasius
bd777b4312
Added TextEditBase ( #5236 )
2024-05-15 06:26:50 +02:00
Simon Hausmann
d03a6f0071
Fix Slider's released callback not being invoked when the user releases it outside the widget's boundaries
...
Fixes #5173
2024-05-09 14:14:09 +02:00
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
4856f387ee
C++ Todo example: add test
2024-04-22 13:54:28 +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
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
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
Laurent Montel
7ab5d7f5a1
Add missing accessibility in common textedit
2024-03-21 17:14:38 +01:00
Montel Laurent
da30fa2663
Add ListView accessibility role ( #4911 )
2024-03-21 15:20:43 +01:00
ogoffart
20c570ab1d
Bump version number to 1.5.1
2024-03-18 08:55:01 +00:00
ogoffart
a0eed4e58e
Bump version number to 1.5.0
2024-02-20 17:33:11 +00:00
ogoffart
fec2b961db
Bump version number to 1.4.1
2024-02-01 09:12:42 +00:00
Florian Blasius
866300c34b
Improved Slider drag and click behaviour ( #4406 )
2024-01-24 13:12:36 +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
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
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
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
ogoffart
0a5bf6c37b
Bump version number to 1.3.1
2023-11-23 07:47:07 +00:00
Florian Blasius
110689bad1
Added Spinner widget ( #3871 )
2023-11-07 15:04:24 +01:00
Florian Blasius
10066c5eef
cleanup widgets according to upcoming code guidelines ( #3771 )
2023-10-30 10:45:25 +01:00