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
Simon Hausmann
5c3aa0f46d
Rename "Online Editor" to "SlintPad"
2023-03-29 08:57:40 +02:00
Olivier Goffart
4f3d0954fe
Online code editor: add a "load_demo" url argument
...
that loads the demo based on the current version of the editor
2023-01-25 11:11:57 +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
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
Olivier Goffart
d706d63ce1
Replace references to the .60 files that are now renamed with .slint
2022-02-02 10:12:31 +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
06c15df76a
Apply the loading spinner from the plotter example to the printer demo
2021-08-12 10:11:40 +02:00
Simon Hausmann
7773678e22
Simplify wasm "startup" code
...
Apply the simplification of 2398d00e6f
to all
index.html files we use. An async function
can be called directly.
2021-04-14 09:36:33 +02:00
Olivier Goffart
6d112465d1
Attempt to simplify the wasm build
2020-12-08 11:51:10 +01:00