Forum: wxRuby Aui notebook problem with glossy tabs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
340324964056b4dc9fbf617cc2daa0ed?d=identicon&s=25 Henrik Sarvell (Guest)
on 2008-10-26 08:20
(Received via mailing list)
Attachment: Screenshot-1.png (20 KB)
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
06f6780c99d4a8dd71f2b474082ea9ce?d=identicon&s=25 Alex Fenton (Guest)
on 2008-10-26 11:02
(Received via mailing list)
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
06f6780c99d4a8dd71f2b474082ea9ce?d=identicon&s=25 Alex Fenton (Guest)
on 2008-10-26 11:53
(Received via mailing list)
Alex Fenton 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
This topic is locked and can not be replied to.