aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Stevens <nilix@nilfm.cc>2021-06-24 09:07:48 -0600
committerDerek Stevens <nilix@nilfm.cc>2021-06-24 09:07:48 -0600
commit5366d87b27530906e7a1b1b236015bef38d41e0e (patch)
treedc9472f52010bf3905835256c34d5ecf57a147f3
parentd81f0cf025cdb311944fdaa2c3fb895bb3040261 (diff)
parent83a5516a90884010dedd908112d0f9910453203f (diff)
Merge branch 'tabs'
-rw-r--r--gtk-2.0/gtkrc245
-rwxr-xr-xgtk-3.0/gtk.css27
-rw-r--r--img/base.pngbin0 -> 546 bytes
-rw-r--r--img/tab-active-180.pngbin0 -> 5366 bytes
-rw-r--r--img/tab-active-270.pngbin0 -> 5350 bytes
-rw-r--r--img/tab-active-90.pngbin0 -> 5361 bytes
-rw-r--r--img/tab-active.pngbin0 -> 560 bytes
-rw-r--r--img/tab-inactive-90.pngbin0 -> 5337 bytes
-rw-r--r--img/tab-inactive.pngbin0 -> 553 bytes
9 files changed, 258 insertions, 14 deletions
diff --git a/gtk-2.0/gtkrc b/gtk-2.0/gtkrc
index faee811..e7a5aed 100644
--- a/gtk-2.0/gtkrc
+++ b/gtk-2.0/gtkrc
@@ -97,7 +97,129 @@ style "default" {
GtkProgressBar::min-horizontal-bar-height = 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" {
@@ -322,6 +444,129 @@ style "notebook" {
fg[ACTIVE] = @black_color
fg[PRELIGHT] = @black_color
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
+ }
+}
}
diff --git a/gtk-3.0/gtk.css b/gtk-3.0/gtk.css
index a0c7f55..d1ecfe3 100755
--- a/gtk-3.0/gtk.css
+++ b/gtk-3.0/gtk.css
@@ -508,19 +508,18 @@ notebook {
notebook frame {
background-color: @base_color;
- border-left: 1px solid @outset_lighter_color;
- border-top: 1px solid @outset_lighter_color;
- border-right: 1.3px solid @trueblack;
- border-bottom: 1.3px solid @trueblack;
+ border-left: none;
+ border-top: none;
+ border-right: none;
+ border-bottom: none;
}
notebook tab {
- background-color: @darker_color;
- border: 1px solid @outset_darker_color;
- border-right: 1px solid @trueblack;
- border-bottom: 1px solid @outset_lighter_color;
- border-left: none;
- border-top: 1px solid @darker_color;
+ background-color: @base_color;
+ border-right: 0px solid @base_color;
+ border-bottom: 2px solid @base_color;
+ border-left: 0px solid @base_color;
+ border-top: 0px solid @base_color;
padding: 3px;
margin: 0px;
}
@@ -528,10 +527,10 @@ notebook tab {
notebook tab:checked,
notebook tab:active {
background-color: @base_color;
- border-left: 1px solid @outset_lighter_color;
- border-top: 1px solid @base_color;
- border-bottom: 1px solid @base_color;
- border-right: 1px solid @trueblack;
+ border-right: 0px solid @base_color;
+ border-bottom: 2px solid @scale_color;
+ border-left: 0px solid @base_color;
+ border-top: 0px solid @base_color;
}
frame
diff --git a/img/base.png b/img/base.png
new file mode 100644
index 0000000..5ebc1e2
--- /dev/null
+++ b/img/base.png
Binary files differ
diff --git a/img/tab-active-180.png b/img/tab-active-180.png
new file mode 100644
index 0000000..38e16ba
--- /dev/null
+++ b/img/tab-active-180.png
Binary files differ
diff --git a/img/tab-active-270.png b/img/tab-active-270.png
new file mode 100644
index 0000000..f576884
--- /dev/null
+++ b/img/tab-active-270.png
Binary files differ
diff --git a/img/tab-active-90.png b/img/tab-active-90.png
new file mode 100644
index 0000000..88cac08
--- /dev/null
+++ b/img/tab-active-90.png
Binary files differ
diff --git a/img/tab-active.png b/img/tab-active.png
new file mode 100644
index 0000000..e9476d6
--- /dev/null
+++ b/img/tab-active.png
Binary files differ
diff --git a/img/tab-inactive-90.png b/img/tab-inactive-90.png
new file mode 100644
index 0000000..68bf6b9
--- /dev/null
+++ b/img/tab-inactive-90.png
Binary files differ
diff --git a/img/tab-inactive.png b/img/tab-inactive.png
new file mode 100644
index 0000000..a4c90e9
--- /dev/null
+++ b/img/tab-inactive.png
Binary files differ