modernize tabs

This commit is contained in:
Iris Lightshard 2021-06-24 09:07:21 -06:00
parent ac7ed57a69
commit 83a5516a90
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
9 changed files with 258 additions and 14 deletions

View file

@ -97,7 +97,129 @@ style "default" {
GtkProgressBar::min-horizontal-bar-height = 6 GtkProgressBar::min-horizontal-bar-height = 6
GtkProgressBar::min-vertical-bar-width = 6 GtkProgressBar::min-vertical-bar-width = 6
engine "pixmap" {
image {
function = EXTENSION
state = NORMAL
file = "../img/tab-active.png"
border = { 0,0,0,2 }
stretch = TRUE
gap_side = BOTTOM
}
image {
function = EXTENSION
file = "../img/tab-inactive.png"
border = { 0,0,0,2 }
stretch = TRUE
gap_side = BOTTOM
}
image {
function = EXTENSION
state = NORMAL
file = "../img/tab-active-180.png"
border = { 0,0,2,0 }
stretch = TRUE
gap_side = TOP
}
image {
function = EXTENSION
file = "../img/tab-inactive.png"
border = { 0,0,2,0 }
stretch = TRUE
gap_side = TOP
}
image {
function = EXTENSION
state = NORMAL
file = "../img/tab-active-90.png"
border = { 0,2,0,0 }
stretch = TRUE
gap_side = LEFT
}
image {
function = EXTENSION
file = "../img/tab-inactive-90.png"
border = { 0,2,0,0 }
stretch = TRUE
gap_side = LEFT
}
image {
function = EXTENSION
state = NORMAL
file = "../img/tab-active-279.png"
border = { 2,0,0,0 }
stretch = TRUE
gap_side = RIGHT
}
image {
function = EXTENSION
file = "../img/tab-inactive-90.png"
border = { 2,0,0,0 }
stretch = TRUE
gap_side = RIGHT
}
image {
function = BOX_GAP
detail = "notebook"
file = "../img/base.png"
border = {0,0,0,0}
stretch = TRUE
gap_file = "../img/base"
gap_border = {0,0,0,0}
gap_side = LEFT
}
image {
function = BOX_GAP
detail = "notebook"
file = "../img/base.png"
border = {0,0,0,0}
stretch = TRUE
gap_file = "../img/base"
gap_border = {0,0,0,0}
gap_side = RIGHT
}
image {
function = BOX_GAP
detail = "notebook"
file = "../img/base.png"
border = {0,0,0,0}
stretch = TRUE
gap_file = "../img/base"
gap_border = {0,0,0,0}
gap_side = TOP
}
image {
function = BOX_GAP
detail = "notebook"
file = "../img/base.png"
border = {0,0,0,0}
stretch = TRUE
gap_file = "../img/base"
gap_border = {0,0,0,0}
gap_side = BOTTOM
}
# Standalone frame
image {
function = BOX
detail = "notebook"
file = "./img/base.png"
border = {0,0,0,0}
stretch = TRUE
}
}
} }
style "button" { style "button" {
@ -322,6 +444,129 @@ style "notebook" {
fg[ACTIVE] = @black_color fg[ACTIVE] = @black_color
fg[PRELIGHT] = @black_color fg[PRELIGHT] = @black_color
bg[ACTIVE] = @darker_color # pour variantes de couleur bg[ACTIVE] = @darker_color # pour variantes de couleur
engine "pixmap" {
image {
function = EXTENSION
state = NORMAL
file = "../img/tab-active.png"
border = { 0,0,0,2 }
stretch = TRUE
gap_side = BOTTOM
}
image {
function = EXTENSION
file = "../img/tab-inactive.png"
border = { 0,0,0,2 }
stretch = TRUE
gap_side = BOTTOM
}
image {
function = EXTENSION
state = NORMAL
file = "../img/tab-active-180.png"
border = { 0,0,2,0 }
stretch = TRUE
gap_side = TOP
}
image {
function = EXTENSION
file = "../img/tab-inactive.png"
border = { 0,0,2,0 }
stretch = TRUE
gap_side = TOP
}
image {
function = EXTENSION
state = NORMAL
file = "../img/tab-active-90.png"
border = { 0,2,0,0 }
stretch = TRUE
gap_side = LEFT
}
image {
function = EXTENSION
file = "../img/tab-inactive-90.png"
border = { 0,2,0,0 }
stretch = TRUE
gap_side = LEFT
}
image {
function = EXTENSION
state = NORMAL
file = "../img/tab-active-279.png"
border = { 2,0,0,0 }
stretch = TRUE
gap_side = RIGHT
}
image {
function = EXTENSION
file = "../img/tab-inactive-90.png"
border = { 2,0,0,0 }
stretch = TRUE
gap_side = RIGHT
}
image {
function = BOX_GAP
detail = "notebook"
file = "../img/base.png"
border = {0,0,0,0}
stretch = TRUE
gap_file = "../img/base"
gap_border = {0,0,0,0}
gap_side = LEFT
}
image {
function = BOX_GAP
detail = "notebook"
file = "../img/base.png"
border = {0,0,0,0}
stretch = TRUE
gap_file = "../img/base"
gap_border = {0,0,0,0}
gap_side = RIGHT
}
image {
function = BOX_GAP
detail = "notebook"
file = "../img/base.png"
border = {0,0,0,0}
stretch = TRUE
gap_file = "../img/base"
gap_border = {0,0,0,0}
gap_side = TOP
}
image {
function = BOX_GAP
detail = "notebook"
file = "../img/base.png"
border = {0,0,0,0}
stretch = TRUE
gap_file = "../img/base"
gap_border = {0,0,0,0}
gap_side = BOTTOM
}
# Standalone frame
image {
function = BOX
detail = "notebook"
file = "./img/base.png"
border = {0,0,0,0}
stretch = TRUE
}
}
} }

View file

@ -508,19 +508,18 @@ notebook {
notebook frame { notebook frame {
background-color: @base_color; background-color: @base_color;
border-left: 1px solid @outset_lighter_color; border-left: none;
border-top: 1px solid @outset_lighter_color; border-top: none;
border-right: 1.3px solid @trueblack; border-right: none;
border-bottom: 1.3px solid @trueblack; border-bottom: none;
} }
notebook tab { notebook tab {
background-color: @darker_color; background-color: @base_color;
border: 1px solid @outset_darker_color; border-right: 0px solid @base_color;
border-right: 1px solid @trueblack; border-bottom: 2px solid @base_color;
border-bottom: 1px solid @outset_lighter_color; border-left: 0px solid @base_color;
border-left: none; border-top: 0px solid @base_color;
border-top: 1px solid @darker_color;
padding: 3px; padding: 3px;
margin: 0px; margin: 0px;
} }
@ -528,10 +527,10 @@ notebook tab {
notebook tab:checked, notebook tab:checked,
notebook tab:active { notebook tab:active {
background-color: @base_color; background-color: @base_color;
border-left: 1px solid @outset_lighter_color; border-right: 0px solid @base_color;
border-top: 1px solid @base_color; border-bottom: 2px solid @scale_color;
border-bottom: 1px solid @base_color; border-left: 0px solid @base_color;
border-right: 1px solid @trueblack; border-top: 0px solid @base_color;
} }
frame frame

BIN
img/base.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 B

BIN
img/tab-active-180.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
img/tab-active-270.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
img/tab-active-90.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
img/tab-active.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

BIN
img/tab-inactive-90.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
img/tab-inactive.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B