-
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
Add tab color indicator for tab switch menu (CTRL+Tab) #17820
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat. 😺
c5e01b0
to
d25e78b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, these are just nits. This is neat, thanks!
@@ -205,6 +205,13 @@ | |||
Visibility="{x:Bind Item.(local:TabPaletteItem.TabStatus).IsInputBroadcastActive, Mode=OneWay}" /> | |||
|
|||
</StackPanel> | |||
|
|||
<Ellipse Grid.Column="4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slightly worried that this will overlap with the scrollbar on the tab picker if there's a lot of tabs. Who knows - maybe that column was vestigial?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/cascadia/TerminalApp/TabBase.cpp
Outdated
{ | ||
const auto currentColor = GetTabColor(); | ||
|
||
if (currentColor.has_value()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC this if/else could probably just be a single .value_or(Windows::UI::Colors::Transparent())
I love this so much! Thanks for doing it! 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I did just realize that we have TabPaletteItem
specifically for things like this. You can see where it's used by finding its members IsReadOnlyActive
and IsInputBroadcastActive
.
I was feeling a little weird about it being on the generic PaletteItem
, because that's also used for commands. I'm thinking that it might feel better on TabPaletteItem
!
eccf7c9
to
1845601
Compare
I removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful! Only +13 lines, wow
Added tab color indicator for the tab switch menu. Tab color indicators have the same color as the background color of the tabs. If a tab has the default background color, the indicator is not shown in the tab switch menu. Closes #17465 (cherry picked from commit 544452d) Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgS0CZA Service-Version: 1.22
Added tab color indicator for the tab switch menu. Tab color indicators have the same color as the background color of the tabs. If a tab has the default background color, the indicator is not shown in the tab switch menu.
I don't know if it was a good idea, but I just used small circles for indicators.
Relevant issue(s); #17465
20240828_231729.mp4