How to change TabView background style?

When I turn on the 3D graphics inside TabView on my computer, the entire tab is gray, as if it were a giant button, leaving the graphics on a white background:

example

To avoid the contrast between gray and white, I would prefer the tab to be white.

I tried BaseStyle -> {Background -> White} , but to no avail (only restyling borders).

How to change the background color of a tab?

+7
source share
3 answers

The default background is not white, but transparent for graphics, so there is no sharp contrast. Background -> White makes the background white and leaves borders completely opposite to what you said. BaseStyle does nothing.

This is what I get in Windows XP:

Tabview

EDIT: An alternative is custom TabView execution on the following lines:

 objects = Table[Plot[f[x], {x, 0, 10}], {f, {Sin, Cos, Exp}}]; Column[ {SetterBar[Dynamic[x], Thread[objects -> Range@Length [objects]]], Dynamic[x]} ] 

This is not finished, but the basics work, and it shows you how to do it yourself.

+5
source

This is apparently a specific OS problem. On OS X, TabView has a gray background (albeit very light), even with Background->White . for example

 TabView[Table[Plot[Sin[ix], {x, 0, 2 Pi}, Background -> White], {i, 4}], Background->White] 

produces it

enter image description here

+3
source

I can confirm the Heike claim for Windows 7.


If you want to always overwrite the color of the system theme for TabView fields, you can evaluate:

 SetOptions[$FrontEnd, TabViewBoxOptions -> {Background -> GrayLevel[1]} ] 

Using the theme "Windows 7 Basic" or "Windows 7 Aero", I see the following:

enter image description here

However, using the "Windows Classic" theme, I see the following:

enter image description here

If, using the Classic theme, I open Window Color and Appearance and change 3D Objects Color 1 to white, I see:

enter image description here

+3
source

All Articles