Skip to content

Commit dfbcbda

Browse files
Richtext: color handling (#9996)
* Use htmlparser * Parse color values * Cargo fmt * Use imported Color * Actually handle colors via overrides * Check that the tags match * Use color parsing feature * Make htmlparser optional * Error handling * [autofix.ci] apply automated fixes * debug_log! --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 23993ed commit dfbcbda

File tree

2 files changed

+255
-53
lines changed

2 files changed

+255
-53
lines changed

internal/core/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ raw-window-handle-06 = ["dep:raw-window-handle-06"]
6767

6868
experimental = []
6969

70-
experimental-rich-text = ["dep:pulldown-cmark"]
70+
experimental-rich-text = ["dep:pulldown-cmark", "dep:htmlparser", "dep:thiserror", "i-slint-common/color-parsing"]
7171

7272
unstable-wgpu-26 = ["dep:wgpu-26"]
7373
unstable-wgpu-27 = ["dep:wgpu-27"]
@@ -134,6 +134,8 @@ wgpu-27 = { workspace = true, optional = true }
134134
tr = { workspace = true, optional = true }
135135

136136
webbrowser = { version = "1.0.6", optional = true }
137+
htmlparser = { version = "0.2.1", optional = true }
138+
thiserror = { version = "2.0.17", optional = true }
137139

138140
[target.'cfg(target_family = "unix")'.dependencies]
139141
gettext-rs = { version = "0.7.1", optional = true, features = ["gettext-system"] }

0 commit comments

Comments
 (0)