Commit graph

383 commits

Author SHA1 Message Date
FloVanGH
4b6b64f521
Select text on SpinBox on double click (#6157)
* Select text on SpinBox on double click

* Update CHANGELOG.md

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Code review feedback

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-09-16 09:01:10 +00:00
FloVanGH
2e383e3d84
Fixed button of cup. ComboBox not centered on bigger height (#6155)
* Fixed button of cup. ComboBox not centered on bigger height
* Update CHANGELOG.md

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-09-16 07:30:23 +00:00
Arnold Loubriat
7e236017a7 Apply AccessibleRole::ListItem to the standard ListItem component 2024-09-16 09:15:39 +02:00
FloVanGH
5b8f68f43b
visual clamp slider (#5967) 2024-08-28 10:41:24 +00:00
FloVanGH
039f33eaae
Added scrolled callback to ListView and ScrollView (#5964) 2024-08-27 10:18:43 +00:00
FloVanGH
c9f005b40a
Fixed TimePickerPopup does not open minute view by click on selected hour (#5959) 2024-08-27 09:56:55 +00:00
FloVanGH
7a0c3dcc50
Do not trigger current-item-changed on StandardListView if current-item is set on the same value (#5958) 2024-08-27 07:22:18 +00:00
Olivier Goffart
686f5e43e2 Widget style: simplify -light/-dark handling
Instead of having all style duplicated and re-using a base, we just hack
into the funciton that queries the dark/light theme based on the style
suffix known at compile time.

This removes one of the problem that happens when trying to work on the
widget style with the extension, as it relies on include path hacks
2024-08-20 16:55:15 +02:00
ogoffart
4dd7d96a28 Bump version number to 1.8.0 2024-08-15 12:44:46 +00:00
Simon Hausmann
641b833c91 Fix TextEdit not invoking edited callbacks
Fixes #5848
2024-08-15 10:10:08 +02:00
ogoffart
bbf7edc5a3 Bump version number to 1.7.2 2024-08-09 09:52:17 +00:00
FloVanGH
9b7397f9ac
Fixed text input on 24hour time picker (#5723) 2024-07-31 07:00:37 +00:00
Olivier Goffart
f36fed2252 Combobox: Fix ComboBox having a too big popup when it has less than 6 items
Fix #5646

Qt is a bit more involved since it always put scrollbar if there is a ScrollArea and we can't
easily know the size to which make the popup. That's why it needs two popups
2024-07-23 14:18:16 +02:00
ogoffart
aa25e3cd44 Bump version number to 1.7.1 2024-07-23 12:05:34 +00:00
Florian Blasius
806d12bcb3
Made ComboBox scrollable (#5581) 2024-07-12 15:14:00 +02:00
Simon Hausmann
c81ab5cd6d Remove hard-coded sizes from date and time picker popups
Use the layout and position the popup centered relative to its parent.
2024-07-10 13:43:41 +02:00
Florian Blasius
6e2013e4ff
API Review: DatePicker and TimePicker (#5582) 2024-07-09 22:16:54 +02:00
Olivier Goffart
66370b6bda
Add export { ... } from "....slint"; syntax. (#5533) 2024-07-03 12:50:40 +02:00
Arnold Loubriat
ce2db77e88
Add the accessible-placeholder-text property (#5464) 2024-06-26 12:59:22 +02:00
Olivier Goffart
a4c0cc9f09 Move the used_types from the (root) Component in the Document
Preparation for multi-components

Note that this had to rename one instance of TextStyle because it
conflicts with the struct of the same name used in the FontSettings
in the style. This wasn't a problem before because it shares some
property in common, and the the order of processing of component has
changed leading to the other one being generated.
(But that is a wider bug in the compiler outside of the scope of this
refactoring)
2024-06-20 12:03:38 +02:00
Olivier Goffart
b5aea0ed64
Spinner: simplify the arc path (#5420)
Since we use the stroke and stroke with, then a single arc is enough
instead of two connected by lines
2024-06-18 15:52:17 +02:00
Daniel Stuart
9f63d157d1 Add character wrapping for Qt Backend
This adds a new wrapping mode called `char-wrap`, which allows for wrapping at any character.
Currently, it only supports the Qt backend, with the other backends falling back to `word-wrap` when this option is selected.
2024-06-17 23:52:04 -07:00
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
Simon Hausmann
97dc776557 Add missing accessible-action-default for Switch
... and fix Switch defaults to match the docs for all styles.
2024-06-06 01:15:05 -07:00
Florian Blasius
557c95d0eb TimePicker: Fix foreground of selected input for cosmic 2024-06-06 09:53:29 +02:00
Simon Hausmann
8cc2620dee Fix up clock and keyboard icon in the qt style
These were originally copied from cosmic but should come from material, as the other icons from the date picker PR.
2024-06-06 09:28:56 +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
Simon Hausmann
b162e9df45 Make it possible to toggle the state of checkboxes via accessibility 2024-06-05 09:51:41 -07:00
Florian Blasius
3ccee816be
Added TimePicker widget (#5251) 2024-06-05 15:23:06 +02:00
Olivier Goffart
7f014050ac Qt StandardTableView: properly elide the cell in the text
Contrary to the ListView that needs a minimum size and can be scrolled,
the TableView needs the cell to be ellided and don't have a minimum size

Fixes #5285
2024-06-05 12:29:43 +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
Arnold Loubriat
0b8a0a90dd Also fix the Qt theme 2024-06-03 01:38:06 -07:00
Arnold Loubriat
f97de46c6f Set accessible min/max values on progress indicator widgets 2024-06-03 01:38:06 -07:00
Simon Hausmann
d183498c4e Add support for step-size to SpinBox rendered by the Qt style
Fixes #5325
2024-05-31 09:45:29 -07: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
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