0 votes

in Custom Constants HSeperation doesn't work :(

asked Jul 21 in Engine by wojtasss (88 points)

1 Answer

0 votes

That's because hseperation is the distance between the text and icon of a tab, see this issue. If you want to create gaps between the tabs you've to edit the theme:

  1. Select the TabContainer and search the property inspector for "Theme"
  2. Choose "Create New Theme" and a new window at the bottom will open
  3. In that window, choose Edit Theme > Add Class Items > TabContainer
  4. Back in the inspector, unfold Tab Container > Styles
  5. Choose New StyleBoxFlat for "Tab Bg"
  6. Now change Border Width > Left / Right, e.g. to 100
  7. Then set Border > Color to fully transparent (i.e. the A(lpha)-value to 0)
  8. For more inner space, change Expand Margin > Left / Right
  9. Repeat steps 5-8 with "Tab Disabled" and "Tab Fg"
answered Jul 23 by njamster (9,948 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.