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

📄 gtkrc.template

📁 用java开发的固定资产管理系统。包括固定资产、类别、人员等管理模块
💻 TEMPLATE
📖 第 1 页 / 共 2 页
字号:

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"

style "pane"
{
  engine "pixmap" {
    image
      {
        function        = BOX
        orientation     = HORIZONTAL
        file            = "empty.png"
      }
    image
      {
        function        = BOX
        orientation     = VERTICAL
        file            = "empty.png"
      }
    image
      {
        function        = HANDLE
        orientation     = HORIZONTAL
        file            = "splitpane_hhandle.png"
      }
    image
      {
        function        = HANDLE
        orientation     = VERTICAL
        file            = "splitpane_vhandle.png"
      }
    image
      {
        function        = ARROW
        arrow_direction = LEFT
        file            = "splitpane_leftarrow.png"
      }
    image
      {
        function        = ARROW
        arrow_direction = RIGHT
        file            = "splitpane_rightarrow.png"
      }
    image
      {
        function        = ARROW
        arrow_direction = DOWN
        file            = "splitpane_downarrow.png"
      }
    image
      {
        function        = ARROW
        arrow_direction = UP
        file            = "splitpane_uparrow.png"
      }

  }
}

class "GtkPaned" style "pane"

style "checkradiobutton" {
  engine "pixmap" {
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	file            = "highlight.png"
	border          = { 0, 0, 0, 1 }
	stretch         = TRUE
      }
  }
}

class "GtkScrollbar" style "scrollbar"

style "scrollbar" {
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "trough"
	file		= "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='LowerTrackHorz']#0,1|scrollbar_htrough.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
	orientation     = HORIZONTAL
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "trough"
	file		= "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='LowerTrackVert']#0,1|scrollbar_vtrough.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
	orientation     = VERTICAL
      }
  }
}

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

style "togglebutton"
{
   engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	shadow          = IN
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#2,5|toggle_in.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state		= PRELIGHT
	shadow          = OUT
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#1,5|toggle_rollover_out.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state		= INSENSITIVE
	shadow          = IN
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#3,5|toggle_disabled_in.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state		= INSENSITIVE
	shadow          = OUT
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#3,5|toggle_disabled_out.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	shadow          = OUT
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#0,5|toggle_out.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
 	stretch         = TRUE
      }
  }
}

class "GtkToggleButton" style "togglebutton"

style "button"
{
  engine "pixmap" 
    {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = NORMAL
	detail          = "buttondefault"
	shadow          = IN
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#0,5|button_in.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = NORMAL
	shadow          = OUT
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#0,5|button_out.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = PRELIGHT
	shadow          = OUT
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#1,5|button_rollover_out.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = NORMAL
	shadow          = IN
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#2,5|button_normal_in.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	shadow          = IN
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#3,5|button_disabled_in.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	shadow          = OUT
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#3,5|button_disabled_out.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = SELECTED
	shadow          = IN
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#4,5|button_selected.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = ACTIVE
	shadow          = IN
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Pushbutton']#2,5|button_active.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
   }
}

class "GtkButton" style "button"

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

class "GtkCList" style "clist"

style "notebook"
{
  engine "pixmap" 
    {
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Tab']/Part[@Name='TabItem']#0,5|tab_active.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Tab']/Part[@Name='TabItem']#2,5|tab_active_bottom.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
	gap_side        = BOTTOM
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "tab_bottom.png"
	border          = { 3, 3, 3, 3 }
	stretch         = TRUE
	gap_side        = TOP
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "tab_left.png"
	border          = { 3, 3, 3, 3 }
	stretch         = TRUE
	gap_side        = RIGHT
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "tab_right.png"
	border          = { 3, 3, 3, 3 }
	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		= "MS{Image://Group[@Name='General']/Class[@Name='Tab']/Part[@Name='Pane']#0,1|tab_border.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	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            = "notebook.png"
	border          = { 2, 2, 2, 2 }
	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            = "notebook.png"
	border          = { 2, 2, 2, 2 }
	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            = "notebook.png"
	border          = { 2, 2, 2, 2 }
	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            = "notebook.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
	gap_side        = TOP
      }
  }
}

class "GtkNotebook" style "notebook"

style "menu"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file		= "MS{Image://Group[@Name='TaskBandGroupMenu']/Class[@Name='Toolbar']#0,1|menu_border.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
#	overlay_file    = "UIS{Image:Personality/MenuBorders#0,1|menu_border_overlay.png}"
#	overlay_border  = { 1, 1, 1, 1 }
	overlay_stretch = TRUE
      }
  }
}

class "GtkMenu" style "menu"

style "menuitem"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
#	file		= "MS{Image://Group[@Name='General']/Class[@Name='TaskBand']/Part[@Name='FlashButton']#0,1|menuitem.png}"
	file		= "MS{Image://Group[@Name='TaskBandGroupMenu']/Class[@Name='Toolbar']/Part[@Name='Button']#1,3|menuitem.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
  }
}

class "GtkMenuItem" style "menuitem"

style "optionmenu"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = PRELIGHT
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Combobox']/Part[@Name='DropDownButton']#0,4|optionmenu_rollover.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Combobox']/Part[@Name='DropDownButton']#0,4|optionmenu_rollover.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
  }
}

class "GtkOptionMenu" style "optionmenu"

style "progressbar"
{
  engine "pixmap" 
    {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "bar"
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Progress']/Part[@Name='Chunk']#0,1|progress.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
	stretch         = TRUE
      }
    image
      {
        function        = BOX
        detail          = "trough"
	file		= "MS{Image://Group[@Name='General']/Class[@Name='Progress']/Part[@Name='Bar']#0,1|progress_track.png}"
	border          = { MS{Property:Property[@Name='SizingMargins']} }
      }
    }
}

class "GtkProgressBar" style "progressbar"

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

class "GtkRuler" style "ruler"

style "item" 
{
  engine "pixmap" {
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	file		= "MS{Image://Group[@Name='General']/Class[@Name='TrackBar']/Part[@Name='Track']#0,1|slider_disabled.png}"

⌨️ 快捷键说明

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