Today it's tabs:
In the GTK world - tabbed widgets are known as
NotebooksThey are used in GIMP for the docked windows in the toolbox:
Attachment:
gimp-tabs-toolbox.png [ 11.78 KiB | Viewed 8346 times ]
But here I'm using the Filters>>Map>>Map Object dialog as it's slightly clearer:
Attachment:
gimp-tabs-map.png [ 85.91 KiB | Viewed 8346 times ]
The associated code in rc_tabs.rc:
# https://developer.gnome.org/gtk2/2.24/GtkNotebook.html
style "tabs" = "gimp-default-style"
{
xthickness = 4
ythickness = 4
GtkNotebook::tab-curvature = 2 # sets horizonal padding internal to the tab
GtkNotebook::tab-overlap = 0 # sets how much the tabs overlap
engine "pixmap"
{
image
{
function = EXTENSION
state = NORMAL
gap_side = BOTTOM
file = "/tabs/tab-top-active.png" # used for active top tab widgets for examaple in "Map to Object"
stretch = TRUE
border = { 2, 2, 2, 2}
}
image
{
function = EXTENSION
state = ACTIVE
gap_side = BOTTOM
file = "/tabs/tab-top-inactive.png" # background for inactive top tabs
stretch = TRUE
border = { 2, 2, 2, 2}
}
image
{
function = BOX_GAP
recolorable = TRUE
file = "/tabs/notebook-top.png" # background for area containing tab page
border = { 1, 1, 1, 1}
stretch = TRUE
gap_file = "/tabs/gap-top-active.png" # line under active top tab
gap_border = { 1, 1, 0, 0}
gap_start_file = "/tabs/gap-start.png" # This is the top line of the paged area to the left of the active top tab
gap_start_border = { 0, 0, 0, 0}
gap_end_file = "/tabs/gap-end.png" # This is the top line of the paged area to the right of the active top tab
gap_end_border = { 0, 0, 0, 0}
gap_side = TOP
}
# the bottom, left and right tab orientations aren't used in GIMP
image
{
function = EXTENSION
state = NORMAL
gap_side = TOP
file = "/tabs/tab-bottom-active.png" # used for active bottom tab widgets
stretch = TRUE
border = { 2, 2, 2, 2}
}
image
{
function = EXTENSION
state = ACTIVE
gap_side = TOP
file = "/tabs/tab-bottom-inactive.png" # background for inactive bottom tabs
stretch = TRUE
border = { 2, 2, 2, 2}
}
image
{
function = BOX_GAP
recolorable = TRUE
file = "/tabs/notebook-bottom.png"
border = { 1, 1, 1, 1}
stretch = TRUE
gap_file = "/tabs/gap-bottom-active.png" # line on top of active bottom tab
gap_border = { 1, 1, 0, 0}
gap_start_file = "/tabs/gap-start.png"
gap_start_border = { 0, 0, 0, 0}
gap_end_file = "/tabs/gap-end.png"
gap_end_border = { 0, 0, 0, 0}
gap_side = BOTTOM
}
image
{
function = EXTENSION
state = NORMAL
gap_side = LEFT
file = "/tabs/tab-right-active.png"
stretch = TRUE
border = { 2, 2, 2, 2}
}
image
{
function = EXTENSION
state = ACTIVE
gap_side = LEFT
file = "/tabs/tab-right-inactive.png"
stretch = TRUE
border = { 2, 2, 2, 2}
}
image
{
function = BOX_GAP
recolorable = TRUE
file = "/tabs/notebook-right.png"
border = { 1, 1, 1, 1}
stretch = TRUE
gap_file = "/tabs/gap-right-active.png"
gap_border = { 1, 1, 0, 0}
gap_start_file = "/tabs/gap-start.png"
gap_start_border = { 0, 0, 0, 0}
gap_end_file = "/tabs/gap-end.png"
gap_end_border = { 0, 0, 0, 0}
gap_side = RIGHT
}
image
{
function = EXTENSION
state = NORMAL
gap_side = RIGHT
file = "/tabs/tab-left-active.png"
stretch = TRUE
border = { 2, 2, 2, 2}
}
image
{
function = EXTENSION
state = ACTIVE
gap_side = RIGHT
file = "/tabs/tab-left-inactive.png"
stretch = TRUE
border = { 2, 2, 2, 2}
}
image
{
function = BOX_GAP
recolorable = TRUE
file = "/tabs/notebook-left.png"
border = { 1, 1, 1, 1}
stretch = TRUE
gap_file = "/tabs/gap-left-active.png"
gap_border = { 1, 1, 0, 0}
gap_start_file = "/tabs/gap-start.png"
gap_start_border = { 0, 0, 0, 0}
gap_end_file = "/tabs/gap-end.png"
gap_end_border = { 0, 0, 0, 0}
gap_side = LEFT
}
}
}
As far as I can see, only the top tab orientation is used in GIMP.
The GtkNotebook::tab-overlap = 0 controls how much the tabs overlap, and negative values will space them further apart.
Kevin
p.s. Because I learned some things preparing this I made some changes to the files, so I have attached the latest version.