Scale widget size with system Text Size by krschau · Pull Request #2723 · microsoft/devhome (original) (raw)
Summary of the pull request
There are a few accessibility bugs around text being cut off inside widgets when system text scaling is turned up (Windows Settings > Accessibility > Text size). The Windows Widget Board (🪟+w) scales up the entire widget to match the text scaling, so we will, too. For example, the normal widget width is 300 pixels. If text scaling is at 200%, our widgets will become 600 px wide. Height also scales.
References and relevant issues
https://task.ms/49360547
https://task.ms/49658528
Detailed description of the pull request / Additional comments
- WidgetControl and WidgetBoard both need to listen for text scale changed events and respond.
- Widget header (icon, title, "more options" menu" also scales up.
- Updating widget sizes must be done on the UI thread.
GetPixelHeightFromWidgetSizemoves to WidgetControl since that is the only place it is used.
Validation steps performed
PR checklist
- Closes Allow Dashboard widets to scale up in size with system text size #2638
- Tests added/passed
- Documentation updated