Commit graph

17 commits

Author SHA1 Message Date
Olivier Goffart
0359071b1e
Winit initial size adjustments and wasm size fixes
Following the winit 0.29 merge, a few adjustments are in order:

 - Make slint::Window.set_size() before show keep the size
 - on wasm, attempt to keep the size of the canvas from CSS
 - on wasm, one must set the width and height explicitly on the canvas
   otherwise there is wierd scaling
 - on wasm, we can't set None as maximum or minimum size otherwise winit
   panics
 - It seems that the hack we had to keep the size in range is no longer
   necessary
 - The hack in the slide puzzle can be removed. (but unfortunately it
   doesn't follow resizes

Unfortunatelly we always call set_inner_size to avoid infinite loop when
the css properties are not specificed, so this will override layouts

Also we don't default anymore to the preferred size

* Update internal/backends/winit/winitwindowadapter.rs
2023-10-24 15:28:18 +02:00
Olivier Goffart
11dea135f7 Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Aurindam Jana
e4338300de
Change license for examples to MIT (#2887) 2023-06-15 11:23:17 +02: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
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
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
Olivier Goffart
3594c20153 Replace SixtyFPS in many locations (Uppercase) 2022-02-02 15:49:18 +01:00
Tobias Hunger
0fc176a408 Document some licenses in a REUSE compliant way 2022-01-19 11:25:21 +01:00
Olivier Goffart
013eee351c Wasm demos: add touch-action: none to all canvas
So that the Slider, Flickabke and such works on android/chrome
2021-08-20 09:33:49 +02:00
Tobias Hunger
aea4ecca99 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
Olivier Goffart
429e5bdb07 Add link to SixtyFPS homepage from the wasm demo pages 2021-08-12 14:19:29 +02:00
Simon Hausmann
3456842c8a Simplify spinner stopping a little bit
Calling the async function returns a promise, which we can just hook into via finally().

That's less lines of code
2021-08-12 09:58:28 +02:00
Simon Hausmann
9546f8caa7 Shrink the spinner CSS a little bit
... by disabling vscode's beautify formatter.
2021-08-12 09:58:28 +02:00
Simon Hausmann
b2fb339df9 Add a simple loading spinner animation for the plotter wasm demo 2021-08-12 09:58:28 +02:00
Simon Hausmann
8903adb584 Add a WASM build of the plotters example
... which uses an intermediate drawing backend to skip the text on the axis, as
that requires TrueType fonts form the filesystem.
2021-08-11 16:19:10 +02:00