[longomatch] Customize notebooks
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Customize notebooks
- Date: Wed, 24 Sep 2014 20:12:41 +0000 (UTC)
commit 052fae25460710cb12fff90485ee3abaf66d7cc2
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Aug 22 15:05:34 2014 +0200
Customize notebooks
data/theme/gtk-2.0/Tabs/notebook-gap-horiz.png | Bin 0 -> 141 bytes
data/theme/gtk-2.0/Tabs/notebook-gap-vert.png | Bin 0 -> 139 bytes
data/theme/gtk-2.0/Tabs/notebook.png | Bin 0 -> 156 bytes
data/theme/gtk-2.0/Tabs/tab-bottom-active.png | Bin 0 -> 202 bytes
data/theme/gtk-2.0/Tabs/tab-bottom.png | Bin 0 -> 192 bytes
.../theme/gtk-2.0/Tabs/tab-left-active (copia).png | Bin 0 -> 1039 bytes
data/theme/gtk-2.0/Tabs/tab-left-active.png | Bin 0 -> 1039 bytes
data/theme/gtk-2.0/Tabs/tab-left.png | Bin 0 -> 1035 bytes
data/theme/gtk-2.0/Tabs/tab-right-active.png | Bin 0 -> 214 bytes
data/theme/gtk-2.0/Tabs/tab-right.png | Bin 0 -> 211 bytes
data/theme/gtk-2.0/Tabs/tab-top-active.png | Bin 0 -> 211 bytes
data/theme/gtk-2.0/Tabs/tab-top.png | Bin 0 -> 204 bytes
data/theme/gtk-2.0/gtkrc | 7 +
data/theme/gtk-2.0/notebook.rc | 139 ++++++++++++++++++++
14 files changed, 146 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gtk-2.0/Tabs/notebook-gap-horiz.png b/data/theme/gtk-2.0/Tabs/notebook-gap-horiz.png
new file mode 100644
index 0000000..683087f
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/notebook-gap-horiz.png differ
diff --git a/data/theme/gtk-2.0/Tabs/notebook-gap-vert.png b/data/theme/gtk-2.0/Tabs/notebook-gap-vert.png
new file mode 100644
index 0000000..c4e1c5f
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/notebook-gap-vert.png differ
diff --git a/data/theme/gtk-2.0/Tabs/notebook.png b/data/theme/gtk-2.0/Tabs/notebook.png
new file mode 100644
index 0000000..65c628e
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/notebook.png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-bottom-active.png b/data/theme/gtk-2.0/Tabs/tab-bottom-active.png
new file mode 100644
index 0000000..434afa4
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-bottom-active.png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-bottom.png b/data/theme/gtk-2.0/Tabs/tab-bottom.png
new file mode 100644
index 0000000..0696de6
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-bottom.png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-left-active (copia).png b/data/theme/gtk-2.0/Tabs/tab-left-active
(copia).png
new file mode 100644
index 0000000..f2a04da
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-left-active (copia).png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-left-active.png b/data/theme/gtk-2.0/Tabs/tab-left-active.png
new file mode 100644
index 0000000..f2a04da
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-left-active.png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-left.png b/data/theme/gtk-2.0/Tabs/tab-left.png
new file mode 100644
index 0000000..cec8fe7
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-left.png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-right-active.png b/data/theme/gtk-2.0/Tabs/tab-right-active.png
new file mode 100644
index 0000000..25b1a71
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-right-active.png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-right.png b/data/theme/gtk-2.0/Tabs/tab-right.png
new file mode 100644
index 0000000..5e29d14
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-right.png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-top-active.png b/data/theme/gtk-2.0/Tabs/tab-top-active.png
new file mode 100644
index 0000000..7bc6d49
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-top-active.png differ
diff --git a/data/theme/gtk-2.0/Tabs/tab-top.png b/data/theme/gtk-2.0/Tabs/tab-top.png
new file mode 100644
index 0000000..26bffec
Binary files /dev/null and b/data/theme/gtk-2.0/Tabs/tab-top.png differ
diff --git a/data/theme/gtk-2.0/gtkrc b/data/theme/gtk-2.0/gtkrc
index b1529c8..5330bcb 100644
--- a/data/theme/gtk-2.0/gtkrc
+++ b/data/theme/gtk-2.0/gtkrc
@@ -265,6 +265,8 @@ style "longomatch-combobox" {
}
include "buttons.rc"
+include "notebook.rc"
+
class "GtkWidget" style "longomatch-default"
class "GtkEntry" style "longomatch-entry"
@@ -278,6 +280,11 @@ widget_class "*<GtkComboBox>" style "longomatch-combobox"
#widget_class "*<GtkComboBox>*<GtkButton>" style "longomatch-combobox-button"
#widget_class "*<GtkComboBox>*<GtkEntry>" style "longomatch-combobox-entry"
+
+class "GtkNotebook" style "longomatch-notebook"
+widget_class "*<GtkNotebook>*<GtkLabel>" style "longomatch-notebook-tab-label"
+
+
widget "*editorbuttonbar.*" style "longomatch-editor"
widget "*dashboardeditorvbox.*.drawingarea" style "longomatch-drawingarea"
widget "*roundedbutton*" style "longomatch-rounded-button"
diff --git a/data/theme/gtk-2.0/notebook.rc b/data/theme/gtk-2.0/notebook.rc
new file mode 100644
index 0000000..0d9d1ba
--- /dev/null
+++ b/data/theme/gtk-2.0/notebook.rc
@@ -0,0 +1,139 @@
+style "longomatch-notebook-tab-label"
+{
+ fg[NORMAL] = @text_color
+ fg[ACTIVE] = @base_color
+}
+
+style "longomatch-notebook"
+{
+
+ xthickness = 3
+ ythickness = 2
+
+ bg[NORMAL] = @active_color
+ bg[ACTIVE] = @active_color
+ engine "pixmap"
+ {
+ image
+ {
+ function = EXTENSION
+ state = ACTIVE
+ file = "Tabs/tab-bottom.png"
+ border = { 3,3,3,3 }
+ stretch = TRUE
+ gap_side = TOP
+ }
+ image
+ {
+ function = EXTENSION
+ state = ACTIVE
+ file = "Tabs/tab-top.png"
+ border = { 3,3,3,3 }
+ stretch = TRUE
+ gap_side = BOTTOM
+ }
+ image
+ {
+ function = EXTENSION
+ state = ACTIVE
+ file = "Tabs/tab-left.png"
+ border = { 3,3,3,3 }
+ stretch = TRUE
+ gap_side = RIGHT
+ }
+ image
+ {
+ function = EXTENSION
+ state = ACTIVE
+ file = "Tabs/tab-right.png"
+ border = { 3,3,3,3 }
+ stretch = TRUE
+ gap_side = LEFT
+ }
+ image
+ {
+ function = EXTENSION
+ file = "Tabs/tab-top-active.png"
+ border = { 3,3,3,3 }
+ stretch = TRUE
+ gap_side = BOTTOM
+ }
+ image
+ {
+ function = EXTENSION
+ file = "Tabs/tab-bottom-active.png"
+ border = { 3,3,3,3 }
+ stretch = TRUE
+ gap_side = TOP
+ }
+ image
+ {
+ function = EXTENSION
+ file = "Tabs/tab-left-active.png"
+ border = { 3,3,3,3 }
+ stretch = TRUE
+ gap_side = RIGHT
+ }
+ image
+ {
+ function = EXTENSION
+ file = "Tabs/tab-right-active.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
+ file = "Tabs/notebook.png"
+ border = { 4, 4, 4, 4 }
+ stretch = TRUE
+ gap_file = "Tabs/notebook-gap-horiz.png"
+ gap_border = { 1, 1, 0, 0 }
+ gap_side = TOP
+ }
+ image
+ {
+ function = BOX_GAP
+ file = "Tabs/notebook.png"
+ border = { 4, 4, 4, 4 }
+ stretch = TRUE
+ gap_file = "Tabs/notebook-gap-horiz.png"
+ gap_border = { 1, 1, 0, 0 }
+ gap_side = BOTTOM
+ }
+ image
+ {
+ function = BOX_GAP
+ file = "Tabs/notebook.png"
+ border = { 4, 4, 4, 4 }
+ stretch = TRUE
+ gap_file = "Tabs/notebook-gap-vert.png"
+ gap_border = { 0, 0, 1, 1 }
+ gap_side = LEFT
+ }
+ image
+ {
+ function = BOX_GAP
+ file = "Tabs/notebook.png"
+ border = { 4, 4, 4, 4 }
+ stretch = TRUE
+ gap_file = "Tabs/notebook-gap-vert.png"
+ gap_border = { 0, 0, 1, 1 }
+ gap_side = RIGHT
+ }
+
+# How to draw the box of a notebook when it isnt attached to a tab
+
+ image
+ {
+ function = BOX
+ file = "Tabs/notebook.png"
+ border = { 4, 4, 4, 4 }
+ stretch = TRUE
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]