Autor Tópico: gtkrc  (Lida 9824 vezes)

Offline LaSSarD

  • Usuário Ubuntu
  • *
  • Mensagens: 1.144
    • Ver perfil
gtkrc
« Online: 08 de Setembro de 2005, 19:15 »
Olha, não sei se essa é a melhor área pra isso, mas como envolve código no arquivo gtkrc resolvi postar aqui mesmo :)

Eu tô fazendo uma grande mistura de temas aqui pra ficar do jeito que eu quero, acontece que nessa mistura o Firefox ficou com os menus (Arquivo, Editar, ...) e seu respectivo conteúdo com a letra branca, impossibilitando uma visão adeqüada. Já fiz vários testes mudando o valor dos fg no style default mas nenhum ajudou. Alguém saberia me dizer qual a área correta pra fazer essa mudança da cor?

Importante: o Firefox é o único programa GTK com esse problema. :shock:
desculpem as mensagens não respondidas, mas eu tô afastado há mais de ano...
um dia eu volto ;)

holokaustu

  • Visitante
gtkrc
« Resposta #1 Online: 08 de Setembro de 2005, 21:41 »
posta aqui o arquivo gtkrc

Offline LaSSarD

  • Usuário Ubuntu
  • *
  • Mensagens: 1.144
    • Ver perfil
gtkrc
« Resposta #2 Online: 09 de Setembro de 2005, 15:14 »
Boa sorte :shock:
Código: [Selecionar]
# AquaSoft
# Based on Glossy P and BBX Mercury
# Modded by LaSSarD

# This sets the size of icons in toolbars and in the panel menus.
#gtk-icon-sizes = "gtk-large-toolbar=24,24:panel-menu=32,32"
gtk-icon-sizes = "gtk-large-toolbar=24,24:panel-menu=24,24"

# These are settings used by the gtk-menu-shadow hack. If your build of gtk2
# doesn't have this then comment out these lines.
#gtk-menu-drop-shadow = 2
#gtk-menu-shadow-delay = 20

include "icons/iconrc"

#The following is the default and main style.

style "default"
{
  GtkWidget::interior_focus = 7
  GtkWidget::focus_padding = 1
  GtkButton::default_border = { 2, 2, 2, 2 }
  GtkButton::default_outside_border = { 0, 0, 0, 0 }
  GtkRange::trough_border = 0
  GtkRange::slider_width = 14
  GtkRange::stepper_size = 14
  GtkPaned::handle_size = 6
  GtkScrollbar::min_slider_length = 30
  GtkCheckButton::indicator_size = 12
  GtkCheckButton::indicator_spacing = 3
  GtkMenuBar::internal_padding = 1
  GtkOptionMenu::indicator_size = { 15, 8 }
  GtkOptionMenu::indicator_spacing = { 8, 2, 0, 0 }
  GtkStatusbar::shadow_type = GTK_SHADOW_NONE

  xthickness             = 2
  ythickness             = 2

  fg[NORMAL] = "#000000"
  fg[ACTIVE] = "#000000"
  fg[PRELIGHT] = "#FFFFFF"
  fg[SELECTED] = "#FFFFFF"
  fg[INSENSITIVE] = "#747474"
  bg[NORMAL] = "#F0F0F0"
  bg[ACTIVE] = "#a3a3a3"
  bg[PRELIGHT] = "#FFFFFF"
  #bg[SELECTED] = "#4285c7"
  bg[SELECTED] = "#4285c7"
  bg[INSENSITIVE] = "#f0f0f0"
  base[NORMAL] = "#FFFFFF"
  #base[ACTIVE] = "#a3a3a3"
  base[ACTIVE] = "#d4d4d4"
  base[PRELIGHT] = "#FFFFFF"
  base[INSENSITIVE] = "#f0f0f0"
  #base[SELECTED] = "#3669bd"
  base[SELECTED] = "#358cdb"
  text[INSENSITIVE] = "#747474"
  text[SELECTED] = "#FFFFFF"
  text[ACTIVE] = "#000000"

  #A semi-transparent hi-light for files selected in Nautilus
  NautilusIconContainer::highlight_alpha=160

  #This sets the color used for the text under the icons in nautilus when they are not highlighted.
  NautilusIconContainer::dark_info_color="#000000"
  #This is the color of the text under an icon in Nautilus when it is highlighted.
  NautilusIconContainer::light_info_color="#ffffff"

  engine "pixmap"
  {
    #This defines how the focus is drawn. Transparent = no focus
    image
    {
function        = FOCUS
recolorable     = TRUE
overlay_file    = "transparent.png"
overlay_border  = { 0, 0, 0, 0 }
overlay_stretch = TRUE
    }
    # Different types of shadows
    image
    {
function        = SHADOW
recolorable     = TRUE
shadow          = OUT
file            = "shadow_etched_out.png"
border          = { 2, 2, 2, 2 }
stretch         = TRUE
    }
    image
    {
function        = SHADOW
recolorable     = TRUE
shadow          = IN
file            = "shadow_in.png"
border          = { 2, 2, 2, 2 }
stretch         = TRUE
    }
    image
    {
function        = SHADOW
recolorable     = TRUE
shadow          = ETCHED_IN
file            = "shadow_etched_in.png"
border          = { 2, 2, 2, 2 }
stretch         = TRUE
    }
    image
    {
function        = SHADOW
recolorable     = TRUE
shadow          = ETCHED_OUT
file            = "shadow_etched_out.png"
border          = { 2, 2, 2, 2 }
stretch         = TRUE
    }
    # Horizontal lines
    image
    {
function        = HLINE
recolorable     = TRUE
file            = "hline.png"
border          = { 1, 1, 1, 0 }
stretch         = TRUE
    }
    # Vertical lines
    image
    {
function        = VLINE
recolorable     = TRUE
file            = "vline.png"
border          = { 1, 0, 1, 1 }
stretch         = TRUE
    }
    ## Handles
    # Horizontal
    image
    {
function = HANDLE
orientation = HORIZONTAL
recolorable = TRUE
#Background
file = "transparent.png"
border = { 1,1,1,1 }
stretch = TRUE
#Overlay
overlay_file = "handle-v.png"
overlay_border = { 0,0,0,0 }
overlay_stretch = FALSE
    }
    # Vertical
    image
    {
function = HANDLE
recolorable = TRUE
#Background
file            = "transparent.png"
border          = { 1, 1, 1, 1 }
stretch         = TRUE
#Overlay
overlay_file = "handle-h.png"
overlay_border = {0,0,0,0}
overlay_stretch = FALSE
orientation = VERTICAL
    }
    # Base of the handlebox
    image
    {
        function        = BOX
recolorable     = TRUE
detail          = "handlebox_bin"
file            = "panel-bg.png"
border          = { 1,1,1,1 }
stretch         = TRUE
    }
  }
}

#####################################################
#Panel
#####################################################

style "panelbg"
{
  xthickness = 0
  ythickness = 0
  bg_pixmap[NORMAL] = "panel-bg.png"
}

style "panelbuttons" = "default"
{
  xthickness = 2
  ythickness = 1
  GtkWidget::focus_padding = 2

engine "pixmap" {
image
{
function = BOX
recolorable = TRUE
state = NORMAL
file = "panelbutton2.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}

image
{
function = BOX
recolorable = TRUE
state = PRELIGHT
file = "panelbutton1.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}

image
{
function = BOX
recolorable = TRUE
state = ACTIVE
file = "panelbutton3.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}  
image
{
function = BOX
recolorable = TRUE
state = INSENSITIVE
file = "panelbutton2.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}  
}
}

#####################################################
#Buttons
#####################################################

style "button"
{
  GtkButton::default_border = { 0, 0, 0, 0 }
  # Little room on button sides
  xthickness=3
  engine "pixmap"
  {
    image
      {
function        = BOX
recolorable     = TRUE
state           = NORMAL
        detail = "buttondefault"
shadow          = IN
file            = "button_round.png"
border          = { 15,15,12,12 }
stretch         = TRUE
    }
    image
    {
function        = BOX
recolorable     = TRUE
state           = NORMAL
shadow          = OUT
file            = "button_round.png"
border          = { 9,9,10,10 }
stretch         = TRUE
    }
    image
    {
function        = BOX
recolorable     = TRUE
state           = PRELIGHT
file            = "button_round_blue.png"
border          = { 9,9,10,10 }
stretch         = TRUE
    }
    image
    {
function        = BOX
recolorable     = TRUE
state           = NORMAL
shadow          = IN
file            = "button_round.png"
border          = { 9,9,10,10 }
stretch         = TRUE
    }
    image
    {
function        = BOX
recolorable     = TRUE
state           = INSENSITIVE
file            = "button_round_insens.png"
border          = { 9,9,10,10 }
stretch         = TRUE
    }
    image
    {
function        = BOX
recolorable     = TRUE
state           = SELECTED
shadow          = IN
file            = "button_round_blue_push.png"
border          = {9,9,10,10 }
stretch         = TRUE
    }
    image
    {
function        = BOX
recolorable     = TRUE
state           = ACTIVE
shadow          = IN
file            = "button_round_blue_push.png"
border          = { 9,9,10,10 }
stretch         = TRUE
    }
  }
}

################################################
# Paned Widgets: Windows divided into two or more
# sections, which can be resized by dragging handles.
################################################

style "paned" = "default"
{
  #This defines the thickness of the bar that divides the window.
  GtkPaned::handle_size = 6

  engine "pixmap"
  {
    # Horizontal dividers
    image
    {
function = HANDLE
recolorable = TRUE
file = "plain_background.png"
border = { 1, 1, 1, 1 }
stretch = TRUE
overlay_file = "handle-h.png"
overlay_border = {0,0,0,0}
overlay_stretch = FALSE
orientation = HORIZONTAL
    }

    # Vertical dividers
    image
    {
function = HANDLE
recolorable = TRUE
file = "plain_background.png"
border = { 1, 1, 1, 1 }
stretch = TRUE
overlay_file = "handle-v.png"
overlay_border = {0,0,0,0}
overlay_stretch = FALSE
orientation = VERTICAL
    }
  }
}

################################################
# Toolbars drawn by gtk
################################################
style "toolbar" = "default"
{
  engine "pixmap"
  {
    image
    {
function = BOX
recolorable = TRUE
shadow = OUT
file = "shadow_etched_out.png"
border = {1,1,1,2}
stretch = TRUE
    }
  }
}

###############################################
# Menu
###############################################

style "menu" = "default"
{
bg_pixmap[NORMAL] = "menu-overlay.png"
xthickness = 1
ythickness = 1
}

style "menuitem"
{
  xthickness = 3
  ythickness = 2
  fg[NORMAL] = "#FEFEFE"
  fg[PRELIGHT] = "#1b1c25"
  text[PRELIGHT] = "#1b1c25"

  engine "pixmap"
  {
    image
    {
      function = BOX
      recolorable = TRUE
      file = "menuitem.png"
      border = { 2, 2, 2, 2 }
      stretch = TRUE
    }
    image
    {
      function = HLINE
      recolorable = TRUE
      file = "menuline.png"
      border = { 1, 2, 1, 2 }
      stretch = FALSE
    }
    image
    {
      function = ARROW
      recolorable = TRUE
      overlay_file = "arrow-right-small.png"
      overlay_stretch = FALSE
      arrow_direction = RIGHT
    }
  }
}

style "menubar" = "default"
{
  fg[NORMAL] = "#000000"
  fg[PRELIGHT] = "#1b1c25"
  text[PRELIGHT] = "#1b1c25"

  engine "pixmap"
  {
    image
    {
file = "null.png"
border = { 0, 0, 0, 0 }
    }
    image
    {
function = BOX
recolorable = TRUE
state = PRELIGHT
file = "menubar-button.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
    }
  }
}

style "tearoffmenuitem" = "menuitem"
{
  engine "pixmap"
  {
    image
    {
      function = ARROW
      file = "arrow-left-small.png"
      stretch = TRUE
      arrow_direction = LEFT
    }
  }
}

###############################################
# Styles and Controls for Option Menus
###############################################

style "OptionMenu"
{
  fg[NORMAL] = "#FEFEFE"
  fg[PRELIGHT] = "#1b1c25"
  text[PRELIGHT] = "#1b1c25"

  engine "pixmap"
  {
    image
    {
function        = BOX
recolorable     = TRUE
file            = "OptionMenu.png"
border          = { 12, 20, 10, 10 }
stretch         = TRUE
    }
    image
    {
function        = TAB
recolorable     = TRUE
overlay_file    = "menubar_option_arrow.png"
overlay_stretch = FALSE
    }
    image
    {
function        = TAB
recolorable     = TRUE
state           = INSENSITIVE
overlay_file    = "menubar_option_arrow_insensitive.png"
overlay_stretch = FALSE
    }    
  }
}

#####################################################
# Notebook: tabs, spacings, and backgrounds
#####################################################

style "notebook"
{
  #These thickness settings make sure that we see the whole thin blue line at the top
  #of the notebook page.
  xthickness = 1
  ythickness = 3

  engine "pixmap"
  {
    # NOTEBOOK TABS
    # Tabs at the top
    # Selected tab
    image
    {
function = EXTENSION
state = NORMAL
gap_side = BOTTOM
file = "SelectedTabTop.png"
border = {6,6,9,0}
stretch = TRUE
    }

    # Background tab
    image
    {
function = EXTENSION
state = ACTIVE
gap_side = BOTTOM
file = "NormalTabTop.png"
border = {6,6,9,0}
stretch = TRUE
    }

    # Tabs at the bottom
    # Background tab
    image
    {
function = EXTENSION
state = ACTIVE
gap_side = TOP
file = "NormalTabBottom.png"
border = {6,6,0,9}
stretch = TRUE
    }

    # The image for selected tabs.
    image
    {
function = EXTENSION
state = NORMAL
gap_side = TOP
file = "SelectedTabBottom.png"
border = {6,6,0,9}
stretch = TRUE
    }

    #These are the images that are used for the base of the notebook: the area in the border
    #forms the border of the notebook page and the stretched part sits inside.
    # Tabs at the top
    image
    {
function = BOX_GAP
gap_side = TOP
file = "notebook_top_flat.png"
border = {1,1,4,1}
stretch = TRUE
    }
    # Tabs on the right
    image
    {
function = BOX_GAP
gap_side = RIGHT
file = "notebook_right_flat.png"
border = {1,4,1,1}
stretch = TRUE
    }
    # Tabs at the bottom
    image
    {
function = BOX_GAP
gap_side = BOTTOM
file = "notebook_bottom_flat.png"
border = {1,1,1,4}
stretch = TRUE
    }
    # Tabs on the left
    image
    {
function = BOX_GAP
gap_side = LEFT
file = "notebook_left_flat.png"
border = {4,1,1,1}
stretch = TRUE
    }

    #For drawing notebook pages when they are not attached to a tab. When does
    #this happen?
    image
    {
        function        = BOX
file = "notebook_top_flat.png"
border = {1,1,4,1}
stretch = TRUE
        gap_side        = TOP
    }
  }
}

#####################################################
# Text Entries
#####################################################

style "entry"
{
  # Background to blend in with things like toolbars.
  base[NORMAL]     = "#F0F0F0"

  engine "pixmap"
  {

image
       {
function        = FLAT_BOX
recolorable     = TRUE
state           = INSENSITIVE
        detail          = "entry_bg"
file            = "text_entry.png"
border = {6,6,6,6 }
stretch         = TRUE
      }

    image
      {
function        = FLAT_BOX
recolorable     = TRUE
state           = NORMAL
        detail          = "entry_bg"
file            = "text_entry.png"
border = {6,6,6,6 }
stretch         = TRUE
      }

image
      {
function        = FLAT_BOX
recolorable     = TRUE
state           = SELECTED
        detail          = "entry_bg"
file            = "out_sel.png"
border = { 1,1,8,8 }
stretch         = TRUE
      }

#This is a transparent shadow.
  image
      {
        function        = SHADOW
recolorable     = TRUE
shadow          = IN
file            = "transparent.png"
border          = { 1,1,1,1 }
stretch         = TRUE
      }

}
}

###############################################
# Gtk Lists, like the Rhythmbox playlist or Nautilus Listview
###############################################
style "list-header"
{
   #Comment out the ythickness setting below for thicker column headers.
   ythickness = 0
   GtkTreeView::odd_row_color = "#e4ebf5"
   GtkTreeView::even_row_color = "#ffffff"

   engine "pixmap"
{

#This image is used to draw the headers of columns in list views when they are
#not selected.
    image
      {
        function        = BOX
recolorable     = TRUE
shadow          = OUT
file            = "list_header.png"
border          = { 1,1,1,1 }
stretch         = TRUE
      }

#This image is used to draw the column headers in list views when they are
#clicked.
    image
      {
        function        = BOX
recolorable     = TRUE
shadow          = IN
file            = "menu_hi-light_2.png"
border          = { 1,1,1,1 }
stretch         = TRUE
      }

#Does this do anything?
image
      {
        function        = BOX
recolorable     = TRUE
shadow    = OUT
state    = PRELIGHT
file            = "menu_hi-light_2.png"
border          = { 1,1,1,1 }
stretch         = TRUE
      }
  }
   
}

###############################################
# GtkScrollbar: The scrollbars on windows
###############################################

style "Scrollbar"
{
    GtkRange::trough_border = 0
    GtkRange::slider_width = 15
    GtkRange::stepper_size = 15
    GtkScrollbar::min_slider_length = 30
 
  engine "pixmap"
  {
    #The trough for vertical scrollbars. This is the region in which the slider moves.
    image
    {
function        = BOX
recolorable     = TRUE
detail          = "trough"
file            = "vertical_trough.png"
border          = { 0, 0, 30, 30 }
stretch         = TRUE
orientation     = VERTICAL
    }
    #The trough for horizontal scrollbars.
    image
    {
function        = BOX
recolorable     = TRUE
detail          = "trough"
file            = "horizontal_trough.png"
border          = { 30, 30, 0, 0 }
stretch         = TRUE
orientation     = HORIZONTAL
    }
    #The image used to draw the slider for horizontal scrollbars
    #in the NORMAL state.
    image
    {
function        = SLIDER
recolorable     = TRUE
state           = NORMAL
file            = "scrollbar_horizontal.png"
border          = { 15, 15, 6, 6 }
stretch         = TRUE
orientation     = HORIZONTAL
    }
    #The image used to draw the slider for horizontal scrollbars
    #in their prelight state.
    image
    {
function        = SLIDER
recolorable     = TRUE
state           = PRELIGHT
file            = "scrollbar_prelight_horizontal.png"
border          = { 15, 15, 6, 6 }
stretch         = TRUE
orientation     = HORIZONTAL
    }
    #The image used to draw the slider for horizontal scrollbars
    #in their ACTIVE (pressed?) state.
    image
    {
function        = SLIDER
recolorable     = TRUE
state           = ACTIVE
file            = "scrollbar_horizontal.png"
border          = { 15, 15, 6, 6 }
stretch         = TRUE
orientation     = HORIZONTAL
    }
    #The image used to draw the slider for horizontal scrollbars
    #in their INSENSITIVE state.
    image
    {
function        = SLIDER
recolorable     = TRUE
state           = INSENSITIVE
file            = "scrollbar_horizontal.png"
border          = { 15, 15, 6, 6 }
stretch         = TRUE
orientation     = HORIZONTAL
    }
    #The image used to draw the slider for vertical scrollbars
    #in their NORMAL state.
    image
    {
function        = SLIDER
recolorable     = TRUE
state           = NORMAL
file            = "scrollbar_vertical.png"
border          = { 6, 6, 15, 15 }
stretch         = TRUE
orientation     = VERTICAL
    }
    #The image used to draw the slider for vertical scrollbars
    #in their prelight state.
    image
    {
function        = SLIDER
recolorable     = TRUE
state           = PRELIGHT
file            = "scrollbar_prelight_vertical.png"
border          = { 6, 6, 15, 15 }
stretch         = TRUE
orientation     = VERTICAL
    }
    #The image used to draw the slider for vertical scrollbars
    #in their ACTIVE state.
    image
    {
function        = SLIDER
recolorable     = TRUE
state           = ACTIVE
file            = "scrollbar_vertical.png"
border          = { 6, 6, 15, 15 }
stretch         = TRUE
orientation     = VERTICAL
    }
    #The image used to draw the slider for vertical scrollbars
    #in their INSENSITIVE state.
    image
{
function        = SLIDER
recolorable     = TRUE
state           = INSENSITIVE
file            = "scrollbar_vertical.png"
border          = { 6, 6, 15, 15 }
stretch         = TRUE
orientation     = VERTICAL
    }

    image
    {
function        = BOX
recolorable     = TRUE
state           = NORMAL
file            = "vscroll_down.png"
border          = { 0, 0, 0, 0 }
stretch         = TRUE
    }
       
    image
    {
function        = BOX
recolorable     = TRUE
state           = PRELIGHT
file            = "vscroll_down.png"
border          = { 0, 0, 0, 0 }
stretch         = TRUE
orientation     = HORIZONTAL
    }

    image
    {
function        = BOX
recolorable     = TRUE
state           = ACTIVE
file            = "vscroll_down.png"
border          = { 0, 0, 0, 0 }
stretch         = TRUE
    }

    image
    {
function = ARROW
recolorable = TRUE
state = NORMAL
overlay_file = "vscroll_up.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = UP
    }
    image
    {
function = ARROW
recolorable = TRUE
state = NORMAL
overlay_file = "vscroll_down.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = DOWN
    }
    image
    {
function = ARROW
recolorable = TRUE
state = NORMAL
overlay_file = "hscroll_left.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = LEFT
    }
    image
    {
function = ARROW
recolorable = TRUE
state = NORMAL
overlay_file = "hscroll_right.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = RIGHT
    }
    image
    {
function = ARROW
recolorable = TRUE
state = PRELIGHT
overlay_file = "vscroll_up.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = UP
    }
    image
    {
function = ARROW
recolorable = TRUE
state = PRELIGHT
overlay_file = "vscroll_down.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = DOWN
    }
    image
    {
function = ARROW
recolorable = TRUE
state = PRELIGHT
overlay_file = "hscroll_left.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = LEFT
    }
    image
    {
function = ARROW
recolorable = TRUE
state = PRELIGHT
overlay_file = "hscroll_right.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = RIGHT
    }
    image
    {
function = ARROW
recolorable = TRUE
shadow = IN
overlay_file = "vscroll_up.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = UP
    }
    image
    {
function = ARROW
recolorable = TRUE
shadow = IN
overlay_file = "vscroll_down.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = DOWN
    }
    image
    {
function = ARROW
recolorable = TRUE
shadow = IN
overlay_file = "hscroll_left.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = LEFT
    }
    image
    {
function = ARROW
recolorable = TRUE
shadow = IN
overlay_file = "hscroll_right.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = RIGHT
    }    
  }
}

###########################################
# Scales: The sliders used for volume, track position, etc. Drawn without
#     arrow boxes on the end.
###########################################

#Problem: scales in some apps, like the Gimp, dont look right when they
#are small. The slider is too thin and has two overlapping pieces and looks
#like crap.

style "Scales"
{
    GtkRange::trough_border = 0
    GtkRange::slider_width = 15
    engine "pixmap"
    {

        image
{
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough_2.png"
            border          = { 2, 2, 6, 6 }
            stretch         = TRUE
            orientation     = VERTICAL
        }

        image
{
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "horizontal_trough_3.png"
            border          = { 6, 6, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }

image
{
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scrollbar_horizontal.png"
            border          = { 15, 15, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }

        image
{
            function        = SLIDER
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scrollbar_horizontal.png"
            border          = { 15, 15, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }

        image
{
            function        = SLIDER
            recolorable     = TRUE
            state           = ACTIVE
            file            = "scrollbar_horizontal.png"
            border          = { 15, 15, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }

        image
{
            function        = SLIDER
            recolorable     = TRUE
            state           = INSENSITIVE
            file            = "scrollbar_horizontal.png"
            border          = { 15, 15, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }

        image
{
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scrollbar_vertical.png"
            border          = { 6, 6, 15, 15 }
            stretch         = TRUE
            orientation     = VERTICAL
        }

        image
{
            function        = SLIDER
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scrollbar_vertical.png"
            border          = { 6, 6, 15, 15 }
            stretch         = TRUE
            orientation     = VERTICAL
        }

        image
{
            function        = SLIDER
            recolorable     = TRUE
            state           = ACTIVE
            file            = "scrollbar_vertical.png"
            border          = { 6, 6, 15, 15 }
            stretch         = TRUE
            orientation     = VERTICAL
        }

        image
{
            function        = SLIDER
            recolorable     = TRUE
            state           = INSENSITIVE
            file            = "scrollbar_vertical.png"
            border          = { 6, 6, 15, 15 }
            stretch         = TRUE
            orientation     = VERTICAL
        }

    }
}

##################################################
#Spin Controls
#---------------
#These are buttons with two arrows that let you set some value by clicking the
#the arrows. The widget might also have a text entry box for setting the value
#directly by typing it in.                
##################################################

style "spin"
{
  engine "pixmap"
   {

   #First we set the images for drawing different parts of a text entry that
   #might be attached to the widget. This could be done by inheriting from the
   #style used for GtkEntry, but we just set everything here explicitly. Still having
   #the same problem as with GtkEntry with the white outline if we do not draw
   #a shadow with a thick enough border.

   image
   {
    function = FLAT_BOX
recolorable = TRUE
state = NORMAL
detail = "entry_bg"
file = "text_entry.png"
border           = {6,6,6,6 }
stretch = TRUE
   }

   image
   {
    function = FLAT_BOX
recolorable = TRUE
state = SELECTED
detail = "entry_bg"
file = "out_sel.png"
border           = { 1,1,8,8 }
stretch = TRUE
   }

   image
   {
    function = FLAT_BOX
recolorable = TRUE
state = INSENSITIVE
detail = "entry_bg"
file = "text_entry.png"
border           = {6,6,6,6 }
stretch = TRUE
   }

   image
   {
       function         = SHADOW
recolorable     = TRUE
shadow           = IN
file             = "transparent.png"
border           = { 1,1,1,1 }
stretch         = TRUE
   }


   #The following two sections define the images used to draw the up and
   #down spin buttons in the INSENSITIVE state.
   image
   {
       function         = BOX
recolorable     = TRUE
state = INSENSITIVE
detail = "spinbutton_up"
file             = "spin_button_up.png"
border           = { 7,7,6,0 }
stretch         = TRUE
   }

   image
   {
       function         = BOX
recolorable     = TRUE
state = INSENSITIVE
detail = "spinbutton_down"
file             = "spin_button_down.png"
border           = { 7,7,0,6 }
stretch         = TRUE
   }

   #The following two sections define the images used to draw the up and
   #down spin buttons in the PRELIGHT state.
   image
   {
       function         = BOX
recolorable   = TRUE
state = PRELIGHT
detail = "spinbutton_up"
file             = "spin_button_up_prelight.png"
border           = { 7,7,6,0 }
stretch         = TRUE
   }

   image
   {
       function         = BOX
recolorable   = TRUE
state = PRELIGHT
detail = "spinbutton_down"
file             = "spin_button_down_prelight.png"
border           = { 7,7,0,6 }
stretch         = TRUE
   }

   #The following two sections define the images used to draw the up and
   #down spin buttons in any states that we have not already defined.
   image
   {
       function         = BOX
recolorable     = TRUE
detail = "spinbutton_up"
file             = "spin_button_up_active.png"
border           = { 7,7,6,0 }
stretch         = TRUE
   }

   image
   {
       function         = BOX
recolorable     = TRUE
detail = "spinbutton_down"
file             = "spin_button_down_active.png"
border           = { 7,7,0,6 }
stretch         = TRUE
   }

   #The arrows drawn on the spinbuttons are set by the next two
   #entries. Different types of arrows can be used for different
   #states by setting images for each state.

   image
   {
function = ARROW
recolorable = TRUE
overlay_file = "spin_button_up_arrow.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = UP
         }

   image
   {
function = ARROW
recolorable = TRUE
overlay_file = "spin_button_down_arrow.png"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
arrow_direction = DOWN
         }
}
}

############################################
# Check Boxes
############################################

style "CheckBox"
{

    engine "pixmap"
    {
#This is the image used to draw an unchecked box.
        image
{
            function        = CHECK
            recolorable     = TRUE
            shadow          = OUT
            overlay_file    = "unchecked_box.png"
            overlay_stretch = FALSE
        }

#This is the image used to draw a selected (checked) box.
        image
{
            function        = CHECK
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "checked_box.png"
            overlay_stretch = FALSE
        }

#Use this image to draw the highlight when a line with a check box
#is moused over.
image
{
            function        = FLAT_BOX
            recolorable     = TRUE
            file            = "menu_hi-light_2.png"
            border          = { 1, 1, 1, 1 }
        }

    }
}

############################################
# Radio Buttons
############################################

style "RadioButton"
{

    engine "pixmap"
    {

image
{
            function        = OPTION
            recolorable     = TRUE
            shadow          = OUT
            overlay_file    = "option_out_2.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
        }

        image
{
            function        = OPTION
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "option_in_2.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
        }

#Use this image to draw the highlight when a line with a radio box
#is moused over.
image
{
            function        = FLAT_BOX
            recolorable     = TRUE
            file            = "menu_hi-light_2.png"
            border          = { 1, 1, 1, 1 }
        }

    }
}

################################################
# Statusbars Drawn by gtk (info bar on the bottom of the window)
################################################
style "GtkStatusbar" = "default"
{
      GtkStatusbar::shadow_type = GTK_SHADOW_NONE

      engine "pixmap"
     {

#This does not seem to be working. It seems that you can tell gtk how
#to draw the resizing grip in the bottom right corner of the window, which
#seems to be part of the status bar. Not sure why it is not working.
   image
   {
    function = RESIZE_GRIP
recolorable = TRUE
#state = NORMAL
detail = "statusbar"
overlay_file = "menu_hi-light_2.png"
overlay_border           = {1,1,1,1 }
overlay_stretch = FALSE
   }
      }


}

###########################################
#Progress Bars
###########################################

style "ProgressBar"
{
  #xthickness = 1
  #ythickness = 1
  GtkProgressBar::trough_border = 0

  engine "pixmap"
  {
        image
{
            function        = BOX
            recolorable     = TRUE
            detail          = "bar"
            file            = "menu_hi-light_2.png"
            border          = { 1, 1, 1, 1}
            stretch         = TRUE
        }

        image
{
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough_2.png"
            border          = { 1, 1, 1, 1 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
    }
}

###########################################
#Text Boxes in Notebooks
###########################################

#Notebook pages have a darker background than the normal base color. This
#section sets the appropriate background colors for widgets with text entries
#so they blend in with the darker grey background. This isn't a complete fix
#for the problem, since some programs seem to use notebook pages (without
#tabs) in such a way that they don't pick up the dark grey background.
style "DarkTextEntry"
{
  #xthickness = 1
  #ythickness = 1
 
  #font_name = "Bold"

  base[NORMAL]     = "#E8E8E8"
  base[INSENSITIVE] = "#E8E8E8"
  #base[ACTIVE] = "#E8E8E8"
  #base[ACTIVE] = "#000000"
  #base[INSENSITIVE] = "#000000"
  #base[SELECTED] = "#000000"

}

###########################################
# DEFINE CLASSES
###########################################
class "GtkWidget" style "default"
class "*Panel*" style "panelbg"
widget_class "*Panel*GtkToggleButton" style "panelbuttons"
widget_class "*Panel*GtkButton" style "panelbuttons"
class "GtkButton" style "button"
class "Gtk*Paned" style "paned"
widget_class "GtkToolBar" style "toolbar"
class "*Tool*" style "toolbar"
class "GtkMenu" style "menu"
class "GtkItem" style "menuitem"
widget_class "*MenuItem.*" style "menuitem"
class "GtkMenuBar" style "menubar"
widget_class "*GtkMenuBar.*" style "menubar"
class "GtkTearoffMenuItem" style "tearoffmenuitem"
class "GtkOptionMenu" style "OptionMenu"
class "GtkNotebook" style "notebook"
class "GtkEntry" style "entry"
widget_class "*List" style "list-header"
widget_class "*Tree*" style "list-header"
widget_class "GtkCList" style "list-header"
class "GtkScrollbar" style "Scrollbar"
class "GtkScale" style "Scales"
class "GtkSpin*" style "spin"
class "GtkCheckButton" style "CheckBox"
class "GtkRadioButton" style "RadioButton"
class "GtkStatusbar" style "GtkStatusbar"
class "GtkProgressBar" style "ProgressBar"
widget_class "*Notebook*Entry" style "DarkTextEntry"
widget_class "*Notebook*ComboBox" style "DarkTextEntry"
widget_class "*Notebook*SpinButton" style "DarkTextEntry"
desculpem as mensagens não respondidas, mas eu tô afastado há mais de ano...
um dia eu volto ;)

Offline LaSSarD

  • Usuário Ubuntu
  • *
  • Mensagens: 1.144
    • Ver perfil
gtkrc
« Resposta #3 Online: 11 de Setembro de 2005, 18:13 »
Alguma descoberta? :?
Eu não sei mais onde fuçar... :roll:
desculpem as mensagens não respondidas, mas eu tô afastado há mais de ano...
um dia eu volto ;)