Florian Blasius
9e267bcc94
Add ProgressIndicator widgets ( #2792 )
...
* Add material ProgressIndicator and documentation
* Add fluent ProgressIndicator
* Add native ProgressIndicator
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update docs/language/src/builtins/widgets.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Code review
* Update internal/compiler/widgets/fluent-base/std-widgets-base.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* Update changelog
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-05-31 09:57:12 +02:00
Florian Blasius
abe558313d
material: improve groupbox visual ( #2749 )
2023-05-17 17:19:08 +02:00
Olivier Goffart
eb88a9ac9c
Adjust sizing of the AboutSlint widget
2023-05-09 12:19:18 +02:00
Olivier Goffart
6441968a43
Janitor: Remove trailing spaces in most files
2023-05-04 08:14:28 +02:00
Olivier Goffart
df2f76a65b
Make the non-native TabWidget fill the parent size when not in layout
...
Fix #2683
2023-05-04 07:23:04 +02:00
ogoffart
dfd5fc38b3
Bump version number to 1.0.3
2023-04-26 14:04:08 +00:00
ogoffart
53cce5bf44
Bump version number to 1.0.2
2023-04-26 11:33:16 +02:00
ogoffart
bd63218412
Bump version number to 1.0.1
2023-04-18 14:56:40 +00:00
Olivier Goffart
7b26d6e58f
Native ScrollView: Forward the minimum size
2023-04-13 19:23:20 +02:00
Olivier Goffart
faeaef9143
Qt TabWidget: clip the tabbar to fix the breeze style
2023-03-30 19:16:43 +02:00
Simon Hausmann
7cd090dd6d
Tweak AboutSlint
...
- Don't publicly inherit from Rectangle - let's keep that as an
implementation detail
- Provide a minimum height for the image, to avoid that it becomes
invisible (for example in `export component Example { VerticalLayout { AboutSlint { } } }`
2023-03-27 12:40:53 +02:00
Olivier Goffart
1089d29ebb
Make Empty not fill the parent by default
...
Unless `preferred-*:100%` is set
Part of #2284
2023-03-24 11:15:05 +01:00
Florian Blasius
1237707b7a
scroll-view: add min width/height vor scorll bar ( #2353 )
2023-03-09 09:08:48 +01:00
Olivier Goffart
488fb14846
Fluent style: Adjust disabled scrollbar background color
...
So that the TextEdit looks alright when disabled
Fixes #2281
2023-03-07 11:48:21 +01:00
Tobias Hunger
f7de5d4602
docs: Go over builtin_elements.md ( #2280 )
...
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2023-02-24 11:03:56 +01:00
Florian Blasius
1b04601750
std-list-view: bring selected into view ( #2246 )
...
* std-list-view: bring selected into view
* Update internal/compiler/widgets/fluent-base/std-widgets-base.slint
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
* code review
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-02-17 13:50:09 +01:00
Olivier Goffart
ca7b2e0bb8
Harmonize style properties
2023-02-10 16:49:25 +01:00
Olivier Goffart
9c20369653
Fluent style: cleanup unwanted properties
...
Don't make our widgets inherit element that we didn't want to expose in the API
The other styles will be synchronized with later
2023-02-03 20:29:26 +01:00
ogoffart
e7f48512ee
Bump version number to 1.0.0
2023-02-03 11:07:15 +01:00
Olivier Goffart
d899257225
Fixup last commit: duplicated exports
2023-01-31 09:53:49 +01:00
Olivier Goffart
6e3610da93
Remove AboutSixtyFPS
2023-01-31 09:38:56 +01:00
Olivier Goffart
a0fdf94fb1
StandardTableView: Remove the editable feature for now
...
This commit can be reverted when we want to introduce it again.
There is a few bugs with the editable property:
- The text is not in sync with the model if the model changes after an
edit. (can be seen by making an edit and then sort)
- The highlight of the current row doesn't work properly
- We should probably only edit on double click or some shortcut instead
of just clicking
- The editable field exist but does nothing for the StandardListView
2023-01-24 07:31:29 +01:00
Olivier Goffart
66b848227b
StandardTableView resizable columns
2023-01-23 16:26:49 +01:00
Olivier Goffart
fabebaa009
Adjust the look of the native StandatdTableView
...
- The header should be within the frame
- Use the NativeStandardListViewItem so we have the right alternative
row coloring and hover
2023-01-23 16:26:49 +01:00
Olivier Goffart
aad6cbbe07
StandardTableView: don't inherit from Rectangle
2023-01-23 16:26:49 +01:00
Olivier Goffart
6e87385cb3
Style: Harmonize the in/out properties accross styles
2023-01-20 16:21:59 +01:00
Olivier Goffart
6e4b1b3468
Rename the std-widgets files of style base so they are not considered as a style
...
This is just so they don't appear in the error message, and also not
being tested by #2076 (https://github.com/slint-ui/slint/pull/2076#issuecomment-1385408167 )
2023-01-17 16:21:53 +01:00
Florian Blasius
520df46998
Update examples to new syntax ( #2067 )
...
* run slint-updater on examples
* manual syntax updates
2023-01-16 12:11:25 +00:00
Florian Blasius
f2aab576f4
Add StandardTableView widget ( #2032 )
...
* Text only StandardTableView with column and rows
* Text editing of cells
* Sort by column ascending and descending
* Variants of the TableView for native, fluent and material
2023-01-12 19:41:12 +01:00
Olivier Goffart
7947d44e59
Run the syntax_updater on our widgets
...
This is commit is just the output of running the syntax updater on the
files in the internal/compiler/widgets directory.
No extra manual steps were done.
Note: In order to run the updater, I did a hack so that the updater wouldn't
choke on internal item used by the styles by commenting out the check in
ElementType::lookup_type_for_child_element
2023-01-11 10:52:48 +01:00
ogoffart
ce07d078ce
Bump version number to 0.3.4
2022-12-16 09:36:15 +00:00
Simon Hausmann
6f19ab38e7
Use re-exports in the styles to simplify their code
2022-12-09 11:05:08 +01:00
Olivier Goffart
d468bbec05
ListView: Warn when we have other elements than just a for
...
This is not supported right now, the other elements will not be part of
the layout, and two `for` will be in the same listview, creating bad
situation with the scrollbar.
This is a warning since it would be a breaking change to make it an
error.
For example, we used a FocusScope in the StandardListView implementation so
I had to go trough one level of indirection
CC: #860
2022-11-30 11:17:22 +01:00
ogoffart
fb02b4118b
Bump version number to 0.3.3
2022-11-28 13:11:11 +00:00
Simon Hausmann
885fcc1ac8
Express material design typographic tokens in relative-font-size
...
The spec at https://m3.material.io/styles/typography/type-scale-tokens defines
label-large, label-medium, etc.
relative to 16px.
2022-11-24 13:56:31 +01:00
Florian Blasius
0b66628fc4
md: add ripple effect ( #1892 )
...
* Add `StateLayer` component
* Add `Ripple` component (used by StateLayer)
* use `StateLayer` in material `Button`
* use `StateLayer` in material `Item`
2022-11-23 17:03:46 +01:00
Olivier Goffart
609b6d3a60
Use in/out/in-out in our styles
2022-11-23 13:41:28 +01:00
Simon Hausmann
883e3c472e
Fix Material Design's choice of default font
...
* Apply the "Roboto" family by default to the Window.
* Don't use "Roboto XXX" as that is not the name that's encoded as family name in the TrueType fonts. The variants should be chose based on the weight, not the family name.
* Don't apply the font family in the MD's LineEdit - that should not be necessary anymore.
2022-11-22 20:20:53 +01:00
Simon Hausmann
fd64060b26
Fix placeholder text rendered on top of cursor when empty LineEdit is focused ( #1888 )
...
Render the placeholder underneath.
2022-11-22 17:51:41 +01:00
Florian Blasius
1e23f3c34f
md: fix api of LineEdit
2022-11-17 11:42:30 +01:00
Florian Blasius
61c39b5fa1
Add support for dispatching key events through the public platform API
...
This change adds `KeyPress` and `KeyRelease` variants to the
`WindowEvent` enum, along with the new `slint::Key` enum, that allows
encoding keys.
2022-11-15 10:34:17 +01:00
Florian Blasius
575f093baf
Fixed: md TextEdit text not displayed ( #1854 )
2022-11-14 13:40:32 +01:00
Olivier Goffart
6ab6ae63d4
input output property: fix semantic with two ways bindings
2022-11-11 13:02:53 +01:00
Florian Blasius
15d9a2665b
Update background of material slider ( #1841 )
2022-11-11 11:43:24 +01:00
Florian Blasius
a3e1f9f246
Design refresh of the gallery example ( #1820 )
...
* Visual refresh of the gallery example
* Add new Navigation
* Improve layout
* Fix layout behavior of material GroupBox
2022-11-09 14:39:16 +01:00
Florian Blasius
7a01e3c0cb
md: adjust GroupBox, CheckBox and SpinBox ( #1812 )
...
Now it's also possible to toggle checked by click on the text of the CheckBox similar to fluent design
GroupBox now respect the minimum width of the title, to avoid elision
Adopt SpinBox: set focus when buttons are clicked #1795 on md SpinBox
2022-11-02 17:25:44 +01:00
Olivier Goffart
2ceafc6392
New syntax: Make it an error to set the value of a builtin output property
...
With the old syntax, this becomes a warning
2022-11-01 12:51:45 +01:00
Simon Hausmann
cecdb330f8
material design style: Replace remaining uses of pt with px
...
This is consistent with the use of `px` for the sizes and matches the expected
conversion to css pixels.
2022-10-31 21:12:52 +01:00
Florian Blasius
072d8fabcb
Add material, material-light and material-dark widgets ( #1784 )
...
Add material, material-light and material-dark widgets and make it available by the `env` `SLINT_STYLE`.
2022-10-31 14:54:50 +01:00
Tasuku Suzuki
6c4e4850f9
SpinBox: set focus when buttons are clicked
2022-10-29 09:19:55 +02:00