Skip to content

fix: using DynamicResource for IconButtonInnerSpacing.#886

Merged
rabbitism merged 1 commit intomainfrom
IconButton-Spacing-resource
Feb 11, 2026
Merged

fix: using DynamicResource for IconButtonInnerSpacing.#886
rabbitism merged 1 commit intomainfrom
IconButton-Spacing-resource

Conversation

@zdpcdt
Copy link
Collaborator

@zdpcdt zdpcdt commented Feb 10, 2026

No description provided.

@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Complexity Health
Ursa 42% 32% 9051
Ursa.Themes.Semi 62% 68% 1021
Summary 50% (11010 / 22008) 35% (2692 / 7747) 10072

@github-actions
Copy link

Test Results

723 tests  ±0   723 ✅ ±0   18s ⏱️ +2s
  2 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit d0429e5. ± Comparison against base commit 4d5d105.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Semi theme’s IconButtonInnerSpacing so icon button templates can pick up spacing via resource lookup (intended to be overridable at runtime/theme-variant time).

Changes:

  • Replaces the hardcoded IconButtonInnerSpacing value with a resource alias (SemiSpacingTight) in the shared theme dictionary.
  • Switches icon button template spacing bindings from StaticResource to DynamicResource.
  • Changes BaseIconButton theme TargetType (appears unrelated to the PR title and impacts theme inheritance).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/Ursa.Themes.Semi/Themes/Shared/IconButton.axaml Redefines IconButtonInnerSpacing to reference a theme spacing token (SemiSpacingTight).
src/Ursa.Themes.Semi/Controls/IconDropDownButton.axaml Updates spacing bindings to use DynamicResource IconButtonInnerSpacing.
src/Ursa.Themes.Semi/Controls/IconButton.axaml Updates spacing binding to DynamicResource and changes BaseIconButton TargetType, affecting theme inheritance.

@zdpcdt zdpcdt requested a review from rabbitism February 10, 2026 15:46
@rabbitism rabbitism merged commit 42ad3b8 into main Feb 11, 2026
10 checks passed
@zdpcdt zdpcdt deleted the IconButton-Spacing-resource branch February 12, 2026 05:01
zdpcdt added a commit that referenced this pull request Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants