slint/internal/compiler
Nigel Breslaw 538f8bde19
Allow checking at runtime about the current theme (#8049)
Although std-widgets provides many properties that adapt to the current theme users who would like to go beyond these properties and do theme dependent changes are limited. One option would be to add even more properties to the Palette, however this would potentially bloat the object, it's not obvious what properties users care about and this approach doesn't scale. In many cases developers could simply create their own properties if they knew what the current runtime theme was.

This simple change allows an app to know what the current theme is and present theme appropriate UI's.
2025-04-04 14:44:14 +03:00
..
generator HSV should wrap hue values otherwise it outputs an invalid hue of black (#8024) 2025-04-03 12:33:40 +03:00
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
llr Allow to have builtin item function to return a value 2025-03-31 14:06:24 +02:00
lookup Replace compiler dependency on css-color-parser crate 2024-07-29 13:13:53 +02:00
parser Improve a bit the error when the base of an element is missing 2025-01-06 10:47:05 +01:00
parser-test-macro A few more format arg inlining 2025-02-07 06:43:19 +01:00
passes Introduce MenuSeparator 2025-04-02 11:50:45 +02:00
tests Introduce MenuSeparator 2025-04-02 11:50:45 +02:00
widgets Allow checking at runtime about the current theme (#8049) 2025-04-04 14:44:14 +03:00
build.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
builtin_macros.rs Refactoring: get rid in the callable in the Expression tree 2025-01-24 20:26:35 +01:00
builtins.slint Allow checking at runtime about the current theme (#8049) 2025-04-04 14:44:14 +03:00
Cargo.toml ci: Format toml files 2025-04-02 11:03:41 +02:00
diagnostics.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
embedded_resources.rs Signed DistanceField font rendering in swrenderer 2024-10-23 09:12:30 +02:00
expression_tree.rs Allow to have builtin item function to return a value 2025-03-31 14:06:24 +02:00
fileaccess.rs Widget style: simplify -light/-dark handling 2024-08-20 16:55:15 +02:00
generator.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
langtype.rs Allow to have builtin item function to return a value 2025-03-31 14:06:24 +02:00
layout.rs Refactoring: get rid in the callable in the Expression tree 2025-01-24 20:26:35 +01:00
lexer.rs Auto-fixed clippy::needless_lifetimes 2025-02-07 09:20:49 +01:00
lib.rs Improve font embedding for MCUs when bundling translations (#7875) 2025-03-18 11:54:28 +01:00
literals.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
llr.rs Improve font embedding for MCUs when bundling translations (#7875) 2025-03-18 11:54:28 +01:00
load_builtins.rs Allow to have builtin item function to return a value 2025-03-31 14:06:24 +02:00
lookup.rs Add string.to-lowercase and string.to-uppercase (#7922) 2025-03-25 09:53:54 +01:00
namedreference.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
object_tree.rs Allow to have builtin item function to return a value 2025-03-31 14:06:24 +02:00
parser.rs Auto-fixed clippy::needless_lifetimes 2025-02-07 09:20:49 +01:00
passes.rs swrenderer: Don't overflow for font bigger than 256px 2025-03-25 15:51:18 +01:00
pathutils.rs Auto-fixed clippy::needless_borrow 2025-02-07 09:02:45 +01:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
translations.rs Improve font embedding for MCUs when bundling translations (#7875) 2025-03-18 11:54:28 +01:00
typeloader.rs Improve font embedding for MCUs when bundling translations (#7875) 2025-03-18 11:54:28 +01:00
typeregister.rs Allow to have builtin item function to return a value 2025-03-31 14:06:24 +02:00

The Slint Compiler Library

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.