Change the uitabgroup's tab color or font color?

28 views (last 30 days)
Song
Song on 1 Apr 2015
Commented: Adam H on 27 Mar 2023
Is it possible to change the uitabgroup's tab color or font color? e.g. I set the background color of uitabgroup to dark, so it would be better to set the color of tabs also to dark than the default light gray color.
Thanks
  1 Comment
Dynamite Schanes
Dynamite Schanes on 26 Sep 2017
I'm looking for the same thing. I'll let you know if I find anything!!!1!

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 26 Sep 2017
h = uitabgroup();
set(h, 'defaultUitabForegroundColor', [.2 .3 .4])
t1 = uitab(h, 'Title', 'Test 1');
get(t1, 'ForegroundColor')
Setting the font color is more difficult, and I have to ask "font for what, exactly" ?
  11 Comments
Eric Delgado
Eric Delgado on 24 Dec 2021
Why not put a panel with buttons in front of the tab control?!? The buttons callbacks emulate the tab selection. An app designed in Matlab doesn't need to be ugly! :)

Sign in to comment.


George Baltas
George Baltas on 12 Oct 2018
Had the same problem. I am trying this for couple days now, almost thought about re-writing the whole GUI programmatically just to make my tabs behave the way I want. I hope next Matlab version will include this

Categories

Find more on Maintain or Transition figure-Based Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!