Помогите отредактировать тему

Автор myth, сентября 02, 2013, 16:57:22

« предыдущая - следующая »

myth

сентября 02, 2013, 16:57:22 Последнее редактирование: сентября 03, 2013, 12:32:32 от myth
Пользуюсь одним из вариантов Ambiance, в принципе тема устраивает, единственно яркий цвет в панельке раздражжает, как его можно поменять
сейчас вот такой:

а такой нужен:


Где именно это лежит в теме? И вообще возможно поменять лишь эти элементы не затрагивая всю тему?

Труба Шатал

в файле
/usr/share/themes/имя темы/gtk-2.0/gtkrc
в первой же секции можно попробовать поменять цвет
gtk_color_scheme = "bg_color:#424242\nselected_bg_color:#9db6cd\nbase_color:#fcfcfc" # Background, base.
в данном случае "bg_color:# - серый, оранжевого цвета вообще не будет

myth

сентября 03, 2013, 12:26:53 #2 Последнее редактирование: сентября 03, 2013, 12:28:59 от myth
поменял, но тогда все окна становятся серыми:

а мне всю тему менять не нужно, только панельку, мне казалось эти настройки лежат в panel.rc
есть другая редакция темы, но она глючная, зато в ней панелька правильная:

пробовал перекидывать с нее panel.rc и вот что получается:

т.е. помимо panel.rc еще нужно чтото прописать

xf∞

Вот мой panel-rc.

Спойлер

style "panel"
{

xthickness = 0
ythickness = 0

     fg[NORMAL]         = "#FFFFFF" #TEXT ON NORMAL PANEL BUTTONS
     fg[PRELIGHT]         = "#FFFFff" #TEXT ON MOUSEOVERED PANEL BUTTONS
     fg[ACTIVE]         = "#FFFFFF" #TEXT ON ACTIVE PANEL BUTTON
     fg[SELECTED]         = "#000000"
     fg[INSENSITIVE]         = "#e0e0e0"
   bg_pixmap[NORMAL]       = "Panel/panel-bg.png"
}


#############################################################
#THESE DECLARATIONS MAKE SURE THE PANEL STILL USES PANEL STYLE
#############################################################

class "*Mail*"             style "panel"
class "*notif*"          style "panel"
class "*Notif*"          style "panel"
#class "*Tray*"          style "panel"
#class "*tray*"          style "panel"
widget_class "*Mail*"          style "panel"
widget_class "*notif*"          style "panel"
widget_class "*Notif*"          style "panel"
#widget_class "*Tray*"          style "panel"
#widget_class "*tray*"          style "panel"
widget_class "*BonoboDockItem"       style "panel"
class "*BonoboDockItem"       style "panel"
#widget "*TrayIcon*"          style "panel"
class "*Panel*Applet*"          style "panel"
widget_class "*Panel*GtkToggleButton"    style "panel"
widget_class "*Panel*GtkButton"    style "panel"
widget_class "*.Panel*Button*GtkLabel"    style "panel"
widget_class "*.Panel*GtkLabel"    style "panel"
widget "*PanelWidget*"          style "panel"
widget "*PanelApplet*"          style "panel"
#############################################################
#THE COMMENTED CLASSES FIXES A PANEL BUG THAT MADE SOME
#TRAY ICONS MOVE DOWN 1 PIXEL , A VERY BIG THANKS TO MOOMEX
#FOR THIS INFORMATION!!!!!!
#############################################################
# THANKS TO merlwiz79 FOR THESE FIXES
#############################################################

widget_class "*Netstatus*"       style "panel"
widget_class "*Tomboy*Tray*"       style "panel"
widget "*fast-user-switch*"       style "panel"
widget_class "*PanelToplevel*"       style "panel"
class "Xfce*Panel*"          style "panel"
widget_class "*Xfce*Panel*"       style "panel"
widget_class "*PanelApplet*"       style "panel"
widget_class "*PanelWidget*"       style "panel"

#############################################################
#THIS MAKES THE APPLICATIONS PLACES SYSTEM MENU ON THE PANEL
#USE PANEL STYLE
#############################################################


style "panelbar"
{
engine "pixmap"
{
   image
   {
      function   = BOX
      state      = NORMAL
      file      = "Panel/panel-bg.png"
      border      = { 5, 5, 5, 5}
      stretch      = TRUE
   }

   
   image
   {
      function   = BOX
      state      = ACTIVE
      file      = "Panel/panel-bg.png"
      border      = { 5, 5, 5, 5}
      stretch      = TRUE
   }

   
   image
   {
      function   = BOX
      state      = INSENSITIVE
      file      = "Panel/panel-bg.png"
      border      = { 5, 5, 5, 5}
      stretch      = TRUE
   }

   
   image
   {
      function   = BOX
      state      = PRELIGHT
      recolorable   = TRUE
      file      = "Panel/panel-bg.png"
      border      = { 5, 5, 5, 5}
      stretch      = TRUE
   }

}

}


class "*Panel*MenuBar*"      style "panelbar"
widget_class "*Panel*MenuBar*" style "panelbar"
widget_class "*Panel*MenuBar*Item*" style:highest "panelbar"

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

style "panelbuttons"
{
xthickness                     = 3
ythickness                     = 3

   GtkWidget::focus_padding = 2

   engine "pixmap" {
     
   image
   {
      function              = BOX
      recolorable           = TRUE
      state            = NORMAL
      file                  = "Panel/panel-button-normal.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   }
      
   image
   {
      function              = BOX
      shadow            = OUT
      recolorable           = TRUE
      state            = PRELIGHT
      file                  = "Panel/panel-button-prelight.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   }      

   image
   {
      function              = BOX
      recolorable           = TRUE
      shadow            = IN
      state            = PRELIGHT
      file                  = "Panel/panel-button-prelight.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   }
      

   image
   {
      function              = BOX
      recolorable           = TRUE
      state            = ACTIVE
      file                  = "Panel/panel-button-active.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   } 

   image
   {
      function              = BOX
      recolorable           = TRUE
      state            = INSENSITIVE
      file                  = "Panel/panel-bg.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   }

   image
   {
      function              = BOX
      recolorable           = TRUE
      state            = SELECTED
      file                  = "Panel/panel-button-active.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   } 

}

}

#############################################################
#THESE DECLARATIONS MAKE SURE THE LAUNCHER EDITOR BUTTONS USE
#STANDARD BUTTONS STYLE AND NOT PANEL BUTTONS STYLE
#############################################################


widget "*tasklist*"          style "panelbuttons"

#############################################################
# THANKS TO merlwiz79 FOR THESE FIXES
#############################################################


widget_class "*Xfce*Panel*.GtkToggleButton"    style "panelbuttons"
widget_class "*Xfce*NetkTasklist*GtkToggleButton" style "panelbuttons"

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

style "paneltogglebuttons"
{

   engine "pixmap" {
     
   image
   {
      function              = BOX
      recolorable           = TRUE
      state            = NORMAL
      file                  = "Panel/panel-button-normal.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   }
      
   image
   {
      function              = BOX
      shadow            = OUT
      recolorable           = TRUE
      state            = PRELIGHT
      file                  = "Panel/panel-button-prelight.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   }      

   image
   {
      function              = BOX
      recolorable           = TRUE
      shadow            = IN
      state            = PRELIGHT
      file                  = "Panel/panel-button-prelight.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   }
      

   image
   {
      function              = BOX
      recolorable           = TRUE
      state            = ACTIVE
      file                  = "Panel/panel-button-active.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   } 

   image
   {
      function              = BOX
      recolorable           = TRUE
      state            = INSENSITIVE
      file                  = "Panel/panel-bg.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   }

   image
   {
      function              = BOX
      recolorable           = TRUE
      state            = SELECTED
      file                  = "Panel/panel-button-active.png"
      border                = { 5, 5, 5, 5 }
      stretch               = TRUE
   } 

}

}

widget_class "*PanelToplevel*Button"       style "paneltogglebuttons"
widget_class "*Panel*GtkToggleButton"       style "paneltogglebuttons"

style "panelapplets" = "panel"
{
xthickness = 5
ythickness = 4

bg[SELECTED] = "#e9e9e9"

}


widget_class "*Tasklist*" style:highest "panelbuttons"
#class "*PanelApplet*"       style "panelapplets"
widget_class "*Panel*Applet*"   style:highest "panelapplets"

style "switcher"
{

xthickness = 0
ythickness = 0

fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#000000"
bg[NORMAL] = "#000000"
bg[PRELIGHT]= "#454545"
bg[SELECTED] = "#454545"
engine "pixmap"
{
   image
   {
      function   = SHADOW
      recolorable   = TRUE
      file      = "/Shadows/entry-shadow-in.png"
      border      = {1,1,1,1}
      stretch      = TRUE
      }
}

}
widget_class "*Pager*" style "switcher"
widget_class "*Panel*Fish*" style "switcher"
widget    "*dict*Applet*"   style "paneltogglebuttons"

[свернуть]


И у меня всё очень просто решено: Panel/panel-button-active.png
Попробуйте также создать изображение с нужным цветом и прописать там, где у меня стоит.
Делаю нескучные обои и рисую темы для xfce.

myth