Olivier Goffart
0dba666d1f
Rust generator: Fix compilation returning from void callbacks
...
If a callback returning voids ends in a statement that returns something,
we would have an error in the rust generated code as we end our function
with an expression that is not `()`
2022-02-06 10:33:36 +01:00
Simon Hausmann
125b90a64b
Merge remote-tracking branch 'origin/master' into wip/rename
...
Conflicts:
api/cpp/cbindgen.rs
api/cpp/include/slint.h
examples/CMakeLists.txt
examples/imagefilter/Cargo.toml
examples/plotter/main.rs
internal/backends/mcu/lib.rs
2022-02-04 16:47:20 +01:00
Olivier Goffart
54d9ebdc19
Fix documentation warnings about non-existing links
2022-02-04 14:53:23 +01:00
Olivier Goffart
c5ef368a3f
Fix LSP semantic coloration bailing out sometimes
...
Step to reproduce:
```
xx := Window {
TouchArea {
clicked => {
if (true) {}
// note: because there is no else, the semantic colouring is bailing out now
}
}
TouchArea { clicked => {} }
}
```
This is caused by a bug in rowan::SyntaxToken::next_token that doesn't visit
the next token if it has an empty node
Unfortunately, the LSP has no tests, so I couldn't add one easily
2022-02-04 13:26:30 +01:00
Tobias Hunger
b348d1af44
PropertyAnimation: Make iteration-count: n
run animations n times
...
Side-effect: The code handles invalid inputs to duration/delay better.
2022-02-04 10:42:25 +01:00
Tobias Hunger
b4f689c3fb
object_tree: Make implementation DRYer
...
Extract common code applying default property values into a function.
2022-02-04 10:42:25 +01:00
Simon Hausmann
378483037c
Bump image and femtovg dependencies
2022-02-04 10:00:00 +01:00
Olivier Goffart
3fdab32d87
Upload a bunch of versions of the logo
...
Examples will be able to use the logo from their location in `../../../logo/xxx.svg`
Some other things that needs to have the logo in their directory can use symlinks.
But because of the situation of windows, we can't use symlink for things our users
need to build and this is the case for the compiler-internal (because the C++ build
use the code from the repository), so there is a copy of the 'full' logo in
internal/comoiler/widgets/common
2022-02-03 11:54:05 +01:00
Olivier Goffart
530a78ba54
Hack a way to have the white logo in AboutSlint on too dark background
2022-02-03 00:04:29 +01:00
Tobias Hunger
03f78af987
Update some .60 to .slint
2022-02-02 17:29:40 +01:00
Olivier Goffart
d4c1130130
Rename more occurences
2022-02-02 17:19:31 +01:00
Olivier Goffart
edaaa7fb58
Use the Slint logo in AboutSlint
2022-02-02 16:40:06 +01:00
Olivier Goffart
2f420a4676
Re-export AboutSlint as AboutSixtyFPS
2022-02-02 16:40:06 +01:00
Tobias Hunger
1534f87e30
Change authors to Slint Developers
2022-02-02 16:21:34 +01:00
Tobias Hunger
2b55c488ca
Rename sixtyfps to slint in internal
2022-02-02 16:16:55 +01:00
Simon Hausmann
b45433951a
Rename two more pre-processor variables
2022-02-02 13:39:11 +01:00
Tobias Hunger
1a0a495bc5
Rename environment variables
2022-02-02 13:35:07 +01:00
Tobias Hunger
cc3994b58d
Rename rust API
2022-02-02 13:26:35 +01:00
Tobias Hunger
ee5ae56c4a
Move api/sixtyfps-rs to api/rs/slint (no crate rename!)
2022-02-02 13:26:34 +01:00
Simon Hausmann
fcf59f3793
Rename the C++ header files
2022-02-02 13:07:26 +01:00
Simon Hausmann
7d297da2fc
Rename the sixtyfps C++ namespaces
2022-02-02 12:11:27 +01:00
Simon Hausmann
5226feab01
Rename C++ pre-processor macros
2022-02-02 12:11:27 +01:00
Simon Hausmann
c846633708
Rename C ffi functions
2022-02-02 11:12:34 +01:00
Olivier Goffart
692171bf0c
Change the 60
blocks to slint
blocs in documentation comments
2022-02-02 10:51:42 +01:00
Olivier Goffart
7a5330ac52
Re-enable and fix the tests driver after the .slint change
2022-02-02 10:20:12 +01:00
Olivier Goffart
03534039d6
Replace more .60 by .slint
...
Mainly an automated change with
git grep -O"sed -i 's/\.60/.slint/g'" -w "\.60"
and some manual checks
2022-02-02 10:12:31 +01:00
Olivier Goffart
d706d63ce1
Replace references to the .60 files that are now renamed with .slint
2022-02-02 10:12:31 +01:00
Olivier Goffart
0c0a783095
Rename all our .60 files to .slint
2022-02-02 10:05:45 +01:00
Simon Hausmann
7382ea1f2c
Rename SIXTYFPS_EMBED_RESOURCES environment variable
2022-02-02 09:10:52 +01:00
Olivier Goffart
46902a8662
Redirects and have a deprecated warning when importing sixtyfps_widgets.60
2022-02-01 19:01:28 +01:00
Olivier Goffart
0308f86cd4
Rename sixtyfps_widgets.60 to std-widgets.slint
2022-02-01 18:58:54 +01:00
Olivier Goffart
1a60171701
Allow loading .slint files in addition to .60
2022-02-01 18:58:54 +01:00
Simon Hausmann
cab22f8355
Rename the sixtyfps-compilerlib crate
2022-02-01 18:08:18 +01:00
Simon Hausmann
ad0c020aa4
Rename the sixtyfps-corelib crate
2022-02-01 18:04:30 +01:00
Simon Hausmann
0bd627cad6
Rename the common crate
2022-02-01 18:00:25 +01:00
Tobias Hunger
0d358251c9
Janitor: More clippy stuff
2022-01-31 20:59:45 +01:00
Tobias Hunger
cc568a63f5
Janitor: Fix stray @ in patterns
2022-01-31 20:59:45 +01:00
Tobias Hunger
e6b24bceec
[reorg]: Set up and populate the internal
directory
...
Move "internal" crates into the `internal` directory. This first batch
includes most of sixtyfps_runtime but leaves the rendering backends
alone for now.
pre-commit applied some cleanups to the moved files:
- Consistent newline at end of file policy
- trimming trailing whitespace
- Formatting Cargo.toml files.
2022-01-31 16:00:50 +01:00