Skip to content

Conversation

@ThanhNguyxn
Copy link

Summary of the Pull Request

Fixes #25063 - Long color format names are cut off in the Color Picker editor, causing names like "DECIMAL" to appear as "DECIMAI".

PR Checklist

Detailed Description of the Pull Request / Additional comments

The first column width in ColorFormatControl.xaml was set to a fixed 48 pixels, which is too narrow to display longer format names like:

  • DECIMAL (7 chars)
  • HEX Int (7 chars)
  • CIEXYZ (6 chars)
  • CIELAB (6 chars)

This caused the last character(s) to be clipped, making "DECIMAL" appear as "DECIMAI" as shown in the issue.

Solution

Increased the column width from 48px to 64px. This provides enough space to display all current format names while maintaining the existing layout proportions.

The TextTrimming="CharacterEllipsis" is already set on the FormatNameTextBlock, so any custom format names that exceed the new width will be properly truncated with "..." instead of being cut off abruptly.

Before

image

After

The format name "DECIMAL" should now display correctly without being cut off.

Copilot AI review requested due to automatic review settings December 3, 2025 08:49
@ThanhNguyxn
Copy link
Author

@microsoft-github-policy-service agree

Copilot finished reviewing on behalf of ThanhNguyxn December 3, 2025 08:52
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 fixes a visual truncation issue in the Color Picker editor where long color format names like "DECIMAL" and "HEX Int" were being cut off, causing them to display incorrectly (e.g., "DECIMAI" instead of "DECIMAL").

Key Changes

  • Increased the first column width in ColorFormatControl.xaml from 48px to 64px to accommodate the longest format names (7 characters)
  • The change maintains proper text truncation via the existing TextTrimming="CharacterEllipsis" property for custom format names that may exceed the new width

@ThanhNguyxn ThanhNguyxn force-pushed the fix/colorpicker-format-name-truncation branch 3 times, most recently from 446577f to 3167cdf Compare December 5, 2025 10:50
Increased the width of the format name column from 48px to 64px in ColorFormatControl.xaml
to properly display longer color format names like 'DECIMAL', 'HEX Int', 'CIEXYZ', etc.
without them being cut off (e.g. 'DECIMAI' instead of 'DECIMAL').

Fixes microsoft#25063
@ThanhNguyxn ThanhNguyxn force-pushed the fix/colorpicker-format-name-truncation branch from 3167cdf to 3a98f5b Compare December 5, 2025 11:11
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.

[Color Picker] Long color format names are cut off, including default DECIMAL

1 participant