⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkrc

📁 一款即时通讯软件
💻
📖 第 1 页 / 共 2 页
字号:
include "testgtkrc2"

module_path ".:/home/raster/themes"

style "eventbox" {
  bg_pixmap[NORMAL] = "<parent>"
  bg_pixmap[INSENSITIVE] = "<parent>"
  bg_pixmap[PRELIGHT] = "<parent>"
  bg_pixmap[SELECTED] = "<parent>"
  bg_pixmap[ACTIVE] = "<parent>"
}

class "GtkEventBox" style "eventbox"

#
# Buttons
#

style "checkradiobutton" {
  engine "pixmap" {
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	file            = "button5.png"
	border          = { 10,5,5,10 }
	stretch         = TRUE
      }
  }
}

class "GtkRadioButton" style "checkradiobutton"
class "GtkCheckButton" style "checkradiobutton"

style "togglebutton"
{
   engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	shadow          = IN
	file            = "button2.png"
	border          = { 5,5,10,10 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	shadow          = OUT
	file            = "button1.png"
	border          = { 10,10,10,10 }
	stretch         = TRUE
      }
  }
}

class "GtkToggleButton" style "togglebutton"

style "button"
{
  bg[NORMAL] = "#ffffff"

  engine "pixmap" 
    {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = NORMAL
	shadow          = OUT
	file            = "button5.png"
	border          = { 10,5,5,10 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = PRELIGHT
	shadow          = OUT
	file            = "button9.png"
	border          = { 10,5,5,10 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = NORMAL
	shadow          = IN
	file            = "button4.png"
	border          = { 10,5,5,10 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	shadow          = IN
	file            = "button3.png"
	border          = { 10,5,5,10 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	shadow          = OUT
	file            = "button3.png"
	border          = { 10,5,5,10 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = SELECTED
	shadow          = IN
	file            = "button4.png"
	border          = { 10,5,5,10 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = ACTIVE
	shadow          = IN
	file            = "button0.png"
	border          = { 10,5,5,10 }
	stretch         = TRUE
      }
   }
}

class "GtkButton" style "button"

style "clist"
{
  bg[PRELIGHT] = "#eeeeee"
  fg[PRELIGHT] = "#000000"
  base[NORMAL] = "#eeeeee"
}

class "GtkCList" style "clist"

style "notebook"
{
  engine "pixmap" 
    {
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "notebook2.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side	= BOTTOM
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "notebook5.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side	= TOP
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "notebook6.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side	= RIGHT
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "notebook6.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side	= LEFT
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "notebook3.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side        = BOTTOM
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "notebook4.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side        = TOP
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "notebook7.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side        = RIGHT
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "notebook7.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side        = LEFT
     }
#
# How to draw boxes with a gap on one side (ie the page of a notebook)
#
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "notebook6.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
        gap_file        = "gap_top.png"
        gap_border      = { 0, 0, 0, 0 }
        gap_start_file  = "gap_top_start.png"
        gap_start_border= { 2, 0, 0, 0 }
        gap_end_file    = "gap_top_end.png"
        gap_end_border  = { 0, 2, 0, 0 }
	gap_side        = TOP
      }
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "notebook6.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
        gap_file        = "gap_bottom.png"
        gap_border      = { 0, 0, 0, 0 }
        gap_start_file  = "gap_bottom_start.png"
        gap_start_border= { 2, 0, 0, 0 }
        gap_end_file    = "gap_bottom_end.png"
        gap_end_border  = { 0, 2, 0, 0 }
	gap_side        = BOTTOM
      }
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "notebook6.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
        gap_file        = "gap_left.png"
        gap_border      = { 0, 0, 0, 0 }
        gap_start_file  = "gap_left_start.png"
        gap_start_border= { 0, 0, 2, 0 }
        gap_end_file    = "gap_left_end.png"
        gap_end_border  = { 0, 0, 0, 2 }
	gap_side        = LEFT
      }
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "notebook6.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
        gap_file        = "gap_right.png"
        gap_border      = { 0, 0, 0, 0 }
        gap_start_file  = "gap_right_start.png"
        gap_start_border= { 0, 0, 2, 0 }
        gap_end_file    = "gap_right_end.png"
        gap_end_border  = { 0, 0, 0, 2 }
	gap_side        = RIGHT
      }
#
# How to draw the box of a notebook when it isnt attached to a tab
#
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "notebook6.png"
	border          = { 10, 10, 10, 10 }
	stretch         = TRUE
	gap_side	= TOP
      }
  }
}

class "GtkNotebook" style "notebook"

style "menu"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "background.png"
	border          = { 3, 3, 3, 3 }
	stretch         = FALSE
	overlay_file    = "menu_shadow.png"
	overlay_border  = { 3, 3, 3, 3 }
	overlay_stretch = TRUE
      }
  }
}

class "GtkMenu" style "menu"

style "menuitem"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "menu_selected.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
  }
}

class "GtkMenuItem" style "menuitem"

style "menubar"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "background.png"
	border          = { 3, 3, 3, 3 }
	stretch         = FALSE
      }
  }
}

class "GtkMenuBar" style "menubar"

style "optionmenu"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "option_menu.png"
	border          = { 12, 32, 2, 3 }
	stretch         = TRUE
      }
  }
}

class "GtkOptionMenu" style "optionmenu"

style "progressbar"
{
  engine "pixmap" 
    {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "bar"
	file            = "button6.png"
	border          = { 5, 5, 5, 5 }
	stretch         = TRUE
      }
    image
      {
        function        = BOX
        recolorable     = TRUE
        detail          = "trough"
        file            = "button5.png"
        border          = { 10, 10, 10, 10 }
        stretch         = TRUE
        orientation     = HORIZONTAL
      }
    }
}

class "GtkProgressBar" style "progressbar"
class "GtkBar" style "progressbar"

style "ruler"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "vruler"
	file            = "button5.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "hruler"
	file            = "button5.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
      }
  }
}

class "GtkRuler" style "ruler"

style "item" 
{
  engine "pixmap" {
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	file            = "button3.png"
	border          = { 10, 5, 5, 10 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	file            = "button6.png"
	border          = { 10, 5, 5, 10 }
	stretch         = TRUE
      }
  }
}

class "GtkTreeItem" style "item"
class "GtkListItem" style "item"

style "window" 
{
  engine "pixmap" {
    image 
      {
	function        = FLAT_BOX
	recolorable     = TRUE
	file            = "background.png"
	stretch         = FALSE
      }
  }
}

class "GtkWindow" style "window"

style "curve"
{
  engine "pixmap" {
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "curve_bg"
	file            = "button1.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
      }
  }
}

class "GtkCurve" style "curve"

style "scrollbar"
{
  engine "pixmap" 
  {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "slider"
	state           = PRELIGHT
	file            = "scrollbar_horiz1.png"
	border          = { 15, 15, 2, 2 }
	stretch         = TRUE
	orientation     = HORIZONTAL
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "slider"
	state           = NORMAL
	file            = "scrollbar_horiz1.png"
	border          = { 13, 12, 2, 2 }
	stretch         = TRUE
	orientation     = HORIZONTAL
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "slider"
	state           = PRELIGHT
	file            = "scrollbar_vert1.png"
	border          = { 2, 2, 15, 15 }
	stretch         = TRUE
	orientation     = VERTICAL
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "slider"
	file            = "scrollbar_vert1.png"
	border          = { 2, 2, 15, 15 }
	stretch         = TRUE
	orientation     = VERTICAL
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "trough"
	file            = "vtrough.png"
	border          = { 3, 3, 23, 23 }
	stretch         = TRUE
	orientation     = VERTICAL
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "trough"
	file            = "htrough.png"
	border          = { 23, 23, 3, 3 }
	stretch         = TRUE
	orientation     = HORIZONTAL
      }
  }
}

class "GtkScrollbar" style "scrollbar"

style "range"
{
  engine "pixmap" {
    image 
      {
        function        = SLIDER
	recolorable     = TRUE
	file            = "slider_hth2.png"
	border          = { 2, 2, 5, 5 }
	stretch         = FALSE
	overlay_file    = "slider_horiz1.png"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -