Commit graph

30 commits

Author SHA1 Message Date
Olivier Goffart
570d1ab3bb Gallery demo: Pick the default style based on the user agent
so it looks more "native"
2024-02-01 09:13:40 +01:00
Florian Blasius
90874b0df4
Fixed style selection in wasm gallery (#4426) 2024-01-25 12:54:27 +01:00
Florian Blasius
1ca8ff517e
Added cosmic style for std-widgets. (#4350) 2024-01-16 13:21:17 +01:00
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
Aurindam Jana
f2652d955c Gallery wasm demo: Call loadGallery() once on window load 2023-09-22 11:29:08 +02:00
Aurindam Jana
96754d3148 Gallery wasm demo: Allow selection of style from url parameters 2023-09-22 00:30:36 +02:00
Olivier Goffart
adc697b1d1 cupertino: Remove experimental label 2023-09-19 13:41:30 +02:00
Olivier Goffart
cc006e8baf
Docs: Improve style documentation and mark the cuppertino style as experimental 2023-08-21 16:27:28 +02:00
Florian Blasius
80407d0375
Added cupertino style for std-widgets (#3301)
* Started with cupertino style
2023-08-21 11:04: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
Florian Blasius
ae2ec82263
Fix: unload old window in wasm gallery now correctly (#1838) 2022-11-11 09:59:02 +01:00
Olivier Goffart
2b92d4b4a3
gallery demo: update the instructions in index.html
it now needs to be build twice for the two styles
2022-11-10 07:56:49 +01:00
Florian Blasius
a2838bb6ce
Add style selection to gallery (#1826)
Add a style selection drop down for fluent and material to the gallery web export
2022-11-09 12:52:18 +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
9779408e35 Apply the loading spinner from the plotter example to the gallery 2021-08-12 10:00:44 +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
d8680c33d0 Port more wasm example to the simplified wasm 2020-12-08 13:01:02 +01:00