the layout from my previous mail turned out even more twisted than in my preview. so this time an attachment. sorry for the mess.
style "panel" = "default-inverted"
{
        xthickness = 0
        ythickness = 0
        bg_pixmap[NORMAL]       ="panel.png"                            
#unfortunately this is the only way we can get a pixmap to be the panel bg
}

#################################################################################################

style "panel-menubar" = "default-inverted"
{
 engine "pixmap" {
  image {
        function                = BOX
        file                    = "transparent.png"                     
#transparent menubar to let the panel look through, this could also be used for 
panel applets
        border                  = { 0, 0, 0, 0 }
        stretch                 = TRUE
        }
}}


style "panel-menubar-item" = "default-inverted"
{
 engine "pixmap" {
  image {
        function                = BOX
        file                    = "panel-button-in_prelight.png"        
#selected menubar item will look like a pressed panel button
        border                  = { 5, 5, 5, 5 }
        stretch                 = TRUE
        }
}}

#################################################################################################

style "panel-button" = "default-inverted"
{
        xthickness = 2
 engine "pixmap" {
  image {
        function        = BOX
        state           = NORMAL
        file            = "panel-button-out.png"
        border          = { 5, 5, 5, 5 }
        stretch         = TRUE
        }
  image {
        function        = BOX
        shadow          = OUT
        state           = PRELIGHT
        file            = "panel-button-out_prelight.png"
        border          = { 5, 5, 5, 5 }
        stretch         = TRUE
        }
  image {
        function        = BOX
        state           = ACTIVE
        file            = "panel-button-in.png"
        border          = { 5, 5, 5, 5 }
        stretch         = TRUE
        }
  image {
        function        = BOX
        shadow          = IN
        state           = PRELIGHT
        file            = "panel-button-in_prelight.png"
        border          = { 5, 5, 5, 5 }
        stretch         = TRUE
        }
}}

#################################################################################################
#################################################################################################
#################################################################################################


widget_class "*PanelToplevel*"                  style "panel"
widget_class "*PanelToplevel*<GtkButton>*"      style "panel-button"            
#the "<>" brackets ensure that not only strictly GtkButton is affected, but 
also e.g.GtkToggleButton
widget_class "*PanelToplevel*MenuBar"           style "panel-menubar"           
#panel menubar should look different from menubar in a window
widget_class "*PanelToplevel*MenuBar.*"         style "panel-menubar-item"      
#panel menubar should look different from menubar in a window
-- 
ubuntu-art mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-art

Reply via email to