-
-
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
Decrease margins around the editor and project manager windows #40287
Conversation
Here is a before and after slider: https://imgsli.com/MTg5MzM |
f7b8778
to
2d996b4
Compare
Honestly? I think it looks ugly. Having no margin borders doesn't really fit the current design of the editor. |
@YeldhamDev It's normal for it to look out of place at first, but I think you get used to it after an hour of usage or so. It looked weird to me as well when I decreased it at first. We're so used to those 8-pixel margins we don't even pay attention to them anymore. Also, keep in mind the real estate gains are significant on low-resolution displays like 1366x768 (which is common on budget laptops in use today). I've seen lots of people using Godot on such small displays over the years, and it looks like it will be the case for the foreseeable future. Let's make their experience as good as possible 🙂 |
That happens to be the size of my monitor! 😉 And I think those margins make very little difference. I would personally wait for the new editor theme in 4.0 to do this kind of change, or at the very least, resize them down to 4 instead of completely removing them. |
I like it much better with the margins, personally. I think this is mostly due to the fact that modern window managers don't have borders on the sides and bottom. I don't really buy the low-res screens argument, for one, I think it makes sense for Godot to target 1080p screens, and for another, 16 pixels is only a 2% height difference on a 1366x768 screen anyway.
This should be done regardless of whether or not we get rid of margins, sounds like a nice improvement :) |
Already present in a PR of mine: #40289 |
No! Let's leave efficient space usage to competing game engines. They enjoy having advantages over Godot. Just kidding, great work. |
@hilfazer That's another of my arguments for making margins as small as we can. None of the other tools in the open source creative world (Blender, Krita, …) have significant window margins like we do. |
Hmm, I think this is the way we have to go, but as is, it kind of looks weird. Also, the "3 dots button" at the top of the right dock needs to be slightly moved to the left. |
I tried to do this but I didn't get it to work 🙁
The icon was centered by #40289 already, but I'm not sure about moving it further to the left. It might look weird with the docks on the left. |
2d996b4
to
1eb3a4b
Compare
@Calinou The images should be updated. |
@YeldhamDev I think it looks identical, I just rebased to use your icons instead of mine. I updated the editor screenshot anyway just in case. |
@bruvzg I think there's still enough internal margin to make this a non-issue. (Text and icons never really touch the window's edges with the margins removed.) |
Needs a rebase to fix CI. I'm not 100% convinced by this change either. At least the provided screenshots don't show a significant increase in available usable space, and it's now less consistent not to have padding near the window borders while there is still significant padding between elements. But I'm not opposed to it either. |
Only decreasing the outer margins seems like an odd choice, since, as mentioned by others, it makes the editor feel unbalanced. I think decreasing the internal margins would be an improvement, though, and decreasing the external margins might go well with that. For reference, since everything in Godot has a few pixels margin on all sides, its margins between usable spaces are around 4x as big as Blender's. Personally, I think Godot could use some larger changes to it's layout, too. For example, why are 2D, 3D (GD)Script and AssetLib "special" workspaces, while the shader editors aren't? Why can't I have, say, the 2D and Script editors open at the same time, but I can have 2D and the shader editor open together? Why can't 2 scripts be open side by side? I like Godot's layout, but I wish it had the flexibility other tools have. |
The idea is that usually you want to visually see the result of the shader while you're working on it, so you want to have either the 2D or 3D main screens visible. Maybe this can be changed for 4.x when we get the ability to pop out things to their own windows.
Not much room usually since we have the rest of the editor too, but again maybe this will change with 4.x 🙂 |
This increases the screen real estate available for Godot, especially at smaller window sizes. The editor icons for tab options were resized from 6×16 to 16×16 so they don't touch the window edge. Incindentally, this also makes them easier to click.
1eb3a4b
to
e677f58
Compare
Rebased and tested again, it works successfully. I changed the PR so there's now 1 pixel of margin on all sides. This prevents issues with some displays partially occluding the borders of controls or text due to their geometry. |
Why close? |
There's no consensus on the implementation, as the margins look uneven between the window borders and the editor docks. We'd need SplitContainer to be able to have a virtual dragging area before we can reduce its margins, making the editor margins consistent. |
Here is another approach I just worked on: expose the values as theme constants so that anyone can make a custom theme and decrease the margins through it. godotengine/godot-proposals#6482
This is now supported: #65355 |
This increases the screen real estate available for Godot, especially at smaller window sizes.
Preview
Edit: This preview is outdated; there's now 1 pixel of margin on all sides (instead of 0).
Editor - Before
Editor - After
Project manager - Before
Project manager - After