-
Notifications
You must be signed in to change notification settings - Fork 345
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
Tab padding adjustment & new tab close button #564
Conversation
- Adjusts padding and spacing of tab names. - Adds a new close button that offers a clearer distinction between hovered and unhovered. - Tab close button is now an SVG, looks nice at 72 ppi and should be nice on higher ppi screens as well! Changing to SVG will break existing custom user-generated .qss files, this should probably be noted in the changelog if accepted. Hopefully this will affect a minority of users.
Remember to add image assets in |
Adds closeTab.svg and closeTab_hovered.svg
Fixed! |
On which OS was it already tested? |
Fully tested on Windows, stylesheet was added in the preferences and SVGs were linked directly off the disk in the stylesheet. I have not built Natron fresh with these changes. Tested on Mac without the SVG and using the current PNG button graphic. For what it's worth I've been using this personally for a month or two now and it's worked quite nicely. Also converting this to a draft for now until the colour of close button issue is decided upon. |
Can someone test if it works OK on Linux? @rodlie ? |
It works like the other tabs do now! Minor spacing fix, this file needs some serious cleanup and organization but that's for another day.
Agreed, will reduce min-width of the main tabs. What do you have the font size set to? Looks quite large. |
Compensates for awkward spacing between the text and the tab close button, looks much better for main tabs with less text like the viewer while still keeping them comfortably in-line with the rest of the tab sizes.
Changes from " : " to ": " throughout the file for consistency
This is the extent of the cleanup that will be done :P
Alright well I'm stumped. I don't think the item responsible for that 1px line is exposed in the QSS file and after cross-referencing the file submitted to that wild PR with a ridiculous amount of file changes (that doesn't have the issue but has also been completely re-written) I cannot find what causes this problem. The good news is that this is not the fault of this PR! It's just an existing bug I'd like to have fixed. I know you're trying to push a new beta out and I'd like this to be included in it if possible. Hopefully we can revisit this as part of a larger UI rework sometime later down the road? I don't want to get too hung up on a small existing visual bug that will be ironed out in the future anyways as part of a rework / dependency upgrade, and I think overall these new tabs will provide a better experience for users until that happens. :) I've also made some small syntax cleanups with the colons. This has been tested and the stylesheet loads without problems. Hooray for consistency! |
Could you leave the png versions (or re-generate them from your SVGs) in the resources, which would solve the backward compat issue? Remember to re-add them to Gui/GuiResources.qrc Once done, I'll merge |
Good idea, done! |
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.
thank you!
Changes
Screenshots & Rationale
New Tabs, the close button is now of equal visual weight as the tab name.
New Tabs with hovered close button. Hovered button is now a much more obvious change of state.
Old tabs for comparison, note the lack of breathing room and clickable area around the type, the text is also very close to the close button.
The extra breathing room also helps readability in the properties panel tabs too! Minimum tab size has been increased for more uniformity among tabs with smaller names, this should also help users in distinguishing individual clickable areas for tab shapes. Clicking on tabs with shorter names should also be easier and faster with the increased clickable area, previously this required more precision.
Old tabs for comparison.
Notable issues
EDIT: Half fixed! See below!
EDIT: Tried this, the value of the text colour (#c7c7c7) and the selection colour is really close (contrast ratio of 1.3:1) and renders the text on the tab very hard to read when the tab is hovered. This is already a problem in the current build and perhaps out of the scope of this PR due to all the other colour inconsistencies in Natron's interaction that should be addressed at a later date.