Change the Url from sixtyfps.io to slint-ui.com

Also, change the URL of the logo in the docs
This commit is contained in:
Olivier Goffart 2022-02-08 08:48:24 +01:00
parent d1e48540e1
commit 1425ef63de
99 changed files with 161 additions and 161 deletions

6
FAQ.md
View file

@ -42,7 +42,7 @@ languages.
Slint is available under two licenses: Slint is available under two licenses:
* GPLv3, for the growing ecosystem of Free and Open Source Software. * GPLv3, for the growing ecosystem of Free and Open Source Software.
* Commercial, for use in closed-source projects. See <https://sixtyfps.io/#offering> * Commercial, for use in closed-source projects. See <https://slint-ui.com/#offering>
## What is the commercial licensing model? ## What is the commercial licensing model?
@ -52,7 +52,7 @@ We offer a perpetual license option and we generally deploy a per-product licens
If this doesn't fit you, don't hesitate to contact us and we'd be happy to work together to find a solution. If this doesn't fit you, don't hesitate to contact us and we'd be happy to work together to find a solution.
You can find a more detailed overview of our commercial licensing and the pricing at <https://sixtyfps.io/pricing.html>. You can find a more detailed overview of our commercial licensing and the pricing at <https://slint-ui.com/pricing.html>.
## Can I try Slint using the GPL version and then switch to the commercial license later? ## Can I try Slint using the GPL version and then switch to the commercial license later?
@ -63,7 +63,7 @@ developing needs to be accounted for. However, support for bug fixes requires a
## Is there a discount or reduction for independent developers or small businesses? ## Is there a discount or reduction for independent developers or small businesses?
Yes, check out our [Ambassador program](https://sixtyfps.io/ambassador-program.html) Yes, check out our [Ambassador program](https://slint-ui.com/ambassador-program.html)
## I want to develop a free software product using Slint, but I don't like the GPL and prefer to use a non-copyleft license. ## I want to develop a free software product using Slint, but I don't like the GPL and prefer to use a non-copyleft license.

View file

@ -34,9 +34,9 @@ Slint is in active development. Its state of development depends on the kind of
Refer to the README of each language directory in the `api` sub-folder: Refer to the README of each language directory in the `api` sub-folder:
* [SixtyFPS-cpp](api/cpp) ([Documentation](https://sixtyfps.io/docs/cpp) | [Tutorial](https://sixtyfps.io/docs/tutorial/cpp) | [Tutorial Video](https://youtu.be/_-Hxr6ZrHyo) | [Getting Started Template](https://github.com/sixtyfpsui/sixtyfps-cpp-template)) * [SixtyFPS-cpp](api/cpp) ([Documentation](https://slint-ui.com/docs/cpp) | [Tutorial](https://slint-ui.com/docs/tutorial/cpp) | [Tutorial Video](https://youtu.be/_-Hxr6ZrHyo) | [Getting Started Template](https://github.com/sixtyfpsui/sixtyfps-cpp-template))
* [SixtyFPS-rs](api/sixtyfps-rs) [![Crates.io](https://img.shields.io/crates/v/sixtyfps)](https://crates.io/crates/sixtyfps) ([Documentation](https://sixtyfps.io/docs/rust/sixtyfps/) | [Tutorial](https://sixtyfps.io/docs/tutorial/rust) | [Tutorial Video](https://youtu.be/_-Hxr6ZrHyo) | [Getting Started Template](https://github.com/sixtyfpsui/sixtyfps-rust-template)) * [SixtyFPS-rs](api/sixtyfps-rs) [![Crates.io](https://img.shields.io/crates/v/sixtyfps)](https://crates.io/crates/sixtyfps) ([Documentation](https://slint-ui.com/docs/rust/sixtyfps/) | [Tutorial](https://slint-ui.com/docs/tutorial/rust) | [Tutorial Video](https://youtu.be/_-Hxr6ZrHyo) | [Getting Started Template](https://github.com/sixtyfpsui/sixtyfps-rust-template))
* [SixtyFPS-node](api/node) [![npm](https://img.shields.io/npm/v/sixtyfps)](https://www.npmjs.com/package/sixtyfps) ([Documentation](https://sixtyfps.io/docs/node)) * [SixtyFPS-node](api/node) [![npm](https://img.shields.io/npm/v/sixtyfps)](https://www.npmjs.com/package/sixtyfps) ([Documentation](https://slint-ui.com/docs/node))
The [examples](/examples) folder contains examples and demos. The `docs` folder contains [build instructions](docs/building.md) and [internal developer docs](docs/development.md). The [examples](/examples) folder contains examples and demos. The `docs` folder contains [build instructions](docs/building.md) and [internal developer docs](docs/development.md).
@ -47,13 +47,13 @@ Click on the screenshots to run the WebAssembly simulation
| Printer Demo | Slide Puzzle | Todo | Widget Gallery | | Printer Demo | Slide Puzzle | Todo | Widget Gallery |
|--------------|----------------|----------------|----------------| |--------------|----------------|----------------|----------------|
| [![Screenshot of the Printer Demo](https://sixtyfps.io/resources/printerdemo_screenshot.png "Printer Demo")](https://sixtyfps.io/demos/printerdemo/) | [![Screenshot of the Slide Puzzle](https://sixtyfps.io/resources/puzzle_screenshot.png "Slide Puzzle")](https://sixtyfps.io/demos/slide_puzzle/) | [![Screenshot of the Todo Demo](https://sixtyfps.io/resources/todo_screenshot.png "Todo Demo")](https://sixtyfps.io/demos/todo/) | [![Screenshot of the Gallery Demo](https://sixtyfps.io/resources/gallery_screenshot.png "Gallery Demo")](https://sixtyfps.io/demos/gallery/) | | [![Screenshot of the Printer Demo](https://slint-ui.com/resources/printerdemo_screenshot.png "Printer Demo")](https://slint-ui.com/demos/printerdemo/) | [![Screenshot of the Slide Puzzle](https://slint-ui.com/resources/puzzle_screenshot.png "Slide Puzzle")](https://slint-ui.com/demos/slide_puzzle/) | [![Screenshot of the Todo Demo](https://slint-ui.com/resources/todo_screenshot.png "Todo Demo")](https://slint-ui.com/demos/todo/) | [![Screenshot of the Gallery Demo](https://slint-ui.com/resources/gallery_screenshot.png "Gallery Demo")](https://slint-ui.com/demos/gallery/) |
## Desktop Native Widgets ## Desktop Native Widgets
| Windows | macOS | Linux | | Windows | macOS | Linux |
|---------|-------|-------| |---------|-------|-------|
| ![Screenshot of the Gallery on Windows](https://sixtyfps.io/resources/gallery_win_screenshot.png "Gallery") | ![Screenshot of the Gallery on macOS](https://sixtyfps.io/resources/gallery_mac_screenshot.png "Gallery") | ![Screenshot of the Gallery on Linux](https://sixtyfps.io/resources/gallery_linux_screenshot.png "Gallery") | | ![Screenshot of the Gallery on Windows](https://slint-ui.com/resources/gallery_win_screenshot.png "Gallery") | ![Screenshot of the Gallery on macOS](https://slint-ui.com/resources/gallery_mac_screenshot.png "Gallery") | ![Screenshot of the Gallery on Linux](https://slint-ui.com/resources/gallery_linux_screenshot.png "Gallery") |
## The .slint Markup Language ## The .slint Markup Language
@ -116,7 +116,7 @@ We have a few tools to help with the development of .slint files:
- It is bundled in a [**Visual Studio Code Extension**](./vscode_extension) accessible from the market place - It is bundled in a [**Visual Studio Code Extension**](./vscode_extension) accessible from the market place
- A [**slint-viewer**](./tools/viewer) tool which display the .slint files. With the `--auto-reload` argument, makes it easy to preview - A [**slint-viewer**](./tools/viewer) tool which display the .slint files. With the `--auto-reload` argument, makes it easy to preview
your UI as you are working it (when using the LSP preview is not possible) your UI as you are working it (when using the LSP preview is not possible)
- An [**online editor**](https://sixtyfps.io/editor) to try out .slint syntax without installing anything ([sources](./tools/online_editor)) - An [**online editor**](https://slint-ui.com/editor) to try out .slint syntax without installing anything ([sources](./tools/online_editor))
- An [**updater**](./tools/syntax_updater) to convert the .slint files from previous version to the newer version - An [**updater**](./tools/syntax_updater) to convert the .slint files from previous version to the newer version
- An experimental [**Figma importer**](./tools/figma_import) - An experimental [**Figma importer**](./tools/figma_import)
@ -134,7 +134,7 @@ We welcome your contributions: in the form of code, bug reports or feedback.
This software is provided under a dual licensing scheme: This software is provided under a dual licensing scheme:
- **GNU GPLv3**: Open source license ideal for free software. - **GNU GPLv3**: Open source license ideal for free software.
- **Commercial Slint license**: <https://sixtyfps.io/#offering> - **Commercial Slint license**: <https://slint-ui.com/#offering>
See also the [Licensing FAQ](FAQ.md#licensing) See also the [Licensing FAQ](FAQ.md#licensing)

View file

@ -2,7 +2,7 @@
# SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) # SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
cmake_minimum_required(VERSION 3.19) cmake_minimum_required(VERSION 3.19)
project(Slint HOMEPAGE_URL "https://sixtyfps.io/" LANGUAGES CXX) project(Slint HOMEPAGE_URL "https://slint-ui.com/" LANGUAGES CXX)
include(FeatureSummary) include(FeatureSummary)
include(CMakeDependentOption) include(CMakeDependentOption)
@ -242,7 +242,7 @@ set(CPACK_VERBATIM_VARIABLES true)
set(CPACK_PACKAGE_VERSION_MAJOR 0) set(CPACK_PACKAGE_VERSION_MAJOR 0)
set(CPACK_PACKAGE_VERSION_MINOR 2) set(CPACK_PACKAGE_VERSION_MINOR 2)
set(CPACK_PACKAGE_VERSION_PATCH 0) set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_PACKAGE_HOMEPAGE_URL "https://sixtyfps.io") set(CPACK_PACKAGE_HOMEPAGE_URL "https://slint-ui.com")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_LIST_DIR}/../../LICENSE.md") set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_LIST_DIR}/../../LICENSE.md")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_LIST_DIR}/README.md") set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_LIST_DIR}/README.md")
set(CPACK_STRIP_FILES ON) set(CPACK_STRIP_FILES ON)

View file

@ -10,7 +10,7 @@ build = "build.rs"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Slint C++ integration" description = "Slint C++ integration"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
publish = false publish = false
# prefix used to convey path to generated includes to the C++ test driver # prefix used to convey path to generated includes to the C++ test driver
links = "slint_cpp" links = "slint_cpp"

View file

@ -2,12 +2,12 @@
## A C++ UI toolkit ## A C++ UI toolkit
[Slint](https://sixtyfps.io/) is a UI toolkit that supports different programming languages. [Slint](https://slint-ui.com/) is a UI toolkit that supports different programming languages.
Slint.cpp is the C++ API to interact with a Slint UI from C++. Slint.cpp is the C++ API to interact with a Slint UI from C++.
The complete C++ documentation can be viewed online at https://sixtyfps.io/docs/cpp/. The complete C++ documentation can be viewed online at https://slint-ui.com/docs/cpp/.
If you are new to Slint, you might also consider going through our [Walk-through tutorial](https://sixtyfps.io/docs/tutorial/cpp). If you are new to Slint, you might also consider going through our [Walk-through tutorial](https://slint-ui.com/docs/tutorial/cpp).
## Installing or Building Slint ## Installing or Building Slint
@ -238,7 +238,7 @@ int main() {
That's it. That's it.
For more details, check the [Online documentation](https://sixtyfps.io/docs/cpp) and the full For more details, check the [Online documentation](https://slint-ui.com/docs/cpp) and the full
[Walk-through tutorial](https://sixtyfps.io/docs/tutorial/cpp). [Walk-through tutorial](https://slint-ui.com/docs/tutorial/cpp).
We also have a [Getting Started Template](https://github.com/sixtyfpsui/sixtyfps-cpp-template) repository with We also have a [Getting Started Template](https://github.com/sixtyfpsui/sixtyfps-cpp-template) repository with
the code of a minimal C++ application using Slint that can be used as a starting point to your program. the code of a minimal C++ application using Slint that can be used as a starting point to your program.

View file

@ -2,10 +2,10 @@
[![npm](https://img.shields.io/npm/v/slint-ui)](https://www.npmjs.com/package/slint-ui) [![npm](https://img.shields.io/npm/v/slint-ui)](https://www.npmjs.com/package/slint-ui)
[Slint](https://sixtyfps.io/) is a UI toolkit that supports different programming languages. [Slint](https://slint-ui.com/) is a UI toolkit that supports different programming languages.
Slint-node is the integration with node. Slint-node is the integration with node.
The complete Node documentation can be viewed online at https://sixtyfps.io/docs/node/. The complete Node documentation can be viewed online at https://slint-ui.com/docs/node/.
**Warning: Pre-Alpha** **Warning: Pre-Alpha**
Slint is still in the early stages of development: APIs will change and important features are still being developed. Slint is still in the early stages of development: APIs will change and important features are still being developed.

View file

@ -11,7 +11,7 @@ build = "build.rs"
publish = false publish = false
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Helper for Slint build script" description = "Helper for Slint build script"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]

View file

@ -41,7 +41,7 @@ fn main() {
} }
``` ```
*/ */
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#![warn(missing_docs)] #![warn(missing_docs)]
#[cfg(not(feature = "default"))] #[cfg(not(feature = "default"))]

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Macro helper for slint crate" description = "Macro helper for slint crate"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]

View file

@ -1,4 +1,4 @@
**NOTE**: This library is an **internal** crate for the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate for the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -4,7 +4,7 @@
// cSpell:ignore punct // cSpell:ignore punct
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
extern crate proc_macro; extern crate proc_macro;
use std::path::Path; use std::path::Path;

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Slint Rust API" description = "Slint Rust API"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
categories = ["gui", "rendering::engine"] categories = ["gui", "rendering::engine"]
keywords = ["gui", "toolkit", "graphics", "design", "ui"] keywords = ["gui", "toolkit", "graphics", "design", "ui"]

View file

@ -5,14 +5,14 @@
# A Rust UI toolkit # A Rust UI toolkit
[Slint](https://sixtyfps.io/) is a UI toolkit that supports different programming languages. [Slint](https://slint-ui.com/) is a UI toolkit that supports different programming languages.
Slint is the Rust API to interact with a Slint UI design from Rust. Slint is the Rust API to interact with a Slint UI design from Rust.
The complete Rust documentation can be viewed online at https://sixtyfps.io/docs/rust/sixtyfps/. The complete Rust documentation can be viewed online at https://slint-ui.com/docs/rust/sixtyfps/.
## Getting Started ## Getting Started
The [crate documentation](https://sixtyfps.io/docs/rust/sixtyfps/) shows how to use this crate. The [crate documentation](https://slint-ui.com/docs/rust/sixtyfps/) shows how to use this crate.
### Hello World ### Hello World
@ -41,7 +41,7 @@ fn main() {
} }
``` ```
The [`slint` crate documentation](https://sixtyfps.io/docs/rust/sixtyfps/) The [`slint` crate documentation](https://slint-ui.com/docs/rust/sixtyfps/)
contains more advanced examples and alternative ways to use this crate. contains more advanced examples and alternative ways to use this crate.
To quickly get started, you can use the [Template Repository](https://github.com/sixtyfpsui/sixtyfps-rust-template) with To quickly get started, you can use the [Template Repository](https://github.com/sixtyfpsui/sixtyfps-rust-template) with

View file

@ -5,9 +5,9 @@
# Slint # Slint
This crate is the main entry point for embedding user interfaces designed with This crate is the main entry point for embedding user interfaces designed with
[Slint UI](https://sixtyfps.io/) in Rust programs. [Slint UI](https://slint-ui.com/) in Rust programs.
If you are new to Slint, start with the [Walk-through tutorial](https://sixtyfps.io/docs/tutorial/rust). If you are new to Slint, start with the [Walk-through tutorial](https://slint-ui.com/docs/tutorial/rust).
If you are already familiar with Slint, the following topics provide related information. If you are already familiar with Slint, the following topics provide related information.
## Related topics ## Related topics
@ -224,7 +224,7 @@ See the [documentation of the `Global` trait](Global) for an example.
#![doc = document_features::document_features!()] #![doc = document_features::document_features!()]
#![warn(missing_docs)] #![warn(missing_docs)]
#![deny(unsafe_code)] #![deny(unsafe_code)]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc; extern crate alloc;

View file

@ -10,7 +10,7 @@ license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
publish = false publish = false
description = "Slint wasm glue" description = "Slint wasm glue"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]
crate-type = ["cdylib"] crate-type = ["cdylib"]

View file

@ -157,11 +157,11 @@ An Image can be used to represent an image loaded from an image file.
Example := Window { Example := Window {
VerticalLayout { VerticalLayout {
Image { Image {
source: @image-url("https://sixtyfps.io/resources/logo_scaled.png"); source: @image-url("https://slint-ui.com/resources/logo_scaled.png");
// image-fit default is `contain` when in layout, preserving aspect ratio // image-fit default is `contain` when in layout, preserving aspect ratio
} }
Image { Image {
source: @image-url("https://sixtyfps.io/resources/logo_scaled.png"); source: @image-url("https://slint-ui.com/resources/logo_scaled.png");
colorize: red; colorize: red;
} }
} }
@ -173,7 +173,7 @@ Scaled while preserving the aspect ratio:
```slint ```slint
Example := Window { Example := Window {
Image { Image {
source: @image-url("https://sixtyfps.io/resources/logo_scaled.png"); source: @image-url("https://slint-ui.com/resources/logo_scaled.png");
width: 270px; width: 270px;
// implicit default, preserving aspect ratio: height: self.width * natural_height / natural_width; // implicit default, preserving aspect ratio: height: self.width * natural_height / natural_width;
} }

View file

@ -69,7 +69,7 @@ We use a rather complex mechanism to expose internal data structures implemented
As a starting point, we recommend reading the blog entry we published about this: As a starting point, we recommend reading the blog entry we published about this:
[https://sixtyfps.io/blog/expose-rust-library-to-other-languages.html](https://sixtyfps.io/blog/expose-rust-library-to-other-languages.html) [https://slint-ui.com/blog/expose-rust-library-to-other-languages.html](https://slint-ui.com/blog/expose-rust-library-to-other-languages.html)
What this article omits are how we invoke cbindgen and what kind of tweaks we apply on various levels: What this article omits are how we invoke cbindgen and what kind of tweaks we apply on various levels:

View file

@ -542,7 +542,7 @@ It is possible to access the `width` and `height` of an image.
```slint ```slint
Example := Text { Example := Text {
property <image> some_image: @image-url("https://sixtyfps.io/resources/logo_scaled.png"); property <image> some_image: @image-url("https://slint-ui.com/resources/logo_scaled.png");
text: "The image is " + some_image.width + "x" + some_image.height; text: "The image is " + some_image.width + "x" + some_image.height;
} }
``` ```

View file

@ -3,8 +3,8 @@
It can be injected via the `--html-in-header slint-docs-highlight.html` option of rustdoc, is included via _templates/layout.html It can be injected via the `--html-in-header slint-docs-highlight.html` option of rustdoc, is included via _templates/layout.html
in sphinx and via head.hbs in mdbook. in sphinx and via head.hbs in mdbook.
--> -->
<link rel="stylesheet" href="https://sixtyfps.io/resources/highlightjs/11.0.1/default.min.css"> <link rel="stylesheet" href="https://slint-ui.com/resources/highlightjs/11.0.1/default.min.css">
<script src="https://sixtyfps.io/resources/highlightjs/11.0.1/highlight.min.js"></script> <script src="https://slint-ui.com/resources/highlightjs/11.0.1/highlight.min.js"></script>
<script> <script>
hljs.registerLanguage("slint", function (hljs) { hljs.registerLanguage("slint", function (hljs) {
const KEYWORDS = { const KEYWORDS = {

View file

@ -4,8 +4,8 @@
--> -->
<script type="module"> <script type="module">
"use strict"; "use strict";
//import * as slint from 'https://sixtyfps.io/releases/0.x.0/wasm-interpreter/slint_wasm_interpreter.js'; //import * as slint from 'https://slint-ui.com/releases/0.x.0/wasm-interpreter/slint_wasm_interpreter.js';
import * as slint from 'https://sixtyfps.io/snapshots/rename/wasm-interpreter/slint_wasm_interpreter.js'; import * as slint from 'https://slint-ui.com/snapshots/rename/wasm-interpreter/slint_wasm_interpreter.js';
async function render_or_error(source, div) { async function render_or_error(source, div) {
let canvas_id = 'canvas_' + Math.random().toString(36).substr(2, 9); let canvas_id = 'canvas_' + Math.random().toString(36).substr(2, 9);

View file

@ -6,4 +6,4 @@ at the [examples](https://github.com/slint-ui/slint/tree/master/examples) in the
see how these look like and can be used, such as the [todo example](https://github.com/slint-ui/slint/tree/master/examples/todo). see how these look like and can be used, such as the [todo example](https://github.com/slint-ui/slint/tree/master/examples/todo).
A slightly more polished version of this memory puzzle game is [available in the Slint repository]( A slightly more polished version of this memory puzzle game is [available in the Slint repository](
https://github.com/slint-ui/slint/tree/master/examples/memory). And you can <a href="https://sixtyfps.io/demos/memory/" target="_blank">play the wasm version</a> in your browser. https://github.com/slint-ui/slint/tree/master/examples/memory). And you can <a href="https://slint-ui.com/demos/memory/" target="_blank">play the wasm version</a> in your browser.

View file

@ -3,9 +3,9 @@
What we'll do is take the list of tiles declared in the .slint language, duplicate it, and shuffle it. What we'll do is take the list of tiles declared in the .slint language, duplicate it, and shuffle it.
We'll do so by accessing the `memory_tiles` property through the Rust code. For each top-level property, We'll do so by accessing the `memory_tiles` property through the Rust code. For each top-level property,
a getter and a setter function is generated - in our case `get_memory_tiles` and `set_memory_tiles`. a getter and a setter function is generated - in our case `get_memory_tiles` and `set_memory_tiles`.
Since `memory_tiles` is an array in the `.slint` language, it is represented as a [`std::shared_ptr<slint::Model>`](https://sixtyfps.io/docs/cpp/api/classslint_1_1model). Since `memory_tiles` is an array in the `.slint` language, it is represented as a [`std::shared_ptr<slint::Model>`](https://slint-ui.com/docs/cpp/api/classslint_1_1model).
We can't modify the model generated by the .slint, but we can extract the tiles from it, and put it We can't modify the model generated by the .slint, but we can extract the tiles from it, and put it
in a [`slint::VectorModel`](https://sixtyfps.io/docs/cpp/api/classslint_1_1vectormodel) which inherits from `Model`. in a [`slint::VectorModel`](https://slint-ui.com/docs/cpp/api/classslint_1_1vectormodel) which inherits from `Model`.
`VectorModel` allows us to make modifications and we can use it to replace the static generated model. `VectorModel` allows us to make modifications and we can use it to replace the static generated model.
We modify the main function like so: We modify the main function like so:
@ -17,4 +17,4 @@ We modify the main function like so:
Running this gives us a window on the screen that now shows a 4 by 4 grid of rectangles, which can show or obscure Running this gives us a window on the screen that now shows a 4 by 4 grid of rectangles, which can show or obscure
the icons when clicking. There's only one last aspect missing now, the rules for the game. the icons when clicking. There's only one last aspect missing now, the rules for the game.
<video autoplay loop muted playsinline src="https://sixtyfps.io/blog/memory-game-tutorial/creating-the-tiles-from-rust.mp4"></video> <video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/creating-the-tiles-from-rust.mp4"></video>

View file

@ -30,4 +30,4 @@ using the modulo and integer division to create a 4 by 4 grid.
Running this gives us a window that shows 8 tiles, which can be opened individually. Running this gives us a window that shows 8 tiles, which can be opened individually.
<video autoplay loop muted playsinline src="https://sixtyfps.io/blog/memory-game-tutorial/from-one-to-multiple-tiles.mp4"></video> <video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/from-one-to-multiple-tiles.mp4"></video>

View file

@ -1,7 +1,7 @@
# Getting Started # Getting Started
In this tutorial, we use C++ as the host programming language. We also support other programming languages like In this tutorial, we use C++ as the host programming language. We also support other programming languages like
[Rust](https://sixtyfps.io/docs/rust/sixtyfps/) or [JavaScript](https://sixtyfps.io/docs/node/). [Rust](https://slint-ui.com/docs/rust/sixtyfps/) or [JavaScript](https://slint-ui.com/docs/node/).
You will need a development environment that can compile C++20 with CMake 3.19. You will need a development environment that can compile C++20 with CMake 3.19.
We do not provide binaries of Slint yet, so we will use the CMake integration that will automatically build We do not provide binaries of Slint yet, so we will use the CMake integration that will automatically build
@ -59,7 +59,7 @@ cmake --build .
and a window will appear with the green "Hello World" greeting. and a window will appear with the green "Hello World" greeting.
![Screenshot of initial tutorial app showing Hello World](https://sixtyfps.io/blog/memory-game-tutorial/getting-started.png "Hello World") ![Screenshot of initial tutorial app showing Hello World](https://slint-ui.com/blog/memory-game-tutorial/getting-started.png "Hello World")
Feel free to use your favorite IDE for this purpose, or use out-of-tree build, or Ninja, ... Feel free to use your favorite IDE for this purpose, or use out-of-tree build, or Ninja, ...
We just keep it simple here for the purpose of this blog. We just keep it simple here for the purpose of this blog.

View file

@ -2,12 +2,12 @@
The game is visually a little bare. Here are some ideas how you could make further changes to enhance it: The game is visually a little bare. Here are some ideas how you could make further changes to enhance it:
* The tiles could have rounded corners, to look a little less sharp. The [border-radius](https://sixtyfps.io/docs/rust/sixtyfps/docs/builtin_elements/index.html#rectangle) * The tiles could have rounded corners, to look a little less sharp. The [border-radius](https://slint-ui.com/docs/rust/sixtyfps/docs/builtin_elements/index.html#rectangle)
property of *Rectangle* can be used to achieve that. property of *Rectangle* can be used to achieve that.
* In real world memory games, the back of the tiles often have some common graphic. You could add an image with * In real world memory games, the back of the tiles often have some common graphic. You could add an image with
the help of another *[Image](https://sixtyfps.io/docs/rust/sixtyfps/docs/builtin_elements/index.html#image)* the help of another *[Image](https://slint-ui.com/docs/rust/sixtyfps/docs/builtin_elements/index.html#image)*
element. Note that you may have to use *Rectangle*'s *[clip](https://sixtyfps.io/docs/rust/sixtyfps/docs/builtin_elements/index.html#properties-1) property* element. Note that you may have to use *Rectangle*'s *[clip](https://slint-ui.com/docs/rust/sixtyfps/docs/builtin_elements/index.html#properties-1) property*
element around it to ensure that the image is clipped away when the curtain effect opens. element around it to ensure that the image is clipped away when the curtain effect opens.
Let us know in the comments on Github Discussions how you polished your code, or feel free to ask questions about Let us know in the comments on Github Discussions how you polished your code, or feel free to ask questions about

View file

@ -10,7 +10,7 @@ graphics are hiding. If two tiles with the same icon are uncovered, then they re
This is how the game looks like in action: This is how the game looks like in action:
<video autoplay loop muted playsinline src="https://sixtyfps.io/blog/memory-game-tutorial/memory_clip.mp4" <video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/memory_clip.mp4"
class="img-fluid img-thumbnail rounded"></video> class="img-fluid img-thumbnail rounded"></video>
A video-recording of this tutorial is also available on YouTube. After introducing the `.slint` language the video A video-recording of this tutorial is also available on YouTube. After introducing the `.slint` language the video

View file

@ -16,11 +16,11 @@ We copy the following code into the `memory.slint` file:
Inside the <span class="hljs-built_in">Rectangle</span> we place an <span class="hljs-built_in">Image</span> element that Inside the <span class="hljs-built_in">Rectangle</span> we place an <span class="hljs-built_in">Image</span> element that
loads an icon with the <span class="hljs-built_in">@image-url()</span> macro. The path is relative to the folder in which loads an icon with the <span class="hljs-built_in">@image-url()</span> macro. The path is relative to the folder in which
the `memory.slint` is located. This icon and others we're going to use later need to be installed first. You can download a the `memory.slint` is located. This icon and others we're going to use later need to be installed first. You can download a
[Zip archive](https://sixtyfps.io/blog/memory-game-tutorial/icons.zip) that we have prepared and extract it with the [Zip archive](https://slint-ui.com/blog/memory-game-tutorial/icons.zip) that we have prepared and extract it with the
following two commands: following two commands:
```sh ```sh
curl -O https://sixtyfps.io/blog/memory-game-tutorial/icons.zip curl -O https://slint-ui.com/blog/memory-game-tutorial/icons.zip
unzip icons.zip unzip icons.zip
``` ```
@ -29,4 +29,4 @@ This should unpack an `icons` directory containing a bunch of icons.
We compile the program with `cmake --build .` and running with the `./memory_game` gives us a We compile the program with `cmake --build .` and running with the `./memory_game` gives us a
window on the screen that shows the icon of a bus on a blue background. window on the screen that shows the icon of a bus on a blue background.
![Screenshot of the first tile](https://sixtyfps.io/blog/memory-game-tutorial/memory-tile.png "Memory Tile Screenshot") ![Screenshot of the first tile](https://slint-ui.com/blog/memory-game-tutorial/memory-tile.png "Memory Tile Screenshot")

View file

@ -29,4 +29,4 @@ to the current element.
Running this gives us a window on the screen with a rectangle that opens up to show us the bus icon, when clicking on Running this gives us a window on the screen with a rectangle that opens up to show us the bus icon, when clicking on
it. Subsequent clicks will close and open the curtain again. it. Subsequent clicks will close and open the curtain again.
<video autoplay loop muted playsinline src="https://sixtyfps.io/blog/memory-game-tutorial/polishing-the-tile.mp4"></video> <video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/polishing-the-tile.mp4"></video>

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Binaries for Rust version of Memory Tutorial of Slint" description = "Binaries for Rust version of Memory Tutorial of Slint"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
publish = false publish = false
[[bin]] [[bin]]

View file

@ -6,4 +6,4 @@ at the [examples](https://github.com/slint-ui/slint/tree/master/examples) in the
see how these look like and can be used, such as the [todo example](https://github.com/slint-ui/slint/tree/master/examples/todo). see how these look like and can be used, such as the [todo example](https://github.com/slint-ui/slint/tree/master/examples/todo).
A slightly more polished version of this memory puzzle game is [available in the Slint repository]( A slightly more polished version of this memory puzzle game is [available in the Slint repository](
https://github.com/slint-ui/slint/tree/master/examples/memory). And you can <a href="https://sixtyfps.io/demos/memory/" target="_blank">play the wasm version</a> in your browser. https://github.com/slint-ui/slint/tree/master/examples/memory). And you can <a href="https://slint-ui.com/demos/memory/" target="_blank">play the wasm version</a> in your browser.

View file

@ -12,9 +12,9 @@ rand = "0.8" # Added
What we'll do is take the list of tiles declared in the .slint language, duplicate it, and shuffle it. What we'll do is take the list of tiles declared in the .slint language, duplicate it, and shuffle it.
We'll do so by accessing the `memory_tiles` property through the Rust code. For each top-level property, We'll do so by accessing the `memory_tiles` property through the Rust code. For each top-level property,
a getter and a setter function is generated - in our case `get_memory_tiles` and `set_memory_tiles`. a getter and a setter function is generated - in our case `get_memory_tiles` and `set_memory_tiles`.
Since `memory_tiles` is an array in the `.slint` language, it is represented as a [`Rc<dyn slint::Model>`](https://sixtyfps.io/docs/rust/sixtyfps/trait.model). Since `memory_tiles` is an array in the `.slint` language, it is represented as a [`Rc<dyn slint::Model>`](https://slint-ui.com/docs/rust/sixtyfps/trait.model).
We can't modify the model generated by the .slint, but we can extract the tiles from it, and put it We can't modify the model generated by the .slint, but we can extract the tiles from it, and put it
in a [`VecModel`](https://sixtyfps.io/docs/rust/sixtyfps/struct.vecmodel) which implements the `Model` trait. in a [`VecModel`](https://slint-ui.com/docs/rust/sixtyfps/struct.vecmodel) which implements the `Model` trait.
`VecModel` allows us to make modifications and we can use it to replace the static generated model. `VecModel` allows us to make modifications and we can use it to replace the static generated model.
We modify the main function like so: We modify the main function like so:
@ -28,4 +28,4 @@ Note that we clone the `tiles_model` because we'll use it later to update the ga
Running this gives us a window on the screen that now shows a 4 by 4 grid of rectangles, which can show or obscure Running this gives us a window on the screen that now shows a 4 by 4 grid of rectangles, which can show or obscure
the icons when clicking. There's only one last aspect missing now, the rules for the game. the icons when clicking. There's only one last aspect missing now, the rules for the game.
<video autoplay loop muted playsinline src="https://sixtyfps.io/blog/memory-game-tutorial/creating-the-tiles-from-rust.mp4"></video> <video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/creating-the-tiles-from-rust.mp4"></video>

View file

@ -30,4 +30,4 @@ using the modulo and integer division to create a 4 by 4 grid.
Running this gives us a window that shows 8 tiles, which can be opened individually. Running this gives us a window that shows 8 tiles, which can be opened individually.
<video autoplay loop muted playsinline src="https://sixtyfps.io/blog/memory-game-tutorial/from-one-to-multiple-tiles.mp4"></video> <video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/from-one-to-multiple-tiles.mp4"></video>

View file

@ -34,7 +34,7 @@ Insert this code before the `main_window.run()` call:
{{#include main_game_logic_in_rust.rs:game_logic}} {{#include main_game_logic_in_rust.rs:game_logic}}
``` ```
Notice that we take a [Weak](https://sixtyfps.io/docs/rust/sixtyfps/struct.weak) pointer of our `main_window`. This is very Notice that we take a [Weak](https://slint-ui.com/docs/rust/sixtyfps/struct.weak) pointer of our `main_window`. This is very
important because capturing a copy of the `main_window` itself within the callback handler would result in a circular ownership. important because capturing a copy of the `main_window` itself within the callback handler would result in a circular ownership.
The `MainWindow` owns the callback handler, which itself owns a reference to the `MainWindow`, which must be weak The `MainWindow` owns the callback handler, which itself owns a reference to the `MainWindow`, which must be weak
instead of strong to avoid a memory leak. instead of strong to avoid a memory leak.

View file

@ -21,7 +21,7 @@ edition = "2021"
slint = "0.2.0" slint = "0.2.0"
``` ```
Finally we copy the hello world program from the [Slint documentation](https://sixtyfps.io/docs/rust/sixtyfps/) into our `src/main.rs`: Finally we copy the hello world program from the [Slint documentation](https://slint-ui.com/docs/rust/sixtyfps/) into our `src/main.rs`:
```rust,noplayground ```rust,noplayground
{{#include main_initial.rs:main}} {{#include main_initial.rs:main}}
@ -29,4 +29,4 @@ Finally we copy the hello world program from the [Slint documentation](https://s
We run this example with `cargo run` and a window will appear with the green "Hello World" greeting. We run this example with `cargo run` and a window will appear with the green "Hello World" greeting.
![Screenshot of initial tutorial app showing Hello World](https://sixtyfps.io/blog/memory-game-tutorial/getting-started.png "Hello World") ![Screenshot of initial tutorial app showing Hello World](https://slint-ui.com/blog/memory-game-tutorial/getting-started.png "Hello World")

View file

@ -2,12 +2,12 @@
The game is visually a little bare. Here are some ideas how you could make further changes to enhance it: The game is visually a little bare. Here are some ideas how you could make further changes to enhance it:
* The tiles could have rounded corners, to look a little less sharp. The [border-radius](https://sixtyfps.io/docs/rust/sixtyfps/docs/builtin_elements/index.html#rectangle) * The tiles could have rounded corners, to look a little less sharp. The [border-radius](https://slint-ui.com/docs/rust/sixtyfps/docs/builtin_elements/index.html#rectangle)
property of *Rectangle* can be used to achieve that. property of *Rectangle* can be used to achieve that.
* In real world memory games, the back of the tiles often have some common graphic. You could add an image with * In real world memory games, the back of the tiles often have some common graphic. You could add an image with
the help of another *[Image](https://sixtyfps.io/docs/rust/sixtyfps/docs/builtin_elements/index.html#image)* the help of another *[Image](https://slint-ui.com/docs/rust/sixtyfps/docs/builtin_elements/index.html#image)*
element. Note that you may have to use *Rectangle*'s *[clip](https://sixtyfps.io/docs/rust/sixtyfps/docs/builtin_elements/index.html#properties-1) property* element. Note that you may have to use *Rectangle*'s *[clip](https://slint-ui.com/docs/rust/sixtyfps/docs/builtin_elements/index.html#properties-1) property*
element around it to ensure that the image is clipped away when the curtain effect opens. element around it to ensure that the image is clipped away when the curtain effect opens.
Let us know in the comments on Github Discussions how you polished your code, or feel free to ask questions about Let us know in the comments on Github Discussions how you polished your code, or feel free to ask questions about

View file

@ -10,7 +10,7 @@ graphics are hiding. If two tiles with the same icon are uncovered, then they re
This is how the game looks like in action: This is how the game looks like in action:
<video autoplay loop muted playsinline src="https://sixtyfps.io/blog/memory-game-tutorial/memory_clip.mp4" <video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/memory_clip.mp4"
class="img-fluid img-thumbnail rounded"></video> class="img-fluid img-thumbnail rounded"></video>
A video-recording of this tutorial is also available on YouTube: A video-recording of this tutorial is also available on YouTube:

View file

@ -18,11 +18,11 @@ loads an icon with the <span class="hljs-built_in">@image-url()</span> macro.
When using the `slint!` macro, the path is relative to the folder in which the Cargo.toml is located. When using the `slint!` macro, the path is relative to the folder in which the Cargo.toml is located.
When using .slint files, it is relative to the folder of the .slint file containing it. When using .slint files, it is relative to the folder of the .slint file containing it.
This icon and others we're going to use later need to be installed first. You can download a This icon and others we're going to use later need to be installed first. You can download a
[Zip archive](https://sixtyfps.io/blog/memory-game-tutorial/icons.zip) that we have prepared and extract it with the [Zip archive](https://slint-ui.com/blog/memory-game-tutorial/icons.zip) that we have prepared and extract it with the
following two commands: following two commands:
```sh ```sh
curl -O https://sixtyfps.io/blog/memory-game-tutorial/icons.zip curl -O https://slint-ui.com/blog/memory-game-tutorial/icons.zip
unzip icons.zip unzip icons.zip
``` ```
@ -31,4 +31,4 @@ This should unpack an `icons` directory containing a bunch of icons.
Running the program with `cargo run` gives us a window on the screen that shows the icon of a bus on a Running the program with `cargo run` gives us a window on the screen that shows the icon of a bus on a
blue background. blue background.
![Screenshot of the first tile](https://sixtyfps.io/blog/memory-game-tutorial/memory-tile.png "Memory Tile Screenshot") ![Screenshot of the first tile](https://slint-ui.com/blog/memory-game-tutorial/memory-tile.png "Memory Tile Screenshot")

View file

@ -29,4 +29,4 @@ to the current element.
Running this gives us a window on the screen with a rectangle that opens up to show us the bus icon, when clicking on Running this gives us a window on the screen with a rectangle that opens up to show us the bus icon, when clicking on
it. Subsequent clicks will close and open the curtain again. it. Subsequent clicks will close and open the curtain again.
<video autoplay loop muted playsinline src="https://sixtyfps.io/blog/memory-game-tutorial/polishing-the-tile.mp4"></video> <video autoplay loop muted playsinline src="https://slint-ui.com/blog/memory-game-tutorial/polishing-the-tile.mp4"></video>

View file

@ -8,9 +8,9 @@ A fictional user interface for the touch screen of a printer
| `.slint` Design | Rust Source | C++ Source | Node Source | Online wasm Preview | Open in code editor | | `.slint` Design | Rust Source | C++ Source | Node Source | Online wasm Preview | Open in code editor |
| --- | --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- | --- |
| [`ui.slint`](./printerdemo/ui/printerdemo.slint) | [`main.rs`](./printerdemo/rust/main.rs) | [`main.cpp`](./printerdemo/cpp/main.cpp) | [`main.js`](./printerdemo/node/main.js) | [Online simulation](https://sixtyfps.io/snapshots/master/demos/printerdemo/) | [Preview in Online Code Editor](https://sixtyfps.io/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/printerdemo/ui/printerdemo.slint) | | [`ui.slint`](./printerdemo/ui/printerdemo.slint) | [`main.rs`](./printerdemo/rust/main.rs) | [`main.cpp`](./printerdemo/cpp/main.cpp) | [`main.js`](./printerdemo/node/main.js) | [Online simulation](https://slint-ui.com/snapshots/master/demos/printerdemo/) | [Preview in Online Code Editor](https://slint-ui.com/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/printerdemo/ui/printerdemo.slint) |
![Screenshot of the Printer Demo](https://sixtyfps.io/resources/printerdemo_screenshot.png "Printer Demo") ![Screenshot of the Printer Demo](https://slint-ui.com/resources/printerdemo_screenshot.png "Printer Demo")
### [`gallery`](./gallery) ### [`gallery`](./gallery)
@ -18,9 +18,9 @@ A simple application showing the different widgets
| `.slint` Design | Rust Source | C++ Source | Online wasm Preview | Open in code editor | | `.slint` Design | Rust Source | C++ Source | Online wasm Preview | Open in code editor |
| --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- |
| [`gallery.slint`](./gallery/gallery.slint) | [`main.rs`](./gallery/main.rs) | [`main.cpp`](./gallery/main.cpp) | [Online simulation](https://sixtyfps.io/snapshots/master/demos/gallery/) | [Preview in Online Code Editor](https://sixtyfps.io/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/gallery/gallery.slint) | | [`gallery.slint`](./gallery/gallery.slint) | [`main.rs`](./gallery/main.rs) | [`main.cpp`](./gallery/main.cpp) | [Online simulation](https://slint-ui.com/snapshots/master/demos/gallery/) | [Preview in Online Code Editor](https://slint-ui.com/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/gallery/gallery.slint) |
![Screenshot of the Gallery on Windows](https://sixtyfps.io/resources/gallery_win_screenshot.png "Gallery") ![Screenshot of the Gallery on Windows](https://slint-ui.com/resources/gallery_win_screenshot.png "Gallery")
### [`todo`](./todo) ### [`todo`](./todo)
@ -28,9 +28,9 @@ A simple todo mvc application
| `.slint` Design | Rust Source | C++ Source | NodeJS | Online wasm Preview | Open in code editor | | `.slint` Design | Rust Source | C++ Source | NodeJS | Online wasm Preview | Open in code editor |
| --- | --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- | --- |
| [`todo.slint`](./todo/ui/todo.slint) | [`main.rs`](./todo/rust/main.rs) | [`main.cpp`](./todo/cpp/main.cpp) | [`main.js`](./todo/node/main.js) | [Online simulation](https://sixtyfps.io/snapshots/master/demos/todo/) | [Preview in Online Code Editor](https://sixtyfps.io/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/todo/ui/todo.slint) | | [`todo.slint`](./todo/ui/todo.slint) | [`main.rs`](./todo/rust/main.rs) | [`main.cpp`](./todo/cpp/main.cpp) | [`main.js`](./todo/node/main.js) | [Online simulation](https://slint-ui.com/snapshots/master/demos/todo/) | [Preview in Online Code Editor](https://slint-ui.com/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/todo/ui/todo.slint) |
![Screenshot of the Todo Demo](https://sixtyfps.io/resources/todo_screenshot.png "Todo Demo") ![Screenshot of the Todo Demo](https://slint-ui.com/resources/todo_screenshot.png "Todo Demo")
### [`slide_puzzle`](./slide_puzzle) ### [`slide_puzzle`](./slide_puzzle)
@ -38,20 +38,20 @@ Puzzle game based on a Flutter example. See [Readme](./slide_puzzle)
| `.slint` Design | Rust Source | Online wasm Preview | Open in code editor | | `.slint` Design | Rust Source | Online wasm Preview | Open in code editor |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| [`slide_puzzle.slint`](./slide_puzzle/slide_puzzle.slint) | [`main.rs`](./todo/rust/main.rs) | [Online simulation](https://sixtyfps.io/snapshots/master/demos/slide_puzzle/) | [Preview in Online Code Editor](https://sixtyfps.io/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/slide_puzzle/slide_puzzle.slint) | | [`slide_puzzle.slint`](./slide_puzzle/slide_puzzle.slint) | [`main.rs`](./todo/rust/main.rs) | [Online simulation](https://slint-ui.com/snapshots/master/demos/slide_puzzle/) | [Preview in Online Code Editor](https://slint-ui.com/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/slide_puzzle/slide_puzzle.slint) |
![Screenshot of the Slide Puzzle](https://sixtyfps.io/resources/puzzle_screenshot.png "Slide Puzzle") ![Screenshot of the Slide Puzzle](https://slint-ui.com/resources/puzzle_screenshot.png "Slide Puzzle")
### [`memory`](./memory) ### [`memory`](./memory)
A basic memory game used as an example the tutorial: A basic memory game used as an example the tutorial:
* [Memory Game Tutorial (Rust)](https://sixtyfps.io/docs/tutorial/rust) * [Memory Game Tutorial (Rust)](https://slint-ui.com/docs/tutorial/rust)
* [Memory Game Tutorial (C++)](https://sixtyfps.io/docs/tutorial/cpp) * [Memory Game Tutorial (C++)](https://slint-ui.com/docs/tutorial/cpp)
| `.slint` Design | Rust Source | C++ Source | Online wasm Preview | Open in code editor | | `.slint` Design | Rust Source | C++ Source | Online wasm Preview | Open in code editor |
| --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- |
| [`memory.slint`](./memory/memory.slint) | [`main.rs`](./memory/main.rs) | [`memory.cpp`](./memory/memory.cpp) | [Online simulation](https://sixtyfps.io/snapshots/master/demos/memory/) | [Preview in Online Code Editor](https://sixtyfps.io/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/memory/memory.slint) | | [`memory.slint`](./memory/memory.slint) | [`main.rs`](./memory/main.rs) | [`memory.cpp`](./memory/memory.cpp) | [Online simulation](https://slint-ui.com/snapshots/master/demos/memory/) | [Preview in Online Code Editor](https://slint-ui.com/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/memory/memory.slint) |
### [`iot-dashboard`](./iot-dashboard) ### [`iot-dashboard`](./iot-dashboard)
@ -61,9 +61,9 @@ Also show how a way to dynamically load widgets with the interpreter from C++.
| `.slint` Design | C++ Source | Online wasm Preview | Open in code editor | | `.slint` Design | C++ Source | Online wasm Preview | Open in code editor |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| [`main.slint`](./iot-dashboard/main.slint) | [`main.cpp`](./iot-dashboard/main.cpp) | [Online preview](https://sixtyfps.io/snapshots/master/editor/preview.html?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/iot-dashboard/main.slint) | [Preview in Online Code Editor](https://sixtyfps.io/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/iot-dashboard/main.slint) | | [`main.slint`](./iot-dashboard/main.slint) | [`main.cpp`](./iot-dashboard/main.cpp) | [Online preview](https://slint-ui.com/snapshots/master/editor/preview.html?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/iot-dashboard/main.slint) | [Preview in Online Code Editor](https://slint-ui.com/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/iot-dashboard/main.slint) |
![Screenshot of the IOT Dashboard](https://sixtyfps.io/resources/iot-dashboard_screenshot.png "IOT Dashboard") ![Screenshot of the IOT Dashboard](https://slint-ui.com/resources/iot-dashboard_screenshot.png "IOT Dashboard")
### [`imagefilter`](./imagefilter) ### [`imagefilter`](./imagefilter)
@ -72,9 +72,9 @@ and feed the result into Slint.
| Source | Online wasm Preview | | Source | Online wasm Preview |
| --- | --- | | --- | --- |
| [`main.rs`](./imagefilter/main.rs) | [Online simulation](https://sixtyfps.io/snapshots/master/demos/imagefilter/) | | [`main.rs`](./imagefilter/main.rs) | [Online simulation](https://slint-ui.com/snapshots/master/demos/imagefilter/) |
![Screenshot of the imagefilter example](https://sixtyfps.io/resources/imagefilter_screenshot.png "Image Filter") ![Screenshot of the imagefilter example](https://slint-ui.com/resources/imagefilter_screenshot.png "Image Filter")
### [`plotter`](./plotter) ### [`plotter`](./plotter)
@ -83,9 +83,9 @@ graph and integrate the result into Slint.
| `.slint` Design | Rust Source | Online wasm Preview | | `.slint` Design | Rust Source | Online wasm Preview |
| --- | --- | --- | | --- | --- | --- |
| [`plotter.slint`](./plotter/plotter.slint) | [`main.rs`](./plotter/main.rs) | [Online simulation](https://sixtyfps.io/snapshots/master/demos/plotter/) | | [`plotter.slint`](./plotter/plotter.slint) | [`main.rs`](./plotter/main.rs) | [Online simulation](https://slint-ui.com/snapshots/master/demos/plotter/) |
![Screenshot of the plotter example](https://sixtyfps.io/resources/plotter_screenshot.png "Plotter") ![Screenshot of the plotter example](https://slint-ui.com/resources/plotter_screenshot.png "Plotter")
### [`bash`](./bash) ### [`bash`](./bash)
@ -97,9 +97,9 @@ A Rust and C++ example that shows how render SixtyFPS on top of graphical effect
| `.60` Design | Rust Source | C++ Source | Online wasm Preview | | `.60` Design | Rust Source | C++ Source | Online wasm Preview |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| [`scene.60`](./opengl_underlay/scene.60) | [`main.rs`](./opengl_underlay/main.rs) | [`main.cpp`](./opengl_underlay/main.cpp) | [Online simulation](https://sixtyfps.io/snapshots/master/demos/opengl_underlay/) | | [`scene.60`](./opengl_underlay/scene.60) | [`main.rs`](./opengl_underlay/main.rs) | [`main.cpp`](./opengl_underlay/main.cpp) | [Online simulation](https://slint-ui.com/snapshots/master/demos/opengl_underlay/) |
![Screenshot of the OpenGL Underlay Example on Windows](https://sixtyfps.io/resources/opengl_underlay_screenshot.png "OpenGL Underlay") ![Screenshot of the OpenGL Underlay Example on Windows](https://slint-ui.com/resources/opengl_underlay_screenshot.png "OpenGL Underlay")
### External examples ### External examples

View file

@ -365,7 +365,7 @@ Gallery := GridBox {
} }
Row { Row {
Text { text: "Hyperlink:"; } Text { text: "Hyperlink:"; }
Hyperlink { text: "Slint homepage"; link: "https://sixtyfps.io"; } Hyperlink { text: "Slint homepage"; link: "https://slint-ui.com"; }
} }
Row { Row {
Text { text: "TextEdit:"; } Text { text: "TextEdit:"; }

View file

@ -72,7 +72,7 @@
<body> <body>
<h1>Slint Gallery</h1> <h1>Slint Gallery</h1>
<p>This is the <a href="https://sixtyfps.io">Slint</a> UI Widget Gallery Demo compiled to WebAssembly. It demonstrates <p>This is the <a href="https://slint-ui.com">Slint</a> UI Widget Gallery Demo compiled to WebAssembly. It demonstrates
different re-usable graphical different re-usable graphical
elements.</p> elements.</p>
<div id="spinner" style="position: relative;"> <div id="spinner" style="position: relative;">
@ -83,7 +83,7 @@
<a href="https://github.com/slint-ui/slint/blob/master/examples/gallery/gallery.slint"> <a href="https://github.com/slint-ui/slint/blob/master/examples/gallery/gallery.slint">
View Source Code on GitHub</a> - View Source Code on GitHub</a> -
<a <a
href="https://sixtyfps.io/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/gallery/gallery.slint"> href="https://slint-ui.com/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/gallery/gallery.slint">
Edit in the online code editor Edit in the online code editor
</a> </a>
</p> </p>

View file

@ -64,7 +64,7 @@
<body> <body>
<h1>Image Filter</h1> <h1>Image Filter</h1>
<p>This is the <a href="https://sixtyfps.io">Slint</a> Image Filter example compiled to WebAssembly.</p> <p>This is the <a href="https://slint-ui.com">Slint</a> Image Filter example compiled to WebAssembly.</p>
<div id="spinner" style="position: relative;"> <div id="spinner" style="position: relative;">
<div class="spinner">Loading...</div> <div class="spinner">Loading...</div>
</div> </div>

View file

@ -10,11 +10,11 @@ the C++ QSkinny code to self-contained .slint.
## Online preview: ## Online preview:
https://sixtyfps.io/snapshots/master/editor/preview.html?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/iot-dashboard/main.slint https://slint-ui.com/snapshots/master/editor/preview.html?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/iot-dashboard/main.slint
## Screenshot ## Screenshot
![Screenshot of the IOT Dashboard](https://sixtyfps.io/resources/iot-dashboard_screenshot.png "IOT Dashboard") ![Screenshot of the IOT Dashboard](https://slint-ui.com/resources/iot-dashboard_screenshot.png "IOT Dashboard")
## Loading dynamic widgets from C++ ## Loading dynamic widgets from C++

View file

@ -63,7 +63,7 @@
</head> </head>
<body> <body>
<p>This is the <a href="https://sixtyfps.io">Slint</a> Memory Game compiled to WebAssembly.</p> <p>This is the <a href="https://slint-ui.com">Slint</a> Memory Game compiled to WebAssembly.</p>
<div id="spinner" style="position: relative;"> <div id="spinner" style="position: relative;">
<div class="spinner">Loading...</div> <div class="spinner">Loading...</div>
</div> </div>

View file

@ -67,7 +67,7 @@
</style> </style>
<body> <body>
<p>This is the <a href="https://sixtyfps.io">Slint</a> OpenGL Underlay example compiled to WebAssembly. It <p>This is the <a href="https://slint-ui.com">Slint</a> OpenGL Underlay example compiled to WebAssembly. It
demonstrates an OpenGL rendered scene under a Slint scene.</p> demonstrates an OpenGL rendered scene under a Slint scene.</p>
<div id="spinner" style="position: relative;"> <div id="spinner" style="position: relative;">
<div class="spinner">Loading...</div> <div class="spinner">Loading...</div>

View file

@ -63,7 +63,7 @@
</head> </head>
<body> <body>
<p>This is the <a href="https://sixtyfps.io">Slint</a> Plotter example compiled to WebAssembly.</p> <p>This is the <a href="https://slint-ui.com">Slint</a> Plotter example compiled to WebAssembly.</p>
<div id="spinner" style="position: relative;"> <div id="spinner" style="position: relative;">
<div class="spinner">Loading...</div> <div class="spinner">Loading...</div>
</div> </div>

View file

@ -84,7 +84,7 @@
<body> <body>
<h1 class="hide-in-mobile-landscape">Printer Demo</h1> <h1 class="hide-in-mobile-landscape">Printer Demo</h1>
<p class="hide-in-mobile-landscape">This is the <a href="https://sixtyfps.io">Slint</a> Printer Demo compiled to <p class="hide-in-mobile-landscape">This is the <a href="https://slint-ui.com">Slint</a> Printer Demo compiled to
WebAssembly. It simulates the WebAssembly. It simulates the
touch user interface of touch user interface of
the advanced "Print Machine 2000", without actually printing anything.</p> the advanced "Print Machine 2000", without actually printing anything.</p>
@ -96,7 +96,7 @@
<a href="https://github.com/slint-ui/slint/blob/master/examples/printerdemo/ui/printerdemo.slint"> <a href="https://github.com/slint-ui/slint/blob/master/examples/printerdemo/ui/printerdemo.slint">
View Source Code on GitHub</a> - View Source Code on GitHub</a> -
<a <a
href="https://sixtyfps.io/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/printerdemo/ui/printerdemo.slint"> href="https://slint-ui.com/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/printerdemo/ui/printerdemo.slint">
Edit in the online code editor Edit in the online code editor
</a> </a>
</p> </p>

View file

@ -86,7 +86,7 @@
<body> <body>
<h1 class="hide-in-mobile-landscape">Old Printer Demo</h1> <h1 class="hide-in-mobile-landscape">Old Printer Demo</h1>
<p class="hide-in-mobile-landscape">This is the <a href="https://sixtyfps.io">Slint</a> Printer Demo compiled to <p class="hide-in-mobile-landscape">This is the <a href="https://slint-ui.com">Slint</a> Printer Demo compiled to
WebAssembly. It simulates the WebAssembly. It simulates the
touch user interface of touch user interface of
the advanced "Print Machine 2000", without actually printing anything.</p> the advanced "Print Machine 2000", without actually printing anything.</p>
@ -98,7 +98,7 @@
<a href="https://github.com/slint-ui/slint/blob/master/examples/printerdemo_old/ui/printerdemo.slint"> <a href="https://github.com/slint-ui/slint/blob/master/examples/printerdemo_old/ui/printerdemo.slint">
View Source Code on GitHub</a> - View Source Code on GitHub</a> -
<a <a
href="https://sixtyfps.io/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/printerdemo_old/ui/printerdemo.slint"> href="https://slint-ui.com/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/printerdemo_old/ui/printerdemo.slint">
Edit in the online code editor Edit in the online code editor
</a> </a>
</p> </p>

View file

@ -69,7 +69,7 @@
<div class="spinner">Loading...</div> <div class="spinner">Loading...</div>
</div> </div>
<div id="container"> <div id="container">
<p>This is the <a href="https://sixtyfps.io">Slint</a> Slide Puzzle compiled to WebAssembly. Note that the wasm <p>This is the <a href="https://slint-ui.com">Slint</a> Slide Puzzle compiled to WebAssembly. Note that the wasm
build is done for demonstration purposes. Native applications are the real target of the toolkit. build is done for demonstration purposes. Native applications are the real target of the toolkit.
</p> </p>
<canvas id="canvas"></canvas> <canvas id="canvas"></canvas>
@ -77,7 +77,7 @@
<a href="https://github.com/slint-ui/slint/blob/master/examples/slide_puzzle/"> <a href="https://github.com/slint-ui/slint/blob/master/examples/slide_puzzle/">
View Source Code on GitHub</a> - View Source Code on GitHub</a> -
<a <a
href="https://sixtyfps.io/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/slide_puzzle/slide_puzzle.slint"> href="https://slint-ui.com/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/slide_puzzle/slide_puzzle.slint">
Edit in the online code editor Edit in the online code editor
</a> </a>
</p> </p>

View file

@ -67,7 +67,7 @@
</head> </head>
<body> <body>
<p>This is the <a href="https://sixtyfps.io">Slint</a> Todo Demo compiled to WebAssembly.</p> <p>This is the <a href="https://slint-ui.com">Slint</a> Todo Demo compiled to WebAssembly.</p>
<div id="spinner" style="position: relative;"> <div id="spinner" style="position: relative;">
<div class="spinner">Loading...</div> <div class="spinner">Loading...</div>
</div> </div>
@ -76,7 +76,7 @@
<a href="https://github.com/slint-ui/slint/blob/master/examples/todo/"> <a href="https://github.com/slint-ui/slint/blob/master/examples/todo/">
View Source Code on GitHub</a> - View Source Code on GitHub</a> -
<a <a
href="https://sixtyfps.io/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/todo/ui/todo.slint"> href="https://slint-ui.com/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/todo/ui/todo.slint">
Edit in the online code editor Edit in the online code editor
</a> </a>
</p> </p>

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
description = "Wrapper around field-offset crate and const-field-offset-macro" description = "Wrapper around field-offset crate and const-field-offset-macro"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[features] [features]
field-offset-trait = ["const-field-offset-macro/field-offset-trait"] field-offset-trait = ["const-field-offset-macro/field-offset-trait"]

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
description = "Procedural macro to generate constant field offset from repr(c) struct" description = "Procedural macro to generate constant field offset from repr(c) struct"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]
path = "macro.rs" path = "macro.rs"

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Helper crate to generate ffi-friendly virtual tables" description = "Helper crate to generate ffi-friendly virtual tables"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Helper crate to generate ffi-friendly virtual tables" description = "Helper crate to generate ffi-friendly virtual tables"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]
proc-macro = true proc-macro = true

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "OpenGL rendering backend for Slint" description = "OpenGL rendering backend for Slint"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]
path = "lib.rs" path = "lib.rs"

View file

@ -1,4 +1,4 @@
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
use std::cell::RefCell; use std::cell::RefCell;
use std::pin::Pin; use std::pin::Pin;

View file

@ -10,7 +10,7 @@ license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
publish = false publish = false
description = "Rendering backend for Slint for use on Microcontrollers" description = "Rendering backend for Slint for use on Microcontrollers"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]
path = "lib.rs" path = "lib.rs"

View file

@ -1,4 +1,4 @@
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#![cfg_attr(not(feature = "simulator"), no_std)] #![cfg_attr(not(feature = "simulator"), no_std)]
#![cfg_attr(feature = "pico-st7789", feature(alloc_error_handler))] #![cfg_attr(feature = "pico-st7789", feature(alloc_error_handler))]

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Qt rendering backend for Slint" description = "Qt rendering backend for Slint"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
links = "i_slint_backend_qt" # just so we can pass metadata to the dependee's build script links = "i_slint_backend_qt" # just so we can pass metadata to the dependee's build script
[features] [features]

View file

@ -1,4 +1,4 @@
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#![recursion_limit = "1024"] #![recursion_limit = "1024"]
extern crate alloc; extern crate alloc;

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Helper crate to pick the default rendering backend for Slint" description = "Helper crate to pick the default rendering backend for Slint"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]
path = "lib.rs" path = "lib.rs"

View file

@ -1,4 +1,4 @@
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.
@ -6,7 +6,7 @@ You should use the `slint` crate instead.
only be used with `version = "=x.y.z"` in Cargo.toml. only be used with `version = "=x.y.z"` in Cargo.toml.
The purpose of this crate is to select the default backend for [Slint](https://sixtyfps.io) The purpose of this crate is to select the default backend for [Slint](https://slint-ui.com)
The backend can either be a runtime or a build time decision. The runtime decision is decided The backend can either be a runtime or a build time decision. The runtime decision is decided
by the `SLINT_BACKEND` environment variable. The built time default depends on the platform. by the `SLINT_BACKEND` environment variable. The built time default depends on the platform.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#![cfg_attr(not(any(feature = "i-slint-backend-qt", feature = "i-slint-backend-gl")), no_std)] #![cfg_attr(not(any(feature = "i-slint-backend-qt", feature = "i-slint-backend-gl")), no_std)]
cfg_if::cfg_if! { cfg_if::cfg_if! {

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "OpenGL rendering backend for Slint" description = "OpenGL rendering backend for Slint"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
publish = false publish = false
[lib] [lib]

View file

@ -1,4 +1,4 @@
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
use i_slint_core::component::ComponentRc; use i_slint_core::component::ComponentRc;
use i_slint_core::graphics::{Image, IntSize, Point, Size}; use i_slint_core::graphics::{Image, IntSize, Point, Size};

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Helper crate for sharing code & data structures between i-slint-core and slint-compiler" description = "Helper crate for sharing code & data structures between i-slint-core and slint-compiler"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]

View file

@ -1,7 +1,7 @@
This crate contains internal data structures and code that is shared between This crate contains internal data structures and code that is shared between
the i-slint-core and the i-slint-compiler crates. the i-slint-core and the i-slint-compiler crates.
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#![no_std] #![no_std]
pub mod key_codes; pub mod key_codes;

View file

@ -10,7 +10,7 @@ build = "build.rs"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Internal Slint Compiler Library" description = "Internal Slint Compiler Library"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]

View file

@ -1,6 +1,6 @@
# The Slint Compiler Library # The Slint Compiler Library
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
// It would be nice to keep the compiler free of unsafe code // It would be nice to keep the compiler free of unsafe code
#![deny(unsafe_code)] #![deny(unsafe_code)]

View file

@ -6,7 +6,7 @@ function, checking that no error are reported, and that everything was consumed
A parser function must have the signature `fn(&mut impl Parser)` A parser function must have the signature `fn(&mut impl Parser)`
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
extern crate proc_macro; extern crate proc_macro;
use core::iter::IntoIterator; use core::iter::IntoIterator;

View file

@ -100,7 +100,7 @@ export AboutSlint := Rectangle {
preferred-width: 256px; preferred-width: 256px;
} }
Text { Text {
text: "Version 0.2.0\nhttps://sixtyfps.io/"; text: "Version 0.2.0\nhttps://slint-ui.com/";
font-size: 10px; font-size: 10px;
horizontal-alignment: center; horizontal-alignment: center;
} }

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Helper macro for i-slint-core" description = "Helper macro for i-slint-core"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[lib] [lib]

View file

@ -1,6 +1,6 @@
This crate contains the internal procedural macros used by the i-slint-core crate This crate contains the internal procedural macros used by the i-slint-core crate
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
extern crate proc_macro; extern crate proc_macro;
use proc_macro::TokenStream; use proc_macro::TokenStream;

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Internal Slint Runtime Library." description = "Internal Slint Runtime Library."
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
categories = ["gui", "development-tools"] categories = ["gui", "development-tools"]
keywords = ["gui", "ui", "toolkit", "graphics", "design"] keywords = ["gui", "ui", "toolkit", "graphics", "design"]

View file

@ -1,6 +1,6 @@
# Slint Runtime Library # Slint Runtime Library
**NOTE**: This library is an **internal** crate of the [Slint project](https://sixtyfps.io). **NOTE**: This library is an **internal** crate of the [Slint project](https://slint-ui.com).
This crate should **not be used directly** by applications using Slint. This crate should **not be used directly** by applications using Slint.
You should use the `slint` crate instead. You should use the `slint` crate instead.

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial) // SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
#![doc = include_str!("README.md")] #![doc = include_str!("README.md")]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#![deny(unsafe_code)] #![deny(unsafe_code)]
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc; extern crate alloc;

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Interpreter library for Slint" description = "Interpreter library for Slint"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
categories = ["gui", "rendering::engine"] categories = ["gui", "rendering::engine"]
keywords = ["gui", "toolkit", "graphics", "design", "ui"] keywords = ["gui", "toolkit", "graphics", "design", "ui"]

View file

@ -64,7 +64,7 @@ instance.run();
//! ## Feature flags //! ## Feature flags
#![doc = document_features::document_features!()] #![doc = document_features::document_features!()]
#![warn(missing_docs)] #![warn(missing_docs)]
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")] #![doc(html_logo_url = "https://slint-ui.com/logo/slint-logo-square-light.svg")]
#[cfg(not(feature = "compat-0-2-0"))] #[cfg(not(feature = "compat-0-2-0"))]
compile_error!( compile_error!(

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Slint compiler binary" description = "Slint compiler binary"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
publish = false publish = false
[[bin]] [[bin]]

View file

@ -10,7 +10,7 @@ license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
publish = false publish = false
description = "Tool used to update .slint files when we do syntax upgrade" description = "Tool used to update .slint files when we do syntax upgrade"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
categories = ["gui", "development-tools"] categories = ["gui", "development-tools"]
keywords = ["formatter", "gui", "ui", "toolkit"] keywords = ["formatter", "gui", "ui", "toolkit"]

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Slint LSP server" description = "Slint LSP server"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
categories = ["gui", "development-tools"] categories = ["gui", "development-tools"]
keywords = ["lsp"] keywords = ["lsp"]

View file

@ -1,6 +1,6 @@
# LSP (Language Server Protocol) Server for Slint # LSP (Language Server Protocol) Server for Slint
This directory contains the implementation of the LSP server for [Slint](https://sixtyfps.io) This directory contains the implementation of the LSP server for [Slint](https://slint-ui.com)
featuring diagnostics, code featuring diagnostics, code
completion, goto definition, and more importantly, live-preview completion, goto definition, and more importantly, live-preview

View file

@ -1,5 +1,5 @@
This directory contains the frontend code for the online code editor This directory contains the frontend code for the online code editor
which is hosted in https://sixtyfps.io/editor which is hosted in https://slint-ui.com/editor
To try it out locally type this in this directory: To try it out locally type this in this directory:
```sh ```sh

View file

@ -60,7 +60,7 @@ export Demo := Window {
} }
Image { Image {
y: 50px; y: 50px;
source: @image-url("https://sixtyfps.io/resources/logo_scaled.png"); source: @image-url("https://slint-ui.com/resources/logo_scaled.png");
} }
} }
` `

View file

@ -22,7 +22,7 @@ export Demo := Window {
} }
Image { Image {
y: 50px; y: 50px;
source: @image-url("https://sixtyfps.io/resources/logo_scaled.png"); source: @image-url("https://slint-ui.com/resources/logo_scaled.png");
} }
} }
` `

View file

@ -10,7 +10,7 @@ license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
publish = false publish = false
description = "Tool used to update .slint files when we do syntax upgrade" description = "Tool used to update .slint files when we do syntax upgrade"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
[dependencies] [dependencies]

View file

@ -9,7 +9,7 @@ edition = "2021"
license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)" license = "(GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)"
description = "Viewer binary for Slint" description = "Viewer binary for Slint"
repository = "https://github.com/slint-ui/slint" repository = "https://github.com/slint-ui/slint"
homepage = "https://sixtyfps.io" homepage = "https://slint-ui.com"
categories = ["gui", "development-tools"] categories = ["gui", "development-tools"]
keywords = ["viewer", "gui", "ui", "toolkit"] keywords = ["viewer", "gui", "ui", "toolkit"]

View file

@ -1,6 +1,6 @@
# Viewer for Slint # Viewer for Slint
This program is a viewer for `.slint` files from the [Slint Project](https://sixtyfps.io). This program is a viewer for `.slint` files from the [Slint Project](https://slint-ui.com).
## Installation ## Installation

View file

@ -1,6 +1,6 @@
# Slint for Visual Studio Code # Slint for Visual Studio Code
This extension for VS Code adds support for the [Slint](https://sixtyfps.io) design markup language. This extension for VS Code adds support for the [Slint](https://slint-ui.com) design markup language.
## Features ## Features

View file

@ -346,7 +346,7 @@ const EXPECTED_SPDX_ID: &str =
const EXPECTED_HEADER: LicenseHeader<'static> = const EXPECTED_HEADER: LicenseHeader<'static> =
LicenseHeader(&["Copyright © SixtyFPS GmbH <info@sixtyfps.io>", EXPECTED_SPDX_ID]); LicenseHeader(&["Copyright © SixtyFPS GmbH <info@sixtyfps.io>", EXPECTED_SPDX_ID]);
const EXPECTED_HOMEPAGE: &str = "https://sixtyfps.io"; const EXPECTED_HOMEPAGE: &str = "https://slint-ui.com";
const EXPECTED_REPOSITORY: &str = "https://github.com/slint-ui/slint"; const EXPECTED_REPOSITORY: &str = "https://github.com/slint-ui/slint";
fn collect_files() -> Result<Vec<PathBuf>> { fn collect_files() -> Result<Vec<PathBuf>> {