Polish Settings UI: Color Scheme page #12049

Closed
opened 2026-01-31 03:04:58 +00:00 by claunia · 2 comments
Owner

Originally created by @carlos-zamora on GitHub (Jan 12, 2021).

  • Edit a color scheme -> Hit 'apply' -> the selected color scheme resets to the first color scheme in the list (instead of the one just edited)
  • The buttons turn gray on rollover covering up what color I'm looking at (I have dark mode)
  • Activate scheme renamer… then commit with enter key or dismiss with esc key and it will do the needful then go highlight the Discard Changes button at the bottom. That's a bit weird.
  • Rename/add new buttons are misaligned with combobox
    • misaligned buttons
  • Reorganize Color Scheme Entries
    • There should be 3 tables: non-bright colors, bright colors, and miscellaneous.
    • Currently, everything is bound to one color table. It would be nice to find a way to fix that.
  • Redesign color buttons
    • remove text for each color button (to prevent cropping when text is localized)
    • instead, add a tooltip (and automation property) that includes the label
  • "add new" button may be cropped when localized (needs verification after #8777)
Originally created by @carlos-zamora on GitHub (Jan 12, 2021). - [x] Edit a color scheme -> Hit 'apply' -> the selected color scheme resets to the first color scheme in the list (instead of the one just edited) - [x] The buttons turn gray on rollover covering up what color I'm looking at (I have dark mode) - [ ] Activate scheme renamer… then commit with enter key or dismiss with esc key and it will do the needful then go highlight the Discard Changes button at the bottom. That's a bit weird. - [x] Rename/add new buttons are misaligned with combobox - ![misaligned buttons](https://user-images.githubusercontent.com/11050425/104356356-b5791f00-54c0-11eb-948d-747b513e1ae3.png) - [ ] **Reorganize Color Scheme Entries** - There should be 3 tables: non-bright colors, bright colors, and miscellaneous. - Currently, everything is bound to one color table. It would be nice to find a way to fix that. - [ ] **Redesign color buttons** - remove text for each color button (to prevent cropping when text is localized) - instead, add a tooltip (and automation property) that includes the label - [ ] "add new" button may be cropped when localized (needs verification after #8777)
Author
Owner

@zadjii-msft commented on GitHub (Jan 13, 2021):

What have we learned? (Jan 13)

  • When you navigate to a new item in the NavigationView, we ctor a new version of that Page. That explains why adding the schemes to the list each time just worked - each navigation is starting fresh.
  • Same deal happens when we save the settings. We end up re-navigating, which causes the page to get reconstructed, which makes it impossible to store state in the page across navigations.

Let's try sticking that state in ColorSchemesPageNavigationState, and not make a new one every time we Navigate. If the MainPage just hangs onto a single copy of ColorSchemesPageNavigationState, then we can stick some data in there to be able to reconstruct the state. I'm assuming that's what it's for.

@zadjii-msft commented on GitHub (Jan 13, 2021): #### What have we learned? (Jan 13) * When you navigate to a new item in the NavigationView, _we ctor a new version of that `Page`_. That explains why adding the schemes to the list each time just worked - each navigation is starting fresh. * Same deal happens when we save the settings. We end up re-navigating, which causes the page to get reconstructed, which makes it impossible to store state _in the page_ across navigations. Let's try sticking that state in `ColorSchemesPageNavigationState`, and _not_ `make` a new one every time we Navigate. If the MainPage just hangs onto a single copy of `ColorSchemesPageNavigationState`, then we can stick some data in there to be able to reconstruct the state. I'm assuming that's what it's for.
Author
Owner

@ghost commented on GitHub (Mar 1, 2021):

:tada:This issue was addressed in #9196, which has now been successfully released as Windows Terminal Preview v1.7.572.0.🎉

Handy links:

@ghost commented on GitHub (Mar 1, 2021): :tada:This issue was addressed in #9196, which has now been successfully released as `Windows Terminal Preview v1.7.572.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.7.572.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12049