FlatMenu by Andrea Gavana - how to set the default theme ?

Hi, i have a problem with FlatMenu and i hope someone can help me. How can i choose to load by default the dark theme and with no floating toolbar for example ? No matter what i’ve tried i just can’t set the dark theme and " no floating toolbar" to load by default. What files should i have to edit and what’s the code responsible for this ? I’ve tried to edit

FMcustomizeDlg, ArtManager or FlatMenu.py but i’m kind of lost in that code.
Thank you

Hi Michael,

Hi, i have a problem with FlatMenu and i hope someone can help me. How can i
choose to load by default the dark theme and with no floating toolbar for
example ? No matter what i've tried i just can't set the
dark theme and " no floating toolbar" to
load by default. What files should i have
to edit and what's the code responsible for this ?

You can do something like this:

import FlatMenu as FM

# lots of code...

# For the appearance (darker scheme)
FM.ArtManager.Get().SetMenuTheme(FM.Style2007)
FM.ArtManager.Get().SetMBVerticalGradient(True)
FM.ArtManager.Get().SetMenuBarColour("Dark")

# For the toolbar
FM.ArtManager.Get().SetRaiseToolbar(False)

If you look at the source of ArtManager.py, there are some docstrings
that can help you. Otherwise I will be happy to help :smiley:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

···

On 5/21/07, michael michael wrote: