# resolve_component_resource

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-tools/function-resolve_component_resource/

**function** · [`ferroui-designer-tools`](/docs/0.5.0/api/ferroui-designer-tools/) · v0.5.0

```rust
fn resolve_component_resource(document: &ferroui_designer_core::Document, target: ferroui_designer_core::NodeId, key: &str) -> Option<ferroui_designer_core::NodeId>
```

Resolve a resource without guessing an active theme. Local entries take precedence;
then theme dictionaries and their Default fallback; then reverse-order merges and
ancestors. Ambiguous theme variants and unindexed external providers return None.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/component_resource_refs.rs#L70)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
