Commit graph

11675 commits

Author SHA1 Message Date
Simon Hausmann
b7e4945588 Fix AccessKit version 2024-07-18 08:27:54 +02:00
Update Translations Bot
8714facc7e Update Translations: extract strings 2024-07-18 03:05:29 +00:00
Aurindam Jana
eb804ec25d
Use App Token instead of ssh to access org repos (#5638) 2024-07-17 21:07:31 +02:00
Tobias Hunger
3f41b6f69d live-preview: Make component selection more robust
... by not relying on the component name, which could be used in several
files.
2024-07-17 17:52:12 +02:00
Tobias Hunger
11b0b75e71 live-preview: Fix drops being off by several (hundred!) pixels at times
We did not take the scroll view being scrolled into account, so the drop
location was off by a bit, especially for elements shown far down the list.
2024-07-17 17:16:50 +02:00
Simon Hausmann
3cd0db09e2 Various ChangeLog edits/massaging 2024-07-17 15:50:34 +02:00
Simon Hausmann
fe842a8ae4 Add to MCU related changelog entries 2024-07-17 14:49:12 +02:00
Simon Hausmann
765248e0ee Add entry for PopupWindow x/y fix 2024-07-17 14:06:38 +02:00
Simon Hausmann
f91670dcfd Fix date/time picker type names in the gallery 2024-07-17 14:04:31 +02:00
Simon Hausmann
c0b4aaa07a Some minor changelog corrections 2024-07-17 13:55:57 +02:00
Simon Hausmann
2ef01bfd48 Add an animation to the test window
This helps to see if the window freezes when re-showing it.
2024-07-17 11:33:07 +02:00
Simon Hausmann
6ddd4d0e04 Bump Python Alpha version 2024-07-17 11:32:19 +02:00
Simon Hausmann
b12b05ee10 doc: Fix intro that claimed that Compiler provided ComponentDefinition
There's a CompilationResult inbetween first.
2024-07-17 11:20:27 +02:00
Simon Hausmann
7141e5fa3d Fix broken note rendering
colon_fence in myst still requires curly braces to render the directive correctly.
2024-07-17 10:58:43 +02:00
Simon Hausmann
c5f7c38914 esp-idf: Silence compilation warning by avoiding deprecated syntax 2024-07-17 10:41:34 +02:00
Simon Hausmann
f4ac8eb859 Fix embedding of default bitmap font
Commit 3764312561 accidentally chained filter_map so that the list of default (fallback) fonts was empty. That resulted in
a simple hello world (with no custom fonts) embedding no font at all and causing a run-time error.
2024-07-17 10:37:33 +02:00
aurindam
18bbd6ba1c Revert "Update build_docs.yaml" 2024-07-17 00:45:58 +02:00
aurindam
941b2c0989 Update build_docs.yaml
Use WEBSITE_READ_SSH_KEY variable
2024-07-17 00:34:24 +02:00
aurindam
64e6df0b19 Update build_docs.yaml 2024-07-16 22:57:13 +02:00
Tobias Hunger
f9320b4aff live-preview: Low-hanging fruit in the Property editor
* Resizing the key field works again (using an invisible hand-crafted splitter)
* The color of the active/inactive `f(x)` icon was inversed as suggested by
  Daniel.
2024-07-16 18:27:47 +02:00
Tobias Hunger
3733070c33 live-preview: Remove the functionality to add components 2024-07-16 14:20:46 +02:00
Tobias Hunger
a85a1cdca1 live-preview: Disable switching between Components
Disable switching components by clicking on the component name in the
library.
2024-07-16 14:20:27 +02:00
Tobias Hunger
a384d957b4 live-preview: Disable the Component Label
It is too ugly and since we can no longer add components, it is not absolutely
necessary to rename comoponents either.
2024-07-16 14:20:13 +02:00
Tobias Hunger
c260fe892d vscode: Fix error while loading our extension 2024-07-16 14:19:44 +02:00
Simon Hausmann
9e8fccb742 system testing: Add support for dispatching pointer and key window events 2024-07-16 14:10:22 +02:00
Tobias Hunger
ab4ba0f164 live-preview: Only allow one workspace edit to be active at a time
Stop several changes to a version of a text file to be bunched up, ending
in several contradictory edits to the same file.
2024-07-16 13:04:06 +02:00
Tobias Hunger
61e13adf92 live-preview: Wrap sending a workspace edit into a helper function
... that forwards the appropriate message to our LSP to forward it on to
the editor.
2024-07-16 13:04:06 +02:00
Florian Blasius
ed8b05548d
lsp-ui: apply ux feedback for headers (#5628) 2024-07-16 11:57:13 +02:00
Tobias Hunger
c7f5e8df2e live-preview: Never report "Empty" as a base type of an element
... in the properties view.
2024-07-15 16:28:50 +02:00
Simon Hausmann
52f8249189 testing: Minor rename after a quick round of API review
- ElementHandle::match_descendants() becomes ElementHandle::query_descendants() to emphasize that this creates a query.
- Added ElementQuery::from_root() to remove the need to use the ElementRoot trait.
2024-07-15 11:30:34 +02:00
Simon Hausmann
790ae9c1bb Remove last use of ElementHandle::visit_elements from Rust testing API 2024-07-15 11:30:34 +02:00
Simon Hausmann
c90abe0539 Switch Rust Todo app unit testing to use the new API to lcoate the line edit. 2024-07-15 11:30:34 +02:00
Simon Hausmann
1c2a8f2d2f Replace uses of ElementHandle::visit_elements with matches 2024-07-15 11:30:34 +02:00
Simon Hausmann
b67fcce4a3 Add a new descendants api as well as deeper element queries to ElementHandle 2024-07-15 11:30:34 +02:00
Rafael Bachmann
19116252f4 Fix cheating in memory game
one could cheat :) by simply clicking again on an opened tile, closing it again.
2024-07-15 09:34:26 +02:00
Simon Hausmann
a4ce75de69 Remove extra vertical spacing between the header view and the library/preview/property. 2024-07-15 09:26:32 +02:00
Tobias Hunger
588ee3e474 slintpad: Remove all but editor and live preview window
Gets rid of a lot of code and opens up the window to use other UI toolkits.
Lumino was the only one I found that had the drag and drop panels and such.
2024-07-12 17:28:28 +02:00
Tobias Hunger
99098b3978 slintpad: Fix showDocument sent from LSP
The latest version of the monaco LS integration has changed how
to show documents in an editor again. We would need to include even more
services to make it automatically handle the `showDocument` the LS sends.

Instead just handle the request going around the "official" API.
2024-07-12 15:46:06 +02:00
Tobias Hunger
edea933b91 live-preview: Do not focus VSCode all the time
This makes is more convenient to work with the UI to me.
2024-07-12 15:46:06 +02:00
Tobias Hunger
5c827041aa slintpad: Update monaco editor
... which fixes the `byName` issue once again.
2024-07-12 15:46:06 +02:00
Florian Blasius
96f2f15552
editor: added borders to groups (#5612) 2024-07-12 15:24:35 +02:00
Florian Blasius
806d12bcb3
Made ComboBox scrollable (#5581) 2024-07-12 15:14:00 +02:00
Simon Hausmann
16996dfa16 Fix flicker in the component list in design mode
Since the category items have different heights, the extrapolation of the listview to compute the correct scrollbar height will always be off, unless listview instantiated all items.

So let's do that by hand and use a ScrollView.
2024-07-12 09:13:55 +02:00
Simon Hausmann
4c73006bf9 Remove stray imports of StyleMetrics
These are not needed AFAICS.
2024-07-12 09:13:35 +02:00
Florian Blasius
2b129b87c4 Merge branch 'master' of github.com:slint-ui/slint 2024-07-12 06:28:57 +02:00
Florian Blasius
ca5ac29665 Editor: increase group header min height 2024-07-12 06:28:46 +02:00
Simon Hausmann
e3aab79fdb Python: Improve Struct mapping
When reading, create the local equivalent of a dataclass, so that access
doesn't require ["foo"] key syntax.

Also implement the copy protocol, so that we can safely make clones of
the references returned by the ListModel.
2024-07-11 22:08:10 +02:00
Simon Hausmann
0b6381d012 Python: Fix access to globals when there's more than one
The getter for the global didn't capture the correct global_class,
just the last iteration.

This fixes the broken printer demo.
2024-07-11 22:00:39 +02:00
Florian Blasius
86cde942b7 editor: fixed different bar heights 2024-07-11 20:07:47 +02:00
Tobias Hunger
10ca3de1ed compiler: Add a really simple snapshot test 2024-07-11 19:09:26 +02:00