Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #7337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ All notable changes to this project are documented in this file.
to the size of the Flickable instead of that of the viewport (#4163)
- Path: Fix compiler panic when accessing path.commands in expressions (#5564)
- The `mod` function was changed to always return a positive value (#6178)
- Added `AccesssibleRole.list-item` and used it where relevant
- Added `AccessibleRole.list-item` and used it where relevant
- Added `PointerEventButton.back` and `PointerEventButton.forward` (#6043)

### Widgets
Expand Down Expand Up @@ -246,7 +246,7 @@ All notable changes to this project are documented in this file.

- `debug()` is now consistently routed through Platform's `debug_log`, meaning it uses stderr by default instead of stdout previously with C++ and Rust code generator. (#5718)
- Comparison between float is now using less precision so to float compare equal if they are approximately the same.
- Conversion from float to a `int` property now always truncates (instead of rounding with the interpreter, or being inconsistant with the code generators)
- Conversion from float to a `int` property now always truncates (instead of rounding with the interpreter, or being inconsistent with the code generators)

### Widgets

Expand Down Expand Up @@ -303,8 +303,8 @@ All notable changes to this project are documented in this file.
### General

- Several compiler bugfixes. (#5260, #5246, #5220, #5259, #5249, #5430)
- Android: fix cursor handle being visible despite inut loses focus. (#5233)
- Android: fix keyboard poping up when application moved to foreground without input focus. (#5235)
- Android: fix cursor handle being visible despite input loses focus. (#5233)
- Android: fix keyboard popping up when application moved to foreground without input focus. (#5235)
- Gettext translation: clear internal gettext cache when changing translations at runtime.
- Winit backend: Fixed setting the size with set_size before showing the window. (#6489)
- Winit backend: upgraded to winit 0.30, accesskit 0.16, glutin.
Expand Down Expand Up @@ -517,7 +517,7 @@ All notable changes to this project are documented in this file.
- C++: Permit passing a value to VectorModel::set_vector by value (#4491)
- slint-viewer: re-render after reloading when using software renderer.
- Fixed panic in the software renderer when using the Qt style.
- Rust: fix slint-build's formater when source contains `\"` in a string. (#4520)
- Rust: fix slint-build's formatter when source contains `\"` in a string. (#4520)

## [1.4.0] - 2024-01-31

Expand All @@ -531,7 +531,7 @@ All notable changes to this project are documented in this file.
- Fixed TextInput on Plasma/Wayland receiving many empty events causing selection to be cleared (#4148)
- Added API to programmatically show a window in fullscreen mode (C++/Rust: `Window::set_fullscreen(bool)`, Node.js: `window.fullscreen`).
- Added API to keep the event loop alive when the last window is closed (#1499). (Rust: `slint::run_event_loop_until_quit()`; C++: argument to `slint::run_event_loop()`; Node: argument to `runEventLoop`).
- Fixed linear gradiant rendering in non square rectangles (#3730).
- Fixed linear gradient rendering in non square rectangles (#3730).
- LinuxKMS backend: Added support rendering output rotation via the `SLINT_KMS_ROTATION` environment variable.
- LinuxKMS backend: Added support for `backend-linuxkms-noseat` feature to compile without libseat.
- LinuxKMS backend: Added support for software rendering with Skia.
Expand Down Expand Up @@ -618,7 +618,7 @@ All notable changes to this project are documented in this file.

### Slint Language

- Added `clamp` function that takes a `value`, `minimum` and `maxium` and will return
- Added `clamp` function that takes a `value`, `minimum` and `maximum` and will return
`maximum` if `value > maximum`, `minimum` if `value < minimum` or `value` otherwise.
- Throw Slint error when returning no value when one is expected instead of generating invalid code. (#3962)
- Fixed compiler panic when a component is called `Window`. (#3916)
Expand Down Expand Up @@ -968,7 +968,7 @@ All notable changes to this project are documented in this file.

- The old syntax that declares component with `:=` is now deprecated
- `Flickable`: don't forward events if the flickable is dragged in a direction that can be dragged, even if at the bounds.
- The `TextEdit` and `LineEdit` elements now correctly handle double click and tripple click to select words or lines,
- The `TextEdit` and `LineEdit` elements now correctly handle double click and triple click to select words or lines,
as well as support for the "primary" clipboard on X11 and wayland (select to copy, and middle click to paste).

### Rust
Expand Down
4 changes: 2 additions & 2 deletions api/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ define_renderer_winit_compat_option(skia-opengl)
define_renderer_winit_compat_option(skia-vulkan)
define_renderer_winit_compat_option(software)

define_cargo_dependent_feature(interpreter "Enable support for the Slint interpeter to load .slint files at run-time" ON "NOT SLINT_FEATURE_FREESTANDING")
define_cargo_dependent_feature(interpreter "Enable support for the Slint interpreter to load .slint files at run-time" ON "NOT SLINT_FEATURE_FREESTANDING")

define_cargo_dependent_feature(backend-winit "Enable support for the winit crate to interaction with all windowing systems." ON "NOT SLINT_FEATURE_FREESTANDING")
define_cargo_dependent_feature(backend-winit-x11 "Enable support for the winit create to interact only with the X11 windowing system on Unix. Enable this option and turn off SLINT_FEATURE_BACKEND_WINIT for a smaller build with just X11 support on Unix." OFF "NOT SLINT_FEATURE_FREESTANDING")
Expand Down Expand Up @@ -149,7 +149,7 @@ if (SLINT_BUILD_RUNTIME)
if (APPLE AND SLINT_IS_TOPLEVEL_BUILD AND BUILD_SHARED_LIBS)
# corrosion could provide the Cargo.toml package version as a CMake target property.
corrosion_add_target_local_rustflags(slint_cpp -Clink-arg=-Wl,-install_name,@rpath/libslint_cpp.dylib,-current_version,${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR},-compatibility_version,${PROJECT_VERSION_MAJOR}.0)
# Set this one to false again explicitely because Corrosion will starting setting this property to true by default.
# Set this one to false again explicitly because Corrosion will starting setting this property to true by default.
set_target_properties(slint_cpp-shared PROPERTIES IMPORTED_NO_SONAME 0)
set_target_properties(slint_cpp-shared PROPERTIES IMPORTED_SONAME libslint_cpp.dylib)
endif()
Expand Down
4 changes: 2 additions & 2 deletions api/cpp/docs/mcu/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ as well as CMake as build system.

This documentation is divided into three sub-sections:

- [ESP-IDF section](esp_idf.md), when targetting MCUs with Espressif's IoT Development Framework
- [STM32 section](stm32.md), when targetting MCUs in STMicroelectronics' STM32Cube Ecosystem.
- [ESP-IDF section](esp_idf.md), when targeting MCUs with Espressif's IoT Development Framework
- [STM32 section](stm32.md), when targeting MCUs in STMicroelectronics' STM32Cube Ecosystem.
- [Generic section](generic.md), providing an overview how to use Slint with other MCUs.
4 changes: 2 additions & 2 deletions api/cpp/esp-idf/slint/src/slint-esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void EspPlatform::run_event_loop()
for (auto [o, s] : region.rectangles()) {
for (int y = o.y; y < o.y + s.height; y++) {
for (int x = o.x; x < o.x + s.width; x++) {
// Swap endianess to big endian
// Swap endianness to big endian
auto px = reinterpret_cast<uint16_t *>(
&buffer1.value()[y * size.width + x]);
*px = (*px << 8) | (*px >> 8);
Expand Down Expand Up @@ -271,7 +271,7 @@ void EspPlatform::run_event_loop()
line_end - line_start };
render_fn(view);
if (color_swap_16) {
// Swap endianess to big endian
// Swap endianness to big endian
std::for_each(view.begin(), view.end(), [](auto &rgbpix) {
auto px = reinterpret_cast<uint16_t *>(&rgbpix);
*px = (*px << 8) | (*px >> 8);
Expand Down
2 changes: 1 addition & 1 deletion api/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ component.person = new ui.Person({ name: "Tim", age: 30 });
### enums
A value of an exported enum can be set as string or by usign the value from the exported enum.
A value of an exported enum can be set as string or by using the value from the exported enum.
**`my-component.slint`**
Expand Down
4 changes: 2 additions & 2 deletions api/node/cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export component Demo inherits Window {

This file declares the user interface.

4. Clear the conent of`index.ts` and add the following code:
4. Clear the content of `index.ts` and add the following code:

```ts
import * as slint from "slint-ui";
Expand Down Expand Up @@ -357,7 +357,7 @@ component.person = new ui.Person({ name: "Tim", age: 30 });

### enums

A value of an exported enum can be set as string or by usign the value from the exported enum.
A value of an exported enum can be set as string or by using the value from the exported enum.

**`my-component.slint`**

Expand Down
2 changes: 1 addition & 1 deletion api/node/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface Window {
/** Gets or sets the window's maximized state **/
maximized: boolean;

/** Gets or sets teh window's minimized state **/
/** Gets or sets the window's minimized state **/
minimized: boolean;

/**
Expand Down
2 changes: 1 addition & 1 deletion api/rs/slint/mcu.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ This minimal implementation needs to cover two functions:
that implements this trait.
* `fn duration_since_start(&self) -> Duration`: For animations in `.slint` design files to change properties correctly, Slint needs to know
how much time has elapsed between two rendered frames. In a bare metal environment you need to provide a source of time. Often the HAL crate of your
device provides a system timer API for this, which you can query in your impementation.
device provides a system timer API for this, which you can query in your implementation.

You may override more functions of this trait, for example to handle debug output, to delegate the event loop,
or to deliver events in multi-threaded environments.
Expand Down
2 changes: 1 addition & 1 deletion demos/energy-monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can run the demo on a desktop or embedded Linux environment with the followi
cargo run -p energy-monitor
```

### Microcontrolers (MCU)
### Microcontrollers (MCU)

Refer to the [MCU backend Readme](../mcu-board-support) for instructions on how to run the demo on smaller devices like the Raspberry Pi Pico.

Expand Down
2 changes: 1 addition & 1 deletion demos/energy-monitor/ui/mid_main.slint
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export component MidMain {
menu-width: root.width / 3;
menu-height: root.height - 75px;

opend => {
opened => {
i-menu-page.current-index = 0;
}

Expand Down
2 changes: 1 addition & 1 deletion demos/energy-monitor/ui/widgets/menu.slint
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export component Menu {
in property <length> menu-height <=> i-menu-container.height;
out property <bool> open;

callback opend();
callback opened();
callback closed();

public function hide-button() {
Expand Down
2 changes: 1 addition & 1 deletion demos/printerdemo/zephyr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Before you can run this example, make sure you have done the following:

## Build and Run the Example in the Simulator

Once you have the prerequisites, navigate to this directory and execute the following comands:
Once you have the prerequisites, navigate to this directory and execute the following commands:

```bash
# Build
Expand Down
2 changes: 1 addition & 1 deletion demos/weather-demo/src/app_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl AppHandler {
}

let data_controller = match data_controller_opt {
Some(data_contoller_some) => data_contoller_some,
Some(data_controller_some) => data_controller_some,
None => {
log::info!("Weather API key not provided. Using dummy data.");
Box::new(DummyWeatherController::new())
Expand Down
2 changes: 1 addition & 1 deletion demos/weather-demo/src/weather/openweathercontroller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn project_data_dir() -> Option<PathBuf> {
}
}
Err(_e) => {
log::warn!("Cannot read ANDROID_DATA, persistence not avaialble.");
log::warn!("Cannot read ANDROID_DATA, persistence not available.");
return None;
}
}
Expand Down
2 changes: 1 addition & 1 deletion demos/weather-demo/ui/controls/stackview.slint
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*!
* \brief The StackView is a component that can be used to simulate a stack view.
*
* \note: Due to the language limitation only the partial implementaion is possible.
* \note: Due to the language limitation only the partial implementation is possible.
* The component is meant to be a helper.
*
* \par Usage:
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ As a first step, let's rebase our changes to make sure that there are no conflic
git rebase origin/master
```

This might run through without stoppping. If there are merge conflicts to be resolved, `git rebase` will stop
This might run through without stopping. If there are merge conflicts to be resolved, `git rebase` will stop
and let you fix it. For instructions how to resolve the conflicts and continue, see [Resolving merge conflicts after a Git rebase](https://docs.github.com/en/get-started/using-git/resolving-merge-conflicts-after-a-git-rebase).

When your branch is rebased, proceed to squash the fixup commits. Start an interactive rebase that starts at the base commit:
Expand Down
2 changes: 1 addition & 1 deletion docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```
docs/
├── astro/ # The Astro project that builds the Slint langauge docs
├── astro/ # The Astro project that builds the Slint language docs
├── README.md # This file
├── building.md # How to build Slint
├── development.md # How to develop Slint
Expand Down
4 changes: 2 additions & 2 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The syntax tests are located in [internal/compiler/tests/syntax/](../internal/co

In summary, each .slint files have comments with `^error` like so:

```ingore
```ignore
foo bar
// ^error{parse error}
```
Expand Down Expand Up @@ -61,7 +61,7 @@ export component Foo inherits Rectangle {

The rust driver will compile each snippet of code and put it in a `slint!` macro in its own module
In addition, if there are ```` ```rust ```` blocks in a comment, they are extracted into a `#[test]`
function in the same module. This is usefull to test the rust api.
function in the same module. This is useful to test the rust api.
This is all compiled in a while program, so the `SLINT_TEST_FILTER` environment variable can be
set while building to only build the test that matches the filter.
Example: to test all the layout test:
Expand Down
4 changes: 2 additions & 2 deletions editors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ exists under the `language` server section:

Follow step 1. of the Vim section to get support for `.slint` files.

The easist way to use the language server itself in Neovim is via the `neovim/nvim-lspconfig`
The easiest way to use the language server itself in Neovim is via the `neovim/nvim-lspconfig`
and `williamboman/nvim-lsp-installer` plugins. Once these are installed
you can run `:LspInstall slint_lsp` to install the lsp binary (on Windows, Linux, and macOS).

Once the slint_lsp language server is installed and running, you can triggger the live preview
Once the slint_lsp language server is installed and running, you can trigger the live preview
via the code actions. Unfortunately there are several ways to trigger these, so please check your
configuration.

Expand Down
2 changes: 1 addition & 1 deletion editors/sublime/Slint.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contexts:
scope: support.constant.slint

keywords:
# Note that blackslashes don't need to be escaped within single quoted
# Note that backslashes don't need to be escaped within single quoted
# strings in YAML. When using single quoted strings, only single quotes
# need to be escaped: this is done by using two single quotes next to each
# other.
Expand Down
2 changes: 1 addition & 1 deletion editors/vscode/telemetry.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"purpose": "FeatureInsight",
"comment": "The platform/OS the extension is running on"
},
"commmon.language": {
"common.language": {
"classification": "SystemMetaData",
"purpose": "FeatureInsight",
"comment": "The user's language as reported by VS Code"
Expand Down
8 changes: 4 additions & 4 deletions examples/gallery/ui/pages/table_view_page.slint
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export global TableViewPageAdapter {

export component TableViewPage inherits Page {
property <int> sort-index: -1;
property <bool> sort-acending;
property <bool> sort-ascending;

title: @tr("TableView");
show-enable-switch: false;
Expand All @@ -39,12 +39,12 @@ export component TableViewPage inherits Page {
StandardTableView {
sort-ascending(index) => {
root.sort-index = index;
root.sort-acending = true;
root.sort-ascending = true;
}

sort-descending(index) => {
root.sort-index = index;
root.sort-acending = false;
root.sort-ascending = false;
}

columns: [
Expand All @@ -53,7 +53,7 @@ export component TableViewPage inherits Page {
{ title: @tr("Header 3") },
{ title: @tr("Header 4") },
];
rows: TableViewPageAdapter.filter_sort_model(TableViewPageAdapter.row_data, filter-edit.text, root.sort-index, root.sort-acending);
rows: TableViewPageAdapter.filter_sort_model(TableViewPageAdapter.row_data, filter-edit.text, root.sort-index, root.sort-ascending);
}

VerticalLayout {
Expand Down
2 changes: 1 addition & 1 deletion examples/gstreamer-player/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This example application demonstrates a way to use gstreamer (with Rust bindings) to display a video stream in Slint.

Current Status: This started as a fork of the ffmpeg example, but doesn't implement everything in the ffmpeg example yet:
* Play/Pause functionaly has not been implemented.
* Play/Pause functionality has not been implemented.
* The code has so far only been tested on Ubuntu.
* We use gstreamer's test source instead of streaming a video off the internet to save bandwidth and make the example more self contained.

Expand Down
2 changes: 1 addition & 1 deletion examples/repeater/demo.slint
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export component AppWindow inherits Window {
preferred-height: 600px;
preferred-width: 1000px;

// psuedo-random function
// pseudo-random function
function random(seed: int) -> float {
return (115249 * (seed + 196) * seed).mod(25117) / 25117;
}
Expand Down
2 changes: 1 addition & 1 deletion internal/backends/linuxkms/display/gbmdisplay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl GbmDisplay {
let mut config_template_builder = glutin::config::ConfigTemplateBuilder::new();

// Some drivers (like mali) report BAD_MATCH when trying to create a window surface for an xrgb backed
// gbm surface with an EGL config that has an alpha size of 8. Disable alpha explicitly to accomodate.
// gbm surface with an EGL config that has an alpha size of 8. Disable alpha explicitly to accommodate.
if matches!(self.surface_format, drm::buffer::DrmFourcc::Xrgb8888) {
config_template_builder =
config_template_builder.with_transparency(false).with_alpha_size(0);
Expand Down
2 changes: 1 addition & 1 deletion internal/backends/selector/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use i_slint_core::graphics::{RequestedGraphicsAPI, RequestedOpenGLVersion};

#[i_slint_core_macros::slint_doc]
/// Use the BackendSelector to configure one of Slint's built-in [backends with a renderer](slint:backends_and_renderers)
/// to accomodate specific needs of your application. This is a programmatic substitute for
/// to accommodate specific needs of your application. This is a programmatic substitute for
/// the `SLINT_BACKEND` environment variable.
///
/// For example, to configure Slint to use a renderer that supports OpenGL ES 3.0, configure
Expand Down
Loading
Loading