-
Notifications
You must be signed in to change notification settings - Fork 275
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
feat: active border radius applies to stack tab buttons as well #1596
feat: active border radius applies to stack tab buttons as well #1596
Conversation
Just as a side note, I did try out doubling the tab height and moving the tabs behind the windows giving the tabs the appearance of hugging the contours of the overlapped window. It works, but when moving windows off of a stack, the tabs become exposed and sit in-front of the windows in the stack until a window is activated on the stack. Figured this is a simpler solution that works with the existing stack/tab button arrangement logic. |
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.
All regression testing has passed.
Note: During testing I came across an issue with Super
+G
. It is not a regression caused by this PR. I will link it here so this is not mistakenly thought to be the cause of the issue.
Looking at the screenshot on the PR, seems like there are some nice improvements that align with our new designs for window stacks in Cosmic: pop-os/cosmic-epoch#39. In particular, the addition of the app icon could help distinguish between the windows in a stack at a glance.
|
Neither of these are new with this PR. Tabs already have icons and close buttons (below is what's currently released.) This PR is just changing the shape of the tabs. I agree there's a lot of space between tabs with this change. |
Thanks for the clarification, ignore my comments about icon and close-button. |
Thanks for the screenshots. Thoughts about visual consistency throughout the system are the ones that make me hesitate. And it sounds like just rounding the tab top corners that touch the edges is not an option:
Wonder if it would take rewriting some of the code to make it look more consistent with other things in the UI. |
Does anyone know if there is any way to only round top right and left corners of the outer tabs respectively? That might still be a much better solution visually and in terms of UI consistency and cohesive feel. |
I believe I can modify the code to only add a radius to the outside corners of the first and last tab buttons. I feel like it would look best if it was both the top and bottom left corners had a radius on the first tab (top and bottom right for the last) since a sharp bottom corner would look strange on top of the window with a rounded corner. But removing the rounded corners on the tab sides that have tab neighbours makes sense. Just working on the changes now. Will probably update the PR over the weekend. |
@maria-komarova, following @n3m0-22's screenshot variations, here's the new changes. Since the purpose of this feature is to better match the Active Hint window outline when it has a radius set (likely to match the current theme and it's window corner radius settings), having a rounded top-left and rounded top-right while also having a sharp bottom-left and bottom-right would look strange IMO. You can see why on the 0px radius example below where the window has a radius but the bottom tab corners don't. So I'm meeting in the middle with this iteration. Below is the updates with 0, 5, 12, 16, and 32px radius. 32 just shows the limitations of having a tab height of only 24px and the 16 option is the default in gnome's default Adwaita theme. Another option which requires more work and potential logic changes, would be to have the tab height be dynamic based on the height of the radius. The window position wouldn't change so the tab height would still look like 24px, but the actual height would be hidden behind the window. This would give the illusion of the tab hugging the windows rounded corners to a point along the side. Image example below. Let me know your thoughts :) |
I should also mention that in the recent batch of screenshots I'm using a window that has a corner radius of 16px. It might be better to see the effect of the Pop theme's 5px corner. |
@maria-komarova, I agree and you've added another reason to look forward to Cosmic. I'll attach some additional screenshots of the current iteration using the 5px radius on the windows and the tabs. I've also done some initial investigation into the "hugging" tabs and I think it's a better design, but there's a fair amount of changes required that it warrants a separate PR. If I find the time to implement that improved version of the tabs design, I'll link to this PR to continue the conversation. |
Side question: is there a proper way to test changes to the pop-shell in Wayland? I tried following the docs guidelines here, but I don't know how to trigger keyboard shortcuts in the nested wayland session. Logging out and back in was a bit annoying while developing lol. |
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.
UX is good with the changes unless someone else has any concerns.
@BobbyByrne thanks for working through the best solution to fix the rounded corner discrepancy and for the contribution :) |
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.
With the most recent commit all testing is still passing. Looks good to me.
Given how rounded corners are becoming more popular and we allow the Active Hint's border radius to be changed, I felt like the stack tab buttons needed to match the border radius of the active hint.
Originally I was hoping to only do the outside buttons but I don't believe the CSS options are supported yet (example: border-top-left-radius)