Simon Hausmann
4124aa79e9
Fix typos
2022-03-23 20:39:14 +01:00
Simon Hausmann
df2d6442d4
Make it possible to disable the slint compiler from the CMake build
...
This isn't always needed, for example when using only the interpreter API,
and its dependency to native libraries on Linux (namely fontconfig) makes it difficult to cross-compile with
CMake.
While cargo is invoked correctly for the native binary build, the library search paths
coming from CMake will be target specific, not host specific.
So for now this provides a way of disabling the compiler.
2022-03-22 12:59:52 +01:00
Olivier Goffart
ca5151de11
C++: implement Window::on_close_requested
2022-03-17 14:49:12 +01:00
Olivier Goffart
737109e60e
todo example: use a Dialog for the popup menu
...
So the button looks native.
and limit its size to the size of the window because it looks
bad if it is outside of the bounds.
2022-03-17 14:49:12 +01:00
Olivier Goffart
512b3decc7
Adapt the printer demo to work on the 2.8'' display
...
Part of #1015
2022-03-17 14:13:22 +01:00
Lukas Jung
2d678078d3
Add close-callback to rust todo example
2022-03-17 08:51:00 +01:00
Lukas Jung
051b753c92
Adapt Cargo.toml files to the new folder
2022-03-17 08:43:49 +01:00
Lukas Jung
8e3735d03c
move 7guis examples back to one folder
2022-03-17 08:43:49 +01:00
Lukas Jung
d903cfd226
added FilteredStringModel to crud example
2022-03-17 08:43:49 +01:00
Lukas Jung
858c327a8f
implement update and delete for crud example
2022-03-17 08:43:49 +01:00
Lukas Jung
2417869aa4
add initial rust code to crud example
2022-03-17 08:43:49 +01:00
Lukas Jung
73aa92ea10
Adapt Cargo.toml files to new directories
2022-03-17 08:43:49 +01:00
Lukas Jung
d5d3994437
move 7guis challenges to seperate folders
2022-03-17 08:43:49 +01:00
ogoffart
7b50791db4
Bump version number to 0.2.2
2022-03-10 08:48:33 +00:00
Olivier Goffart
9259413ec2
MCU cleanup
...
- Attempt to unify a bit the features so we have less #[cfg] in the demo
- Add a README
2022-03-09 20:49:46 +01:00
Olivier Goffart
3f8c3dd830
Fork the printer demo for adjusting to the MCU
...
This is basically the already modified printer demo from the wip/mcu
branch but separat. The images and fonts folder are shared though via
symlinks.
2022-03-07 22:39:06 +01:00
Simon Hausmann
3a50755cab
Add MCU board config setup ( #1006 )
...
* Add MCU board config setup
Let the mcu backend provide the link flags via I_DEP_* and the
Slint-build crate now offers a function to allow printing Slint-specific
rustc flags.
2022-03-03 13:31:40 +01:00
Olivier Goffart
cd429c5718
Update cargo-ui URL
2022-02-10 20:37:18 +01:00
ogoffart
ecd0fb7ecd
Bump version number to 0.2.1
2022-02-10 16:25:28 +01:00
Simon Hausmann
fd3419352a
janitor: Use slint instead of 60 as raw string sequence
2022-02-09 13:44:04 +01:00
Olivier Goffart
0eba0e3e4a
Leftover .60
2022-02-09 13:37:46 +01:00
Simon Hausmann
620cd84924
janitor: Fix authors line in opengl underlay example Cargo.toml
2022-02-09 13:16:10 +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
Olivier Goffart
7a735a48db
Use an external CSS for the demos
2022-02-08 14:10:39 +01:00
Tobias Hunger
d26b8d57e8
Update URL to iotdashboard sources
2022-02-08 12:16:11 +01:00
Tobias Hunger
2ebe788afe
Update some broken URLs
2022-02-08 12:14:01 +01:00
Tobias Hunger
940d1d9e2b
Use slint logo without text for window icons
...
... but slint logo with name everywhere else
2022-02-08 11:07:48 +01:00
Simon Hausmann
26d205890c
Fix up email address seen in printer demo
2022-02-08 10:39:53 +01:00
Olivier Goffart
1425ef63de
Change the Url from sixtyfps.io to slint-ui.com
...
Also, change the URL of the logo in the docs
2022-02-08 08:52:46 +01:00
Olivier Goffart
00ff5e21a7
Update git repository URL
2022-02-08 08:26:21 +01:00
Olivier Goffart
91e107150e
Merge remote-tracking branch 'origin/wip/rename'
...
Conflicts:
examples/opengl_underlay/index.html
examples/opengl_underlay/main.cpp
2022-02-08 07:29:41 +01:00
Tobias Hunger
ca469048c6
Replace cat picture used in examples
...
* Use a jpg over an png, which is much smaller
* Do not round the image
* Change the image file extensions used in the demos to reflect the
actual image format being used
* Do not use symlinks for images: This breaks the WASM demos
2022-02-07 15:29:13 +01:00
Simon Hausmann
015a06e2ff
Fix up links for the opengl underlay HTML
...
Don't link to the .60 file, that's not interesting. Link to the directory with the Rust and C++ source code
2022-02-07 11:39:44 +01:00
Olivier Goffart
16d4d2429a
Printer Demo: ability to change the image in the preview
2022-02-07 10:32:03 +01:00
Simon Hausmann
0b6beb081b
Minor fixup to the C++ rendering notifier API
...
Add the graphics state enum to the callback, too. When we add support for different backends,
it would be nice if it didn't require an API change.
It's duplicated from Rust
because it doesn't provide values. The WebLG one doesn't make sense for C++ and
the proc address closure isn't ffi safe.
(It could be manually bridged thought)
2022-02-07 08:50:09 +01:00
Olivier Goffart
c245c0f941
Adapt the todo index.html style
...
Somehow i had forgot to update this one
2022-02-04 18:44:44 +01:00
Olivier Goffart
d2700cafe2
Adapt the opengl_overlay examples to Slint a bit more
2022-02-04 17:59:26 +01:00
Olivier Goffart
4115af88bd
Fixup previous merge
2022-02-04 17:43:15 +01:00
Simon Hausmann
1314aa97bf
Apply the renaming also to the new opengl_underlay example pulled from master
2022-02-04 17:00:32 +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
Simon Hausmann
0e6b4080d6
Add a Rust example that demonstrates GL rendering under a scene
2022-02-04 15:41:53 +01:00
Tobias Hunger
8d8597f320
Update logo and colors used in memory example
...
Use a custom logo version there over the `real` one to keep the example
self-contained in its directory.
2022-02-04 14:28:10 +01:00
Tobias Hunger
ade7c23bf6
Move vscode-extension logo into logo directory
...
* Give it a name that matches the svg it was created from
* Update gallery example to use the same logo
* Create a smylink to the old name in vscode-extension as that needs the
icon to be in that directory.
2022-02-04 12:09:21 +01:00
Simon Hausmann
378483037c
Bump image and femtovg dependencies
2022-02-04 10:00:00 +01:00
Olivier Goffart
6d9763a080
Improve a bit the plotter example
...
Make the slider change the amplitude of the graph,
and the pitch and yaw can be changed by dragging the graph
2022-02-03 18:03:06 +01:00
Olivier Goffart
40fc7422ea
Style the demo index.html with a dark background
...
Note that the slide_puzzle is a bit different because it tries to
fill the viewport with the canvas
2022-02-03 16:41:56 +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
7bf6c4826f
Fix a few more occurences of slixtyfps
2022-02-02 17:01:00 +01:00
Tobias Hunger
1534f87e30
Change authors to Slint Developers
2022-02-02 16:21:34 +01:00