-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Improve the editor theme #45607
Improve the editor theme #45607
Conversation
For the first case, this is due to antialiasing blurring out borders as long as one of the corners has a radius greater than zero. It regressed sometime around 3.2.2 or 3.2.3. For the second case, this is likely due to me not setting the bottom corner radii of the window title to 0. I'll look into fixing that. |
It used to look like the second screenshot you posted, but it regressed since the PopupMenu rework was merged. I haven't been able to fix it so far. |
i think the inspector could also use an update, it sometimes hard to distinguish where an expanded tab starts and ends |
This is something reduz also mentioned, but I'd prefer to tackle it in a future PR. Edit: Proposal opened: godotengine/godot-proposals#2230 |
@EricEzaM |
I agree. Much more modern. I will submit a PR with these changes. It is tangentially related to this PR, but it can stand alone in it's own PR too. |
Overall on the theme though, I must say I quite dislike the mix of sharp and rounded corners. I think one should be chosen. Sharp edges is by far more common in the editor currently and it looks pretty clean I think. The rounded edges are just sort of there randomly... on PopupMenu hover highlight (why?), on Tree selection, on the search bar, on the unselected tabs but not on the selected tabs (???). All the inspector widgets are still with sharp edges. Just clashes imo. I know it's configurable... but I think the default should be putting the best foot forward. |
1d3a442
to
4970864
Compare
I made the selected tabs have rounded corners (for consistency with unselected tabs) and fixed the corner bug between single-window mode window titles and bodies: Edit: I pushed another update that disables StyleBoxFlat antialiasing to work around #35279 and increases tab highlight thickness to 2 pixels: Edit 2: Removed obsolete Highlight Current Script and Current Script Background Color editor settings. These have been superseded by the built-in theme highlighting a long time ago (around Godot 3.0). |
84e65e6
to
09e3941
Compare
I found the rounded selected tab looks like there is a problem, plus the left border stop abruptly. In Blender you have some elements rounded others not, it's hard the keep coherence. Maybe this PR should be split in multiple little PR step by step (like #45704) , start by steps where there is a consensus (maybe color? decrease the padding? etc.). |
I can fix this by making the tabs' top corners non-rounded, let's give it a try. Edit: Done:
Unfortunately, things tend to depend on each other when you do UI design. Therefore, this isn't really possible in a meaningful way. That said, I definitely want to get this PR merged in an acceptable state (rather than a perfect state). Otherwise, we'll never merge it 👀 |
09e3941
to
25fd883
Compare
@Calinou this is way way much better!
In the subjective area, I had suggestions:
|
That issue was already present before the editor theme redesign. I'd prefer tackling stuff like this in a future PR.
This is a "ghost" dropdown which should be hidden entirely until an OpenGL renderer is implemented in the
Separators will disappear if you set the border width to 0 (which is the default). This is a bug, I'll look into fixing it. Edit: Fixed. I also fixed the 2D/3D editor tool buttons to be all flat (i.e. without a background).
This change needs to be done in the Tree control, I'd prefer leaving it to a future PR. |
0ac7390
to
4b385c9
Compare
I don't know, the fact that the line is under the rounded rectangle makes it look kind of weird IMO, why not putting it on top of the field? Edit: I just now noticed how actually they're more like an outline, since they follow the curves of the fields, but for some reason in the editor preferences this doesn't apply, making it look like there's a normal line under them, and that's what I was talking about. |
Changing the background color of subwindows is a good idea; I hadn't thought about it before.
This is because I made the bottom corners non-rounded. Otherwise, this kind of line always ends up looking weird.
See above. There are just as many people disliking rounded tab highlights as people liking them. I can't please everyone 🙂 I'm neutral about it personally. |
I'd consider adding, so all icons, are 1 color, to give it more consistent look . . at least, as an option . . . maybe, as toggle, ' monochrome icons ' . . I mean, in node inspector . . :O would give it that ' classic ' application look . . . <3 I love everything I see here, can't wait, Thanks . . 10 / 10 <3 pls. add it soon, so I can tweak it and, make an awe-some theme <3 |
@jasperbrooks79 You will be able to make icons look monochrome in 4.0. See #45924 |
This PR already adds an editor setting for that :) |
The editor theme now makes use of rounded corners and less borders to follow modern visual trends. The default theme's colors were also tweaked to make the blue hue more subtle (similar to the Arc theme, which was removed as a consequence). The Alien theme was replaced by a Breeze Dark theme, which should blend in well with the KDE theme.
c6dcc3e
to
60b70c7
Compare
I made some changes to prepare for merging:
|
Looking at all the screenshots that have been posted so far I have to say that I definitely prefer the tabs with rounded top corners. imo the rounded corners make it easier to see where one tab ends and the next begins. Have you ever considered removing the padding around the entire editor? |
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.
Let's give this a spin and address additional feedback in follow-up issues/PRs once we've gotten used to the changes.
Thanks! |
@SilencedPerson If you are talking about the removal of paddings inside of the docks, it was the original idea (by jfons, I think?) which groud take one step further to remove gaps as well. It's a good idea, but it would require to change the actual layout of every dock (so it's not just a theme change), which makes it harder to try as an experiment. Feel free to open a proposal, I guess. It would be preferable to discuss it there rather than in a closed PR.
Yeah, reduz wanted to remove the background color for sub-sections there and only rely on the bold font. I agreed with him, but the majority wanted some backgrounds, so a compromise was reached with a faint but visible background for sub-section headers. |
The editor theme now makes use of rounded corners and less borders to follow modern visual trends. The corner radius and border width are configurable in the Editor Settings, so you can revert to the old appearance by setting corner radius to 0 and border width to 1.
The default theme's colors were also tweaked to make the blue hue more subtle (similar to the Arc theme, which was removed as a consequence). The Alien theme was replaced by a Breeze Dark theme, which should blend in well with the KDE theme.
The new editor theme will allow distinguishing Godot 4.0 easily from Godot 3.2, even if the version number is not visible on screenshots/videos. This is important for tutorials and the like 🙂
TODO
Preview
Click to view at full resolution.
Note: The screenshots below are outdated and don't reflect the version of the pull request that was merged.
Dark theme
Light theme