Tobias Hunger
18cbda0269
janitor: Run cargo clippy --fix
2022-05-22 11:59:00 +02:00
Olivier Goffart
226ceca58d
Native style: Fix crash when opening a combobox
...
Bug introduced by https://github.com/slint-ui/slint/pull/1231
2022-05-09 17:27:32 +02:00
Olivier Goffart
0c19751a1e
Qt: do not wrap QPainter directly, but use a unique_ptr instead
...
Because QPainter can't be relocated.
Fixes #1230
2022-05-05 13:50:26 +02:00
Tobias Hunger
9ef1f08163
Take alignment from QStyle infos into account when rendering the TabBar
2022-04-20 15:19:16 +02:00
Tobias Hunger
6c10edc957
Draw focus rect on focused tabs
2022-04-20 15:19:16 +02:00
Olivier Goffart
f117cb77cc
NativeSpinBox: Handle the key press in native code
2022-04-19 11:27:19 +02:00
Tobias Hunger
df9f86ba4a
janitor: cspell fixes
2022-04-13 14:42:32 +02:00
Tobias Hunger
2c82fd7618
Tab: Make tab accept keyboard
2022-04-13 14:42:32 +02:00
Tobias Hunger
57e120509d
qt: Handle focus in checkbox
2022-04-08 08:32:05 +02:00
Tobias Hunger
70cfc33659
qt: Handle focus in native button
2022-04-08 08:32:05 +02:00
Lukas Jung
10dc49d294
don't draw lineEdit's focus ring if it is not enabled
2022-03-09 19:52:18 +01:00
Lukas Jung
dba6f11aec
make SpinBox only focusable if enabled
2022-03-02 17:51:31 +01:00
Lukas Jung
7e21e16e2e
change the qstyle of NativeSpinBox when rendering
2022-03-02 17:51:31 +01:00
Lukas Jung
c15b0e1486
Add focus and keyboard control to native/qt spinbox
2022-03-02 17:51:31 +01:00
Jared Moulton
fdbc8056b3
Add an option to draw *'s instead of characters for password fields
2022-03-02 15:47:32 +01:00
n-raine
beda5aca07
Add dark style detection support for GL backend
...
With the help of dark-light crate this is now exposed as dark-style
boolean property in NativeStyleMetrics.
Co-authored-by: Olivier Goffart <olivier@slint-ui.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2022-03-01 16:41:20 +01:00
Olivier Goffart
0ab86bc0d1
Fix initialization of NativeStyleMetrics with the interpreter
2022-03-01 11:28:55 +01:00
Olivier Goffart
0dc188f328
Support for referring to other globals from globals
...
- We need to make sure that the initialization of global is in the right order.
- In C++ and rust, we need to add accessor to the global component
- There can be `PropertyReference::Global` in binding of globals
- The interpreter globals need to hold references to the global they may depend on
Fixes #175
2022-02-28 10:14:34 +01:00
Tobias Hunger
6795d3ee00
Introduce a FocusEventResult enum ( #975 )
2022-02-21 17:43:41 +01:00
Simon Hausmann
b65b66b871
Replace use of SFPS prefix in Qt wrapper functions
2022-02-14 16:17:55 +01:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
...
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Tobias Hunger
de4e195280
Rename internal crates and add a README.md to them
...
The README.md contains the warning that used to be in lib.rs.
Add README.md files to all internal crates
... pointing to the official public crate to use instead.
Rename internal crates
fixup: README files
fixup rename
2022-02-07 13:12:48 +01:00
Olivier Goffart
c00884d5a2
Rename SixtyFPSElement
2022-02-02 14:29:30 +01:00
Simon Hausmann
7d297da2fc
Rename the sixtyfps C++ namespaces
2022-02-02 12:11:27 +01:00
Simon Hausmann
c846633708
Rename C ffi functions
2022-02-02 11:12:34 +01:00
Simon Hausmann
ad0c020aa4
Rename the sixtyfps-corelib crate
2022-02-01 18:04:30 +01:00
Tobias Hunger
a3b86690ff
[reorg]: Move the rendering backends into internal
2022-01-31 16:00:50 +01:00