feat(styles): overhaul style managers

Unify editor layouts, live previews, comparisons, read-only behavior, and localized controls across all named style managers.

Refs #629
This commit is contained in:
Hakan Seven 2026-08-03 02:01:47 +03:00
commit 25515fa33c
27 changed files with 5480 additions and 1636 deletions

View file

@ -2982,6 +2982,188 @@ pub(super) fn message_id(source: &str) -> Option<&'static str> {
"── Custom Overrides (SHORTCUTS SET) ──────────────────" => Some("catalog-custom-overrides-shortcuts-set-07be563dec"),
"── Function Keys ──────────────────────────────────────" => Some("catalog-function-keys-b5a2df24e9"),
"── Other Keys ──────────────────────────────────────────" => Some("catalog-other-keys-a882812cf2"),
"Always keep text between extension lines" => Some("dimstyle-keep-text-between-extension-lines"),
"Angular dimensions" => Some("dimstyle-angular-dimensions"),
"Arc length symbol" => Some("dimstyle-arc-length-symbol"),
"Arrowheads" => Some("dimstyle-arrowheads"),
"Available style" => Some("dimstyle-available-style"),
"Baseline spacing" => Some("dimstyle-baseline-spacing"),
"Basic" => Some("dimstyle-basic"),
"Both arrowheads" => Some("dimstyle-both-arrowheads"),
"Center mark" => Some("dimstyle-center-mark"),
"Center mark size" => Some("dimstyle-center-mark-size"),
"Center marks" => Some("dimstyle-center-marks"),
"Centerlines" => Some("dimstyle-centerlines"),
"Compare with" => Some("dimstyle-compare-with"),
"Current style" => Some("dimstyle-current-style"),
"Deviation" => Some("dimstyle-deviation"),
"Different sections" => Some("dimstyle-different-sections"),
"Dimension line color" => Some("dimstyle-dimension-line-color"),
"Dimension linetype" => Some("dimstyle-dimension-linetype"),
"Dimension lineweight" => Some("dimstyle-dimension-lineweight"),
"Display alternate units" => Some("dimstyle-display-alternate-units"),
"Draw dimension line between extension lines" => Some("dimstyle-draw-dimension-line-between-extension-lines"),
"Extend beyond dimension line" => Some("dimstyle-extend-beyond-dimension-line"),
"Extend beyond ticks" => Some("dimstyle-extend-beyond-ticks"),
"Extension line color" => Some("dimstyle-extension-line-color"),
"Extension lineweight" => Some("dimstyle-extension-lineweight"),
"Feet and inches" => Some("dimstyle-feet-and-inches"),
"Fine tuning" => Some("dimstyle-fine-tuning"),
"First arrowhead" => Some("dimstyle-first-arrowhead"),
"First extension linetype" => Some("dimstyle-first-extension-linetype"),
"Fit options" => Some("dimstyle-fit-options"),
"Fixed length" => Some("dimstyle-fixed-length"),
"Fraction format" => Some("dimstyle-fraction-format"),
"Height scale" => Some("dimstyle-height-scale"),
"Horizontal placement" => Some("dimstyle-horizontal-placement"),
"Keep text horizontal when inside" => Some("dimstyle-keep-text-horizontal-inside"),
"Keep text horizontal when outside" => Some("dimstyle-keep-text-horizontal-outside"),
"Leader arrowhead" => Some("dimstyle-leader-arrowhead"),
"Limits" => Some("dimstyle-limits"),
"Linear dimensions" => Some("dimstyle-linear-dimensions"),
"Lower value" => Some("dimstyle-lower-value"),
"Measurement scale" => Some("dimstyle-measurement-scale"),
"Measurement template" => Some("dimstyle-measurement-template"),
"Method" => Some("dimstyle-method"),
"Multiplier" => Some("dimstyle-multiplier"),
"No differences" => Some("dimstyle-no-differences"),
"Not applicable" => Some("dimstyle-not-applicable"),
"Offset from measured point" => Some("dimstyle-offset-from-measured-point"),
"Place text manually while creating dimensions" => Some("dimstyle-place-text-manually"),
"Radius jog angle (°)" => Some("dimstyle-radius-jog-angle"),
"Read left to right" => Some("dimstyle-read-left-to-right"),
"Referenced style · Read only" => Some("dimstyle-referenced-read-only"),
"Round off" => Some("dimstyle-round-off"),
"Second arrowhead" => Some("dimstyle-second-arrowhead"),
"Second extension linetype" => Some("dimstyle-second-extension-linetype"),
"Show zero feet and zero inches" => Some("dimstyle-show-zero-feet-and-inches"),
"Show zero feet; suppress zero inches" => Some("dimstyle-show-zero-feet-suppress-zero-inches"),
"Suppress arrows when they do not fit" => Some("dimstyle-suppress-arrows-when-no-fit"),
"Suppress first dimension line" => Some("dimstyle-suppress-first-dimension-line"),
"Suppress first extension line" => Some("dimstyle-suppress-first-extension-line"),
"Suppress second dimension line" => Some("dimstyle-suppress-second-dimension-line"),
"Suppress second extension line" => Some("dimstyle-suppress-second-extension-line"),
"Suppress zero feet and zero inches" => Some("dimstyle-suppress-zero-feet-and-inches"),
"Suppress zero feet; show zero inches" => Some("dimstyle-suppress-zero-feet-show-zero-inches"),
"Symbols and Arrows" => Some("dimstyle-symbols-and-arrows"),
"Symmetrical" => Some("dimstyle-symmetrical"),
"Text background" => Some("dimstyle-text-background"),
"Text gap" => Some("dimstyle-text-gap"),
"The selected text style fixes the height at %{height}." => Some("dimstyle-fixed-text-height-note"),
"Tick size" => Some("dimstyle-tick-size"),
"Tolerance zero suppression" => Some("dimstyle-tolerance-zero-suppression"),
"Unit format" => Some("dimstyle-unit-format"),
"Upper value" => Some("dimstyle-upper-value"),
"Use <> as the measured value; text before and after it becomes the prefix and suffix." => Some("dimstyle-measurement-template-help"),
"Use different first and second arrowheads" => Some("dimstyle-use-different-arrowheads"),
"Use fixed-length extension lines" => Some("dimstyle-use-fixed-length-extension-lines"),
"Used in drawing" => Some("dimstyle-used-in-drawing"),
"Vertical offset" => Some("dimstyle-vertical-offset"),
"Vertical placement" => Some("dimstyle-vertical-placement"),
"Vertical position" => Some("dimstyle-vertical-position"),
"When space is limited" => Some("dimstyle-when-space-is-limited"),
"When text is moved" => Some("dimstyle-when-text-is-moved"),
"Zero suppression" => Some("dimstyle-zero-suppression"),
"Add a leader" => Some("dimstyle-add-a-leader"),
"Automatic" => Some("dimstyle-automatic"),
"By block" => Some("dimstyle-by-block"),
"Comma" => Some("dimstyle-comma"),
"Degrees, minutes, seconds" => Some("dimstyle-degrees-minutes-seconds"),
"Keep dimension line with text" => Some("dimstyle-keep-dimension-line-with-text"),
"Leading and trailing" => Some("dimstyle-leading-and-trailing"),
"Move arrows outside first" => Some("dimstyle-move-arrows-outside-first"),
"Move text and arrows outside" => Some("dimstyle-move-text-and-arrows-outside"),
"Move text freely" => Some("dimstyle-move-text-freely"),
"Move text outside first" => Some("dimstyle-move-text-outside-first"),
"Period" => Some("dimstyle-period"),
"Space" => Some("dimstyle-space"),
"Alignment spacing" => Some("style-manager-alignment-spacing"),
"Always left align" => Some("style-manager-always-left-align"),
"Attachment direction" => Some("style-manager-attachment-direction"),
"Background fill enabled" => Some("style-manager-background-fill-enabled"),
"Big font" => Some("style-manager-big-font"),
"Block scale X" => Some("style-manager-block-scale-x"),
"Block scale Y" => Some("style-manager-block-scale-y"),
"Block scale Z" => Some("style-manager-block-scale-z"),
"Borders" => Some("style-manager-borders"),
"Bottom attachment" => Some("style-manager-bottom-attachment"),
"Break gap size" => Some("style-manager-break-gap-size"),
"Caps and Fill" => Some("style-manager-caps-and-fill"),
"Content type" => Some("style-manager-content-type"),
"Data Row" => Some("style-manager-data-row"),
"Data type" => Some("style-manager-data-type"),
"Default text" => Some("style-manager-default-text"),
"Different" => Some("style-manager-different"),
"Display joints" => Some("style-manager-display-joints"),
"Drawing height" => Some("style-manager-drawing-height"),
"Drawing scale" => Some("style-manager-drawing-scale"),
"Effects" => Some("style-manager-effects"),
"Elements" => Some("style-manager-elements"),
"End caps" => Some("style-manager-end-caps"),
"Fill and joints" => Some("style-manager-fill-and-joints"),
"Fill enabled" => Some("style-manager-fill-enabled"),
"First segment angle" => Some("style-manager-first-segment-angle"),
"Fixed height" => Some("style-manager-fixed-height"),
"Flow direction" => Some("style-manager-flow-direction"),
"Font file" => Some("style-manager-font-file"),
"Fonts" => Some("style-manager-fonts"),
"Format string" => Some("style-manager-format-string"),
"Header" => Some("style-manager-header"),
"Header Row" => Some("style-manager-header-row"),
"Horizontal margin" => Some("style-manager-horizontal-margin"),
"Inner arcs" => Some("style-manager-inner-arcs"),
"Inside horizontal" => Some("style-manager-inside-horizontal"),
"Inside vertical" => Some("style-manager-inside-vertical"),
"Leader draw order" => Some("style-manager-leader-draw-order"),
"Leader note" => Some("style-manager-leader-note"),
"Left attachment" => Some("style-manager-left-attachment"),
"Line color" => Some("style-manager-line-color"),
"Line type" => Some("style-manager-line-type"),
"Line weight" => Some("style-manager-line-weight"),
"Maximum leader points" => Some("style-manager-maximum-leader-points"),
"Multileader draw order" => Some("style-manager-multileader-draw-order"),
"No preview" => Some("style-manager-no-preview"),
"Oblique angle" => Some("style-manager-oblique-angle"),
"Outer arc" => Some("style-manager-outer-arc"),
"Paper height" => Some("style-manager-paper-height"),
"Paper text height" => Some("style-manager-paper-text-height"),
"Path type" => Some("style-manager-path-type"),
"Right attachment" => Some("style-manager-right-attachment"),
"Scale factor" => Some("style-manager-scale-factor"),
"Second segment angle" => Some("style-manager-second-segment-angle"),
"Size and Effects" => Some("style-manager-size-and-effects"),
"Start caps" => Some("style-manager-start-caps"),
"Stroke fonts" => Some("style-manager-stroke-fonts"),
"Suppress header row" => Some("style-manager-suppress-header-row"),
"Suppress title row" => Some("style-manager-suppress-title-row"),
"System font" => Some("style-manager-system-font"),
"System fonts" => Some("style-manager-system-fonts"),
"Text alignment" => Some("style-manager-text-alignment"),
"Text angle" => Some("style-manager-text-angle"),
"Title Row" => Some("style-manager-title-row"),
"Top attachment" => Some("style-manager-top-attachment"),
"Unit type" => Some("style-manager-unit-type"),
"Vertical margin" => Some("style-manager-vertical-margin"),
"font family…" => Some("style-manager-font-family-placeholder"),
"Bottom to top" => Some("style-manager-bottom-to-top"),
"Arrowhead first" => Some("style-manager-arrowhead-first"),
"Content first" => Some("style-manager-content-first"),
"Leader first" => Some("style-manager-leader-first"),
"Straight" => Some("style-manager-straight"),
"Parallel to last segment" => Some("style-manager-parallel-last-segment"),
"Top of top line" => Some("style-manager-top-of-top-line"),
"Middle of top line" => Some("style-manager-middle-of-top-line"),
"Middle of text" => Some("style-manager-middle-of-text"),
"Middle of bottom line" => Some("style-manager-middle-of-bottom-line"),
"Bottom of bottom line" => Some("style-manager-bottom-of-bottom-line"),
"Bottom line" => Some("style-manager-bottom-line"),
"Underline bottom line" => Some("style-manager-underline-bottom-line"),
"Underline top line" => Some("style-manager-underline-top-line"),
"Underline all text" => Some("style-manager-underline-all-text"),
"Center of text" => Some("style-manager-center-of-text"),
"Center of text with overline" => Some("style-manager-center-of-text-overline"),
"Block extents" => Some("style-manager-block-extents"),
"Base point" => Some("style-manager-base-point"),
_ => None,
}
}