-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to set custom tab color after setting it to black #7948
Comments
This is what I think is the reason why this is not workingLook at the slider. It is set to black. So if you change the color using that rainbow like thing, that slider is still at black. This also explains why the color changes successfully when you choose a preset color or you give another hex value. The funny thing is that Windows Terminal does not have this slider This is probably because The one with the slider: The one that Windows Terminal be likely be using: |
GIFing this problem: (Sorry for my extremely bad GIFs. Especially the ColorPicker control 🤢) The problem: Demonstrating the problem and a possible fix in XAML Studio: I think we can fix this by enabling Color Slider in the ColorPicker control. I would like to make a PR on this if you agree on this fix (only if this fix is going to be as easy as I did in XAML Studio) |
Is there an existing issue in https://github.com/microsoft/microsoft-ui-xaml/issues? This seems like a good workaround to add but ultimately this is a bug with the XAML framework and should be addressed by the WINUI team. |
Yea, I think it's fine to fix locally for the Terminal with enabling the color slider, but I agree, we should file a follow-up on the WinUI repo that WSLUser linked. |
@zadjii-msft I will take up this issue |
@zadjii-msft |
PR ready to be reviewed -> #7963 |
So I did check and there isn't an existing issue on the WinUI repo. Please create a ticket and link to it here. The PR should be considered a workaround, not a "fix" and so this issue should be closed when we pick up a version of MUX with the fix. We should add the |
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> Adds the color slider to the tab color picker <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #7948 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] ~Tests added/passed~ * [ ] ~Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx~ * [ ] ~Schema updated.~ * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #7948 <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed *Not required*
I've filed microsoft/microsoft-ui-xaml#3476 upstream, but I'm okay leaving this issue closed, because frankly, the picker is better off with the color slider visible. That makes it possible to pick both a lightness and a hue, which greatly increases the range of easily accessible tab colors. Thanks for the investigation @alannt777! |
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> Adds the color slider to the tab color picker <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #7948 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] ~Tests added/passed~ * [ ] ~Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx~ * [ ] ~Schema updated.~ * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #7948 <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed *Not required* (cherry picked from commit 4a95d94)
🎉This issue was addressed in #7963, which has now been successfully released as Handy links: |
🎉This issue was addressed in #7963, which has now been successfully released as Handy links: |
Environment
Steps to reproduce
Expected behavior
User should be able to pick new color from color picker.
Actual behavior
Tab color is black and can't be change by picking color from color picker, it can be only change by selecting one from predefined list or by setting any other color hex code other than black
The text was updated successfully, but these errors were encountered: