aui - tabart

I am experimenting with colour settings with the tabs.

         tabArt = aui.VC8TabArt()
         tabArt.SetDefaultColours(wx.Colour(255, 250, 205)) # LEMON CHIFFON

Above will change the colour of all the tabs and the area where there are no tabs.

         tabArt = aui.ChromeTabArt()
         tabArt.SetDefaultColours(wx.Colour(255, 250, 205)) # LEMON CHIFFON

Using CromeTabArt will only change the area not used by tabs.

Browsing aui.tabart.py I noticed that VC8 calls FillVC8GradientColour from DrawTab and there is no equivalent for Crome.

Is this intended or could FillVC8GradientColour be used for Crome too?

Werner

Hi Werner,

···

On 5 November 2011 11:16, werner wrote:

I am experimenting with colour settings with the tabs.

    tabArt = aui.VC8TabArt()

    tabArt.SetDefaultColours(wx.Colour(255, 250, 205)) # LEMON CHIFFON

Above will change the colour of all the tabs and the area where there are no tabs.

    tabArt = aui.ChromeTabArt()

    tabArt.SetDefaultColours(wx.Colour(255, 250, 205)) # LEMON CHIFFON

Using CromeTabArt will only change the area not used by tabs.

Browsing aui.tabart.py I noticed that VC8 calls FillVC8GradientColour from DrawTab and there is no equivalent for Crome.

Is this intended or could FillVC8GradientColour be used for Crome too?

No, unfortunately the way the Chrome tabs are drawn is different from all the other tabarts. Basically the Chrome tab is a composition of images painted using DrawBitmap (and not a sequence of DrawRectangle/DrawLine and so on), and the images themselves have a fixed background colours. I believe something could be done by playing with wx.Image.AdjustChannels on the original bitmaps and then blit them on the dc. I’ll see what I can do about that as soon as I have some time.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/