-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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 support for italic tab titles & italicise unsaved scene tabs #88709
base: master
Are you sure you want to change the base?
Conversation
I am currently fighting with git to squash these changes, bear with me... |
77df04b
to
63c0bac
Compare
Thanks for opening a pull request 🙂 Feature pull requests should be associated to a feature proposal to justify the need for implementing the feature in Godot core. Please open a proposal on the Godot proposals repository (and link to this pull request in the proposal's body). |
Git has been rebased successfully 👍 |
Hard-coding font style is a questionable solution. It would be better if TabBar had theme font styles for normal and italic, like in RichTextLabel. Editor theme has such fonts so you'd get them for free, not sure about default theme. It would probably fall on the user to provide an italic font. |
After testing a bit, I just noticed that TabBar and TabBar::Tab are indeed nodes creatable by the user. I'll see what I can do about it. |
After consideration, I feel like the property should stay as an internal one until someone is able to convert these changes into the node. |
editor/editor_node.cpp
Outdated
@@ -7361,7 +7361,7 @@ EditorNode::EditorNode() { | |||
vcs_actions_menu = VersionControlEditorPlugin::get_singleton()->get_version_control_actions_panel(); | |||
vcs_actions_menu->set_name("Version Control"); | |||
vcs_actions_menu->connect("index_pressed", callable_mp(this, &EditorNode::_version_control_menu_option)); | |||
vcs_actions_menu->add_item(TTR("Create Version Control Metadata..."), RUN_VCS_METADATA); | |||
vcs_actions_menu->add_item(TTR("Create/Override Version Control Metadata..."), RUN_VCS_METADATA); |
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.
Seems to be unrelated.
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.
Yes probably messed up somewhere with git.
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.
This is part of #88609
Currently fixing all issues associated with the changes... |
I don't know how to feel about having an option for them to be drawn specifically in italics. The ability to override the font per Tab sounds more enticing to me, personally. |
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.
Docs are completely fine, but my sentiment above still stands.
The purpose of this PR is mainly to build foundation on which other contributors can expand their ideas upon. This gives the user and the source code contributors more control over the styling of each scene tab, making it a more polished experience for the user in general in the long term run, but I understand where your ideas come from, albeit, I don't have an issue with also adding the feature for a bold style in the future. |
Problem is, |
Squashed all commits. |
Bugsquad: Closes godotengine/godot-proposals#9161 .
This PR [derived from proposition]:
TabBar::Tab
using the new enumTabBar::TabTitleStyle
.PS: There's room for improvement when it comes to performance. See
Line 343
ofscene/gui/tab_bar.cpp