slint-ui 1.14.0-nightly.2025100120 → 1.14.0-nightly.2025100223

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Cargo.toml CHANGED
@@ -42,10 +42,10 @@ accessibility = ["slint-interpreter/accessibility"]
42
42
  [dependencies]
43
43
  napi = { version = "2.14.0", default-features = false, features = ["napi8"] }
44
44
  napi-derive = "2.14.0"
45
- i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "0a48f177e24144d03bb8f6cd4bcca1c699a4cf48", version = "=1.14.0", default-features = false }
46
- i-slint-core = { features = ["default", "gettext-rs"] , git = "https://github.com/slint-ui/slint", rev = "0a48f177e24144d03bb8f6cd4bcca1c699a4cf48", version = "=1.14.0", default-features = false }
47
- i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "0a48f177e24144d03bb8f6cd4bcca1c699a4cf48", version = "=1.14.0", default-features = false }
48
- slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , git = "https://github.com/slint-ui/slint", rev = "0a48f177e24144d03bb8f6cd4bcca1c699a4cf48", version = "=1.14.0"}
45
+ i-slint-compiler = { features = ["default"] , git = "https://github.com/slint-ui/slint", rev = "d80438ce0671cbd5cbaea6c3ff55447ef0c7c516", version = "=1.14.0", default-features = false }
46
+ i-slint-core = { features = ["default", "gettext-rs"] , git = "https://github.com/slint-ui/slint", rev = "d80438ce0671cbd5cbaea6c3ff55447ef0c7c516", version = "=1.14.0", default-features = false }
47
+ i-slint-backend-selector = { git = "https://github.com/slint-ui/slint", rev = "d80438ce0671cbd5cbaea6c3ff55447ef0c7c516", version = "=1.14.0", default-features = false }
48
+ slint-interpreter = { default-features = false , features = ["display-diagnostics", "internal", "compat-1-2"] , git = "https://github.com/slint-ui/slint", rev = "d80438ce0671cbd5cbaea6c3ff55447ef0c7c516", version = "=1.14.0"}
49
49
  spin_on = { version = "0.1" }
50
50
  css-color-parser2 = { version = "1.0.1" }
51
51
  itertools = { version = "0.14" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slint-ui",
3
- "version": "1.14.0-nightly.2025100120",
3
+ "version": "1.14.0-nightly.2025100223",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "homepage": "https://github.com/slint-ui/slint",
@@ -50,11 +50,11 @@
50
50
  "@napi-rs/cli": "2.18.4"
51
51
  },
52
52
  "optionalDependencies": {
53
- "@slint-ui/slint-ui-binary-linux-x64-gnu": "1.14.0-nightly.2025100120",
54
- "@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.14.0-nightly.2025100120",
55
- "@slint-ui/slint-ui-binary-darwin-arm64": "1.14.0-nightly.2025100120",
56
- "@slint-ui/slint-ui-binary-win32-x64-msvc": "1.14.0-nightly.2025100120",
57
- "@slint-ui/slint-ui-binary-win32-arm64-msvc": "1.14.0-nightly.2025100120"
53
+ "@slint-ui/slint-ui-binary-linux-x64-gnu": "1.14.0-nightly.2025100223",
54
+ "@slint-ui/slint-ui-binary-linux-arm64-gnu": "1.14.0-nightly.2025100223",
55
+ "@slint-ui/slint-ui-binary-darwin-arm64": "1.14.0-nightly.2025100223",
56
+ "@slint-ui/slint-ui-binary-win32-x64-msvc": "1.14.0-nightly.2025100223",
57
+ "@slint-ui/slint-ui-binary-win32-arm64-msvc": "1.14.0-nightly.2025100223"
58
58
  },
59
59
  "scripts": {
60
60
  "artifacts": "napi artifacts",
@@ -159,7 +159,18 @@ impl SlintRgbaColor {
159
159
  /// Returns the color as string in hex representation e.g. `#000000` for black.
160
160
  #[napi]
161
161
  pub fn to_string(&self) -> String {
162
- format!("#{:02x}{:02x}{:02x}{:02x}", self.red(), self.green(), self.blue(), self.alpha())
162
+ let alpha = self.alpha() as u8;
163
+ if alpha == 255 {
164
+ format!("#{:02x}{:02x}{:02x}", self.red() as u8, self.green() as u8, self.blue() as u8)
165
+ } else {
166
+ format!(
167
+ "#{:02x}{:02x}{:02x}{:02x}",
168
+ self.red() as u8,
169
+ self.green() as u8,
170
+ self.blue() as u8,
171
+ alpha
172
+ )
173
+ }
163
174
  }
164
175
  }
165
176