Code review comment for lp:~andrewsomething/gnome-themes/new-wave-dark-menus

Revision history for this message
Dilomo (ankere) wrote :

I can't open the packages because the server does not allow me. I will try tomorrow.

Generally you can use the following file for dark menus and include the standard new wave one (as shoen in the attaxhment of the other bug):

#
#================================================
# New Wave Dark Menus Pixmap Theme
#================================================
#
#
# Based on: Ubuntu Human-Clearlooks
#
# Author:
# Anton Kerezov <email address hidden>
#
# Feel free to modify and share!
# Licensed under Creative Commons 3.0
#
# Major Version: 0.8

#=========================================================
# Include the normal New Wave file

include "default-gtkrc"

#=========================================================
# Modify only the menus so that they become dark |
#=========================================================
#
#=========================================================
# Menu system |
#=========================================================

style "newwave-menubar-dark" = "newwave-menubar"
{

 engine "pixmap"
 {
    image
     {
      function = BOX
         recolorable = TRUE
   state = PRELIGHT
        file = "Images/MenuMenubar/mb-item-dark.png"
         border = { 2, 2, 4, 2 }
         stretch = TRUE
      }
  }
}

style "newwave-dark-menu"
{
 xthickness = 1
        ythickness = 3

 bg[NORMAL] = "#ffffff"
        base[NORMAL] = "#ffffff"

 #Dark scheme
 fg[NORMAL] = @bg_color
 fg[PRELIGHT] = @fg_color
 fg[ACTIVE] = lighter(@bg_color)
 fg[SELECTED] = lighter(@bg_color)
 fg[INSENSITIVE] = darker("#7a7878")

 bg[NORMAL] = "#7a7878"
 bg[PRELIGHT] = "#7a7878"
 bg[ACTIVE] = "#7a7878"
 bg[SELECTED] = darker("#7a7878")

   engine "pixmap"
   {
     image
     {
                function = BOX
                recolorable = TRUE
                detail = "menu"
                shadow = OUT
                file = "Images/MenuMenubar/menu.png"
                border = { 1, 1, 2, 1 }
                stretch = TRUE
        }
   }
}

style "newwave-dark-menu-item"
{
 xthickness = 0
        ythickness = 3

 #Dark scheme
        fg[NORMAL] = "#ffffff"
 fg[PRELIGHT] = @fg_color
 fg[INSENSITIVE] = darker("#696969")

 bg[NORMAL] = "#696969"
 bg[ACTIVE] = shade(1.05,"#696969")
 bg[SELECTED] = shade(1.05,"#696969")
 bg[INSENSITIVE] = "#696969"

        engine "pixmap"
   {
     image
     {
       function = BOX
       recolorable = TRUE
       file = "Images/MenuMenubar/menuitem-dark.png"
       border = { 4, 4, 4, 4 }
       stretch = TRUE
     }
     image
     {
       function = ARROW
       recolorable = TRUE
       state = NORMAL
       overlay_file = "Images/Arrows/arrow-right.png"
       overlay_stretch = FALSE
       arrow_direction = RIGHT
     }
     image
     {
       function = ARROW
       recolorable = TRUE
       state = PRELIGHT
       overlay_file = "Images/Arrows/arrow-right-prelight.png"
       overlay_stretch = FALSE
       arrow_direction = RIGHT
     }
     image
     {
       function = ARROW
       recolorable = TRUE
       state = INSENSITIVE
       overlay_file = "Images/Arrows/arrow-right-insens.png"
       overlay_stretch = FALSE
       arrow_direction = RIGHT
   }
   }
}

style "newwave-dark-tearoff-menu-item" = "newwave-dark-menu-item"
{
  engine "pixmap"
  {
    image
    {
      function = ARROW
      file = "Images/Arrows/arrow-left.png"
      stretch = TRUE
      arrow_direction = LEFT
    }
  }
}

#=========================================================
# Main Menu
#=========================================================

# This had to make the main menu with white bg (not working yet but will in Ibex)
style "newwave-dark-panelmenu-item"
{
        base[NORMAL] = "#ffffff"

        fg[NORMAL] = "#ffffff" #shade(1.12, @bg_color)
 fg[PRELIGHT] = @fg_color
 fg[INSENSITIVE] = darker("#696969")

 bg[NORMAL] = "#696969"
 bg[ACTIVE] = shade(1.05,"#696969")
 bg[SELECTED] = shade(1.05,"#696969")
 bg[INSENSITIVE] = "#696969"

        text[NORMAL] = @text_color
 text[PRELIGHT] = @text_color
 text[ACTIVE] = @text_color
 text[SELECTED] = @text_color
 text[INSENSITIVE] = "#696969"

  engine "pixmap"
  {
     image
     {
       function = BOX
       recolorable = TRUE
       file = "Images/MenuMenubar/menuitem-dark.png"
       border = { 2, 2, 2, 2 }
       stretch = TRUE
     }
     image
     {
       function = ARROW
       recolorable = TRUE
       state = NORMAL
       overlay_file = "Images/Arrows/arrow-right.png"
       overlay_stretch = FALSE
       arrow_direction = RIGHT
     }
     image
     {
       function = ARROW
       recolorable = TRUE
       state = PRELIGHT
       overlay_file = "Images/Arrows/arrow-right-prelight.png"
       overlay_stretch = FALSE
       arrow_direction = RIGHT
     }
     image
     {
       function = ARROW
       recolorable = TRUE
       state = INSENSITIVE
       overlay_file = "Images/Arrows/arrow-right-insens.png"
       overlay_stretch = FALSE
       arrow_direction = RIGHT
     }
   }

}
widget "*.gnome-panel-main-menu.*" style :highest "newwave-dark-panelmenu-item"

style "newwave-dark-panelmenu" = "newwave-dark-menu"
{
        base[NORMAL] = "#F5F5F5"

        text[NORMAL] = @text_color
 text[PRELIGHT] = @text_color
 text[ACTIVE] = @text_color
 text[SELECTED] = @text_color
 text[INSENSITIVE] = "#696969"

 fg[NORMAL] = @bg_color
 fg[PRELIGHT] = lighter(@bg_color)
 fg[ACTIVE] = lighter(@bg_color)
 fg[SELECTED] = lighter(@bg_color)
 fg[INSENSITIVE] = darker("#7a7878")

 bg[NORMAL] = "#706E6E"
 bg[PRELIGHT] = "#7a7878"
 bg[ACTIVE] = "#7a7878"
 bg[SELECTED] = darker("#7a7878")

     engine "pixmap"
  {
     image
     {
       function = BOX
       recolorable = TRUE
       file = "Images/MenuMenubar/menu.png"
       border = { 1, 1, 1, 1 }
       stretch = TRUE
     }
   }
}
widget "*.gnome-panel-main-menu" style :highest "newwave-dark-panelmenu"

# Other fixes

style "newwave-combobox-text-color-workaround-dark"
{
 text[NORMAL] = @fg_color
 text[PRELIGHT] = @fg_color
 text[SELECTED] = @selected_fg_color
 text[ACTIVE] = @fg_color
 text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>" style :highest "newwave-combobox-text-color-workaround-dark"

style "newwave-menuitem-text-is-fg-color-workaround-dark"
{
 text[NORMAL] = "#ffffff"
 text[PRELIGHT] = @fg_color
 text[SELECTED] = lighter(@bg_color)
 text[ACTIVE] = lighter(@bg_color)
 text[INSENSITIVE] = darker("#7a7878")

 fg[NORMAL] = "#ffffff" #shade(1.12, @bg_color)
 fg[PRELIGHT] = @fg_color
 fg[INSENSITIVE] = darker("#696969")

 bg[NORMAL] = "#696969"
 bg[ACTIVE] = shade(1.05,"#696969")
 bg[SELECTED] = shade(1.05,"#696969")
 bg[INSENSITIVE] = "#696969"

  engine "pixmap"
  {
     image
     {
       function = BOX
       recolorable = TRUE
       file = "Images/MenuMenubar/menuitem-dark.png"
       border = { 2, 2, 2, 2 }
       stretch = TRUE
     }
   }

}
widget "*.gtk-combobox-popup-menu.*" style :highest "newwave-menuitem-text-is-fg-color-workaround-dark"

style "newwave-dark-popupmenu-workaround"
{
 text[NORMAL] = @bg_color
 text[PRELIGHT] = lighter(@bg_color)
 text[SELECTED] = lighter(@bg_color)
 text[ACTIVE] = lighter(@bg_color)
 text[INSENSITIVE] = darker("#7a7878")

 fg[NORMAL] = @bg_color
 fg[PRELIGHT] = lighter(@bg_color)
 fg[ACTIVE] = lighter(@bg_color)
 fg[SELECTED] = lighter(@bg_color)
 fg[INSENSITIVE] = darker("#7a7878")

 bg[NORMAL] = "#7a7878"
 bg[PRELIGHT] = "#7a7878"
 bg[ACTIVE] = "#7a7878"
 bg[SELECTED] = darker("#7a7878")

  engine "pixmap"
  {
     image
     {
       function = BOX
       recolorable = TRUE
       file = "Images/MenuMenubar/menu.png"
       border = { 1, 1, 1, 1 }
       stretch = TRUE
     }
   }
}

widget "*.gtk-combobox-popup-menu" style :highest "newwave-dark-popupmenu-workaround"

widget_class "*<GtkMenu>.<GtkMenuItem>*" style "newwave-dark-menu-item"
widget_class"*.GtkAccelMenuItem.*" style "newwave-dark-menu-item"
widget_class "*<GtkMenu>*" style "newwave-dark-menu"
class "GtkTearoffMenuItem" style "newwave-dark-menu-item"
class "GtkMenuItem" style "newwave-dark-menu-item"
class "GtkImageMenuItem" style "newwave-dark-menu-item"
class "GtkItem" style "newwave-dark-menu-item"

widget_class "*<GtkMenuBar>*" style "newwave-menubar-dark"
class "GtkMenuBar" style "newwave-menubar-dark"
widget_class "GtkMenuBar" style "newwave-menubar-dark"
class "*MenuBar*" style "newwave-menubar-dark"
widget_class "*MenuBar*" style "newwave-menubar-dark"

« Back to merge proposal