Replace the control bar's stroke weight with a full stroke properties popover (#4145)

* Replace the control bar's stroke weight with a full stroke properties popover

* Code review
This commit is contained in:
Keavon Chambers
2026-05-13 03:58:12 -07:00
committed by GitHub
parent 629a1f4b4c
commit 4d5dce976e
14 changed files with 609 additions and 169 deletions
@@ -668,6 +668,7 @@ impl Diffable for WidgetInstance {
&& button1.tooltip_description == button2.tooltip_description
&& button1.tooltip_shortcut == button2.tooltip_shortcut
&& button1.popover_min_width == button2.popover_min_width
&& button1.popover_layout.0.len() == button2.popover_layout.0.len()
{
// Only the popover layout differs, diff it recursively
for (i, (a, b)) in button1.popover_layout.0.iter_mut().zip(button2.popover_layout.0.iter()).enumerate() {
@@ -72,6 +72,8 @@ pub struct TextLabel {
// Sizing
#[serde(rename = "minWidth")]
pub min_width: u32,
#[serde(rename = "maxWidth")]
pub max_width: u32,
#[serde(rename = "minWidthCharacters")]
pub min_width_characters: u32,