Skip to content

Add hide_titles and hide_icons properties to TabBar & TabContainer#118358

Open
StarryWorm wants to merge 1 commit into
godotengine:masterfrom
StarryWorm:improve-tabbar
Open

Add hide_titles and hide_icons properties to TabBar & TabContainer#118358
StarryWorm wants to merge 1 commit into
godotengine:masterfrom
StarryWorm:improve-tabbar

Conversation

@StarryWorm
Copy link
Copy Markdown
Contributor

@StarryWorm StarryWorm commented Apr 9, 2026

This PR adds two new toggles to TabBar (& TabContainer):

  1. hide_titles (& hide_tabs_titles): Hides the titles on all tabs from displaying
  2. hide_icons (& hide_tabs_icons): Hides the icons on all tabs from displaying

Below is a summary table (uses a mockup of the editor title bar)

-- Horizontal
show both (default) image
hide titles image
hide icons image

@kitbdev
Copy link
Copy Markdown
Contributor

kitbdev commented Apr 9, 2026

@StarryWorm
Copy link
Copy Markdown
Contributor Author

StarryWorm commented Apr 9, 2026

I didn't see that PR, my bad, thanks kitbdev for linking

@Nintorch Nintorch added this to the 4.x milestone Apr 10, 2026
@StarryWorm StarryWorm changed the title Add vertical mode and hide_text/hide_icons properties to TabBar Add hide_text and hide_icons properties to TabBar Apr 10, 2026
@StarryWorm
Copy link
Copy Markdown
Contributor Author

Changelog:

@KoBeWi
Copy link
Copy Markdown
Member

KoBeWi commented Apr 10, 2026

I don't see how is this required for something. Editor docks have the same functionality and it's handled by a method that updates the tabs based on preferred style, adding/removing text/icons as needed.

@StarryWorm
Copy link
Copy Markdown
Contributor Author

Now that the vertical functionality is removed, that is technically correct.
I still believe this is a good usability improvement, so I will open a proposal to suggest the feature, since it doesn't appear to have been proposed before.

@StarryWorm StarryWorm changed the title Add hide_text and hide_icons properties to TabBar Add hide_text and hide_icons properties to TabBar & TabContainer Apr 10, 2026
@StarryWorm StarryWorm changed the title Add hide_text and hide_icons properties to TabBar & TabContainer Add hide_titles and hide_icons properties to TabBar & TabContainer Apr 10, 2026
@StarryWorm
Copy link
Copy Markdown
Contributor Author

Changelog:

  • Added TabContainer functionality
  • Renamed hide_text to hide_titles to match existing terminology

Comment thread scene/gui/tab_bar.h Outdated
Adds `hide_titles` and `hide_icons` to `TabBar` as well as the associated `hide_tabs_titles` and `hide_tabs_icons` to `TabContainer`
@StarryWorm
Copy link
Copy Markdown
Contributor Author

Changelog:

  • Renamed is_hide_* to is_hiding_* as per ATS' suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a property to toggle icon & text display in TabContainer

5 participants