# Aui notebook problem with glossy tabs

**URL:** <https://www.ruby-forum.com/t/aui-notebook-problem-with-glossy-tabs/151817>\
**Category:** wxRuby\
**Created:** [October 26, 2008, 8:20am UTC](https://www.ruby-forum.com/t/aui-notebook-problem-with-glossy-tabs/151817 "2008-10-26T08:20:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik\_Sarvell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a88e57/32.png) [@Henrik\_Sarvell](https://www.ruby-forum.com/u/Henrik_Sarvell)\
**Post date:** [October 26, 2008, 8:20am UTC](https://www.ruby-forum.com/t/aui-notebook-problem-with-glossy-tabs/151817/1 "2008-10-26T08:20:15Z")

</div>

Hi everyone, I’ve got a problem with tabs in the AUI Notebook. I just  
implemented a light on dark GTK theme. It seems like the glossy tabs  
are trying to fade a gradient with light towards dark (see  
attachement), on top of that it is using black text per default. I  
assume this is a problem with wxWidgets core and not really anything  
we care to do anything about here. So I started looking into  
implementing with a simple look instead but notice the following in  
the AUI sample code:

# TODO - Notebook styles not currently supported; not SO important

```
if e_id = ID_NotebookArtGloss or
    e_id = ID_NotebookArtSimple
  Wx::message_box("AUI Notebook Art styles not currently supported

```

in wxRuby")  
return  
end

What is the status on this one, has it already been fixed already  
maybe? If not what is the priority?

Cheers,

/Henrik

---

<div class="post-metadata">

**Author:** ![Henrik\_Sarvell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a88e57/32.png) [@Henrik\_Sarvell](https://www.ruby-forum.com/u/Henrik_Sarvell)\
**Post date:** [October 26, 2008, 11:02am UTC](https://www.ruby-forum.com/t/aui-notebook-problem-with-glossy-tabs/151817/2 "2008-10-26T11:02:17Z")

</div>

Henrik Sarvell wrote:

> ```
> if e_id = ID_NotebookArtGloss or
> e_id = ID_NotebookArtSimple
> Wx::message_box("AUI Notebook Art styles not currently supported
> 
> ```
> 
> in wxRuby")  
> return  
> end
> 
> What is the status on this one, has it already been fixed already  
> maybe? If not what is the priority?

As a a first step you could try the wxWidgets distribution AUI sample  
and see how it looks with your theme. The AUI style switching should  
work there and you could see whether the “simple” theme does indeed look  
better.

As for wxRuby support for this: adding all the AuiTabArt classes is very  
low priority - I’m not sure I even want to do it. But it would perhaps  
be possible to add a method to AuiNoteBook that switches between the two  
available simple/glossy themes.

alex

---

<div class="post-metadata">

**Author:** ![Henrik\_Sarvell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a88e57/32.png) [@Henrik\_Sarvell](https://www.ruby-forum.com/u/Henrik_Sarvell)\
**Post date:** [October 26, 2008, 11:53am UTC](https://www.ruby-forum.com/t/aui-notebook-problem-with-glossy-tabs/151817/3 "2008-10-26T11:53:14Z")

</div>

Alex F. wrote:

> perhaps be possible to add a method to AuiNoteBook that switches  
> between the two available simple/glossy themes.

OK, to SVN head I’ve added two methods to Wx::AuiNotebook :  
use\_simple\_art and use\_glossy\_art. These allow switching between the two  
tab styles provided, with glossy the default.

Having tried it out the simple theme looks better on GTK I think, but  
perhaps the glossy better on OS X, from memory.

alex
