@effindomv2/fui-rs 0.1.7 → 0.1.8

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
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "fui-rs"
3
- version = "0.1.7"
3
+ version = "0.1.8"
4
4
  edition = "2021"
5
5
  license = "AGPL-3.0-only OR LicenseRef-EffinDom-Commercial"
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effindomv2/fui-rs",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
5
  "license": "AGPL-3.0-only OR LicenseRef-EffinDom-Commercial",
6
6
  "description": "EffinDom v2 Rust frontend framework SDK and host generators",
@@ -181,9 +181,12 @@ pub(crate) fn apply_text_props(handle: NodeHandle, props: &TextProps, behavior:
181
181
  if props.has_style_runs {
182
182
  ui::set_text_style_runs(handle.raw(), &props.style_runs);
183
183
  }
184
- if let Some(color) = props.text_color {
185
- ui::set_text_color(handle.raw(), color);
186
- }
184
+ ui::set_text_color(
185
+ handle.raw(),
186
+ props
187
+ .text_color
188
+ .unwrap_or_else(|| crate::theme::current_theme().colors.text_primary),
189
+ );
187
190
  if let Some(line_height) = props.line_height {
188
191
  ui::set_line_height(handle.raw(), line_height);
189
192
  }