📄 gtkrc.template
字号:
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
}
image
{
function = FLAT_BOX
recolorable = TRUE
file = "MS{Image://Group[@Name='General']/Class[@Name='TrackBar']/Part[@Name='Track']#0,1|slider.png}"
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
}
}
}
class "GtkTreeItem" style "item"
class "GtkListItem" style "item"
style "window"
{
engine "pixmap" {
image
{
function = FLAT_BOX
recolorable = TRUE
#file = "greybg.png"
border = { 5, 5, 5, 5 }
stretch = TRUE
}
}
}
class "GtkWindow" style "window"
style "curve"
{
engine "pixmap" {
image
{
function = FLAT_BOX
recolorable = TRUE
detail = "curve_bg"
file = "greybg.png"
border = { 0, 0, 0, 0 }
stretch = TRUE
}
}
}
class "GtkCurve" style "curve"
style "default"
{
engine "pixmap"
{
image
{
function = BOX
recolorable = TRUE
detail = "slider"
state = PRELIGHT
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ThumbBtnHorz']#1,4|sliderthumb_rollover_horizontal.png|false}"
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ThumbBtnHorz']#1,4|sliderthumb_rollover_horizontal.png|false}"
overlay_border = { MS{Property:Property[@Name='SizingMargins']} }
overlay_stretch = FALSE
orientation = HORIZONTAL
}
image
{
function = BOX
recolorable = TRUE
detail = "slider"
state = NORMAL
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ThumbBtnHorz']#0,4|sliderthumb_horizontal.png|false}"
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ThumbBtnHorz']#0,4|sliderthumb_horizontal.png|false}"
overlay_border = { MS{Property:Property[@Name='SizingMargins']} }
overlay_stretch = FALSE
orientation = HORIZONTAL
}
image
{
function = BOX
recolorable = TRUE
detail = "slider"
state = PRELIGHT
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ThumbBtnVert']#1,4|sliderthumb_rollover_vertical.png}"
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ThumbBtnVert']#1,4|sliderthumb_rollover_vertical.png}"
overlay_border = { MS{Property:Property[@Name='SizingMargins']} }
overlay_stretch = FALSE
orientation = VERTICAL
}
image
{
function = BOX
recolorable = TRUE
detail = "slider"
state = NORMAL
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ThumbBtnVert']#1,4|sliderthumb_vertical.png}"
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ThumbBtnVert']#1,4|sliderthumb_vertical.png}"
overlay_border = { MS{Property:Property[@Name='SizingMargins']} }
overlay_stretch = FALSE
orientation = VERTICAL
}
#
# Any trough....
#
image
{
function = BOX
recolorable = TRUE
detail = "trough"
file = "MS{Image://Group[@Name='General']/Class[@Name='TrackBar']/Part[@Name='Track']#0,1|trough.png}"
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
}
#
# Selected text in entries, text widget, lists and trees
#
# image
# {
# function = FLAT_BOX
# recolorable = TRUE
# state = INSENSITIVE
# detail = "selected"
# file = "UIS{Image:SunkEdge/Image#1,4}"
# border = { MS{Property:Property[@Name='SizingMargins']} }
# stretch = TRUE
# }
# image
# {
# function = FLAT_BOX
# recolorable = TRUE
# detail = "selected"
# file = "UIS{Image:SunkEdge/Image#1,4}"
# border = { MS{Property:Property[@Name='SizingMargins']} }
# stretch = TRUE
# }
# image
# {
# function = FLAT_BOX
# recolorable = TRUE
# state = INSENSITIVE
# detail = "text"
# file = "UIS{Image:SunkEdge/Image#1,4}"
# border = { MS{Property:Property[@Name='SizingMargins']} }
# stretch = TRUE
# }
# image
# {
# function = FLAT_BOX
# recolorable = TRUE
# detail = "text"
# file = "UIS{Image:SunkEdge/Image#1,4}"
# border = { MS{Property:Property[@Name='SizingMargins']} }
# stretch = TRUE
# }
image
{
function = FLAT_BOX
recolorable = TRUE
detail = "viewportbin"
file = "greybg.png"
border = { 0, 0, 0, 0 }
stretch = TRUE
}
#
# Arrows for all occasions
#
image
{
function = ARROW
recolorable = TRUE
state = NORMAL
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#0,16|arrow_up.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = UP
}
image
{
function = ARROW
recolorable = TRUE
state = PRELIGHT
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#1,16|arrow_rollover_up.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = UP
}
image
{
function = ARROW
recolorable = TRUE
shadow = IN
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#2,16|arrow_in_up.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = UP
}
image
{
function = ARROW
recolorable = TRUE
state = NORMAL
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#4,16|arrow_down.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = DOWN
}
image
{
function = ARROW
recolorable = TRUE
state = PRELIGHT
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#5,16|arrow_rollover_down.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = DOWN
}
image
{
function = ARROW
recolorable = TRUE
shadow = IN
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#6,16|arrow_in_down.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = DOWN
}
image
{
function = ARROW
recolorable = TRUE
state = NORMAL
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#8,16|arrow_left.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = LEFT
}
image
{
function = ARROW
recolorable = TRUE
state = PRELIGHT
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#9,16|arrow_rollover_left.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = LEFT
}
image
{
function = ARROW
recolorable = TRUE
shadow = IN
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#10,16|arrow_in_left.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = LEFT
}
image
{
function = ARROW
recolorable = TRUE
state = NORMAL
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#12,16|arrow_right.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = RIGHT
}
image
{
function = ARROW
recolorable = TRUE
state = PRELIGHT
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#13,16|arrow_rollover_right.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = RIGHT
}
image
{
function = ARROW
recolorable = TRUE
shadow = IN
file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='ArrowBtn']#14,16|arrow_in_right.png}"
stretch = TRUE
border = { MS{Property:Property[@Name='SizingMargins']} }
arrow_direction = RIGHT
}
#
# Hline and Vline widgets
#
image
{
function = HLINE
recolorable = TRUE
file = "hline.png"
stretch = TRUE
}
image
{
function = VLINE
recolorable = TRUE
file = "vline.png"
border = { 1, 1, 0, 0 }
stretch = TRUE
}
#
# Check marks
#
image
{
function = CHECK
recolorable = TRUE
shadow = OUT
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Checkbox']#0,12|check_out.png}"
overlay_stretch = FALSE
}
image
{
function = CHECK
recolorable = TRUE
shadow = IN
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Checkbox']#4,12|check_in.png}"
overlay_stretch = FALSE
}
#
# Option marks
#
image
{
function = OPTION
recolorable = TRUE
shadow = OUT
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Radiobutton']#0,8|radio_out.png}"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
}
image
{
function = OPTION
recolorable = TRUE
shadow = IN
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='Button']/Part[@Name='Radiobutton']#4,8|radio_in.png}"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
}
#
# The "tab" on the OptionMenu
#
image
{
function = TAB
recolorable = TRUE
overlay_file = "pulldown_indicator.png"
overlay_stretch = FALSE
}
#
# Fun with Scrollbars
#
image
{
function = SLIDER
recolorable = TRUE
file = "MS{Image://Group[@Name='General']/Class[@Name='TrackBar']/Part[@Name='Thumb']#0,5|slider_horizontal.png}"
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
orientation = HORIZONTAL
}
image
{
function = SLIDER
recolorable = TRUE
file = "MS{Image://Group[@Name='General']/Class[@Name='TrackBar']/Part[@Name='ThumbVert']#0,5|slider_vertical.png}"
border = { MS{Property:Property[@Name='SizingMargins']} }
stretch = TRUE
orientation = VERTICAL
}
#
# The handle on Handleboxes
#
image
{
function = HANDLE
recolorable = TRUE
file = "menu.png"
border = { 3, 3, 3, 3 }
stretch = TRUE
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='GripperVert']#0,4|handle_vertical.png}"
border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
orientation = VERTICAL
}
image
{
function = HANDLE
recolorable = TRUE
file = "menu.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "MS{Image://Group[@Name='General']/Class[@Name='ScrollBar']/Part[@Name='GripperHorz']#0,4|handle_horizontal.png}"
overlay_border = { 0, 0, 0, 0 }
overlay_stretch = FALSE
orientation = HORIZONTAL
}
#
# The background for entry widgets
#
image
{
function = FLAT_BOX
recolorable = TRUE
state = INSENSITIVE
detail = "entry_bg"
file = "entry.png"
stretch = TRUE
}
image
{
function = FLAT_BOX
recolorable = TRUE
detail = "entry_bg"
file = "entry.png"
stretch = TRUE
}
#
# How to draw the focus around a widget
#
#image
#{
#function = FOCUS
#recolorable = TRUE
#overlay_file = "focus.png"
#overlay_border = { 4, 4, 4, 4 }
#overlay_stretch = TRUE
#}
#
# How to draw shadows in general
#
image
{
function = SHADOW
recolorable = TRUE
shadow = IN
file = "shadow_in.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
}
image
{
function = SHADOW
recolorable = TRUE
shadow = OUT
file = "shadow_out.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
}
image
{
function = SHADOW
recolorable = TRUE
shadow = ETCHED_IN
file = "frame_box_inset.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
}
image
{
function = SHADOW
recolorable = TRUE
shadow = ETCHED_OUT
file = "frame_box_outset.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
}
#
# How to draw shadows with a gap on one side
#
image
{
function = SHADOW_GAP
recolorable = TRUE
file = "frame_box_inset.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
gap_start_file = "frame_gap_top_start.png"
gap_start_border= { 2, 0, 0, 0 }
gap_end_file = "frame_gap_top_end.png"
gap_end_border = { 0, 2, 0, 0 }
gap_side = TOP
}
image
{
function = BOX
recolorable = TRUE
file = "notebook.png"
border = { 3, 3, 3, 3 }
stretch = TRUE
}
}
}
class "GtkWidget" style "default"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -