studio icon indicating copy to clipboard operation
studio copied to clipboard

Cannot customize tab headers

Open dmitrij9992905 opened this issue 5 months ago • 8 comments

Hello everyone!

I'm trying to customize tab view, and I cannot find any parameters what is in charge of tab headers style How can I customize them?

For example, make them transparent

Image

dmitrij9992905 avatar Aug 28 '25 06:08 dmitrij9992905

go to style and find back ground and set the opacity lower .

Image

maxtong2012213 avatar Aug 28 '25 08:08 maxtong2012213

I use EEZStudio v0.23.2 I tried to find the property, but it has effect just on tab contains and not on tab header Image

Image

dmitrij9992905 avatar Aug 28 '25 17:08 dmitrij9992905

Check the Styled Tabview example:

Image

Just add two Container widgets as children to the Tabivew. These container widgets will be for the Bar and Content part. Inside Content you can add Tab widgets:

Image

Then you can modify styles of the Bar widget.

mvladic avatar Aug 29 '25 11:08 mvladic

Check the Styled Tabview example:

Image Just add two Container widgets as children to the Tabivew. These container widgets will be for the Bar and Content part. Inside Content you can add Tab widgets: Image Then you can modify styles of the Bar widget.

But, How to change the color or style of the active tab, like this blue of the "Tab1"? @mvladic

JiayunLi-3E8 avatar Sep 10 '25 10:09 JiayunLi-3E8

According to the Styled Tabview example, I will summarize how we can modify the tabview, Bar container:

  • To change the background of the non-active tab(s): to style -> Main part -> DEFAULT -> BACKGROUND properties, you can change the color, opacity...
  • To change the text of the non-active tab(s): to style -> Main part -> DEFAULT -> TEXT. Change the properties of the text.
  • To change the background of the active tab: to style -> Items part -> CHECKED -> BACKGROUND then change the properties such as Color, Opacity
  • To change the text of the active tab, similarly: to style -> Items part -> CHECKED -> TEXT
  • To change the active tab underline indicator: to style -> Items part -> CHECKED -> BORDER

Good luck!

quanghona avatar Sep 11 '25 10:09 quanghona

According to the Styled Tabview example, I will summarize how we can modify the tabview, Bar container:

  • To change the background of the non-active tab(s): to style -> Main part -> DEFAULT -> BACKGROUND properties, you can change the color, opacity...
  • To change the text of the non-active tab(s): to style -> Main part -> DEFAULT -> TEXT. Change the properties of the text.
  • To change the background of the active tab: to style -> Items part -> CHECKED -> BACKGROUND then change the properties such as Color, Opacity
  • To change the text of the active tab, similarly: to style -> Items part -> CHECKED -> TEXT
  • To change the active tab underline indicator: to style -> Items part -> CHECKED -> BORDER

Good luck!

The part of 'active' is not working. See the picture below. By the way, I am using v0.24.0.

Image

JiayunLi-3E8 avatar Sep 11 '25 11:09 JiayunLi-3E8

The issue is related to the LVGL Version selected for the project.

The example project works as long the LVGL version is 8.x, if change to 9.x the border side change it no longer works.

arturv2000 avatar Sep 11 '25 16:09 arturv2000

Yeah, I experienced the same issue. With the same configuration, version 9.x does not work but 8.x do. And I noticed that, version 9.x don't have Ticks part.

quanghona avatar Sep 11 '25 17:09 quanghona