[gtk+] Adwaita: some more notebook work...
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: some more notebook work...
- Date: Thu, 3 Jul 2014 11:20:54 +0000 (UTC)
commit 7fa294038b8c37bbe41bd5bbd91d543b46db992f
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Thu Jul 3 13:19:11 2014 +0200
Adwaita: some more notebook work...
...to try to make tab with close buttons to look better.
gtk/resources/theme/Adwaita/_common.scss | 10 ++++++----
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 6 ++----
gtk/resources/theme/Adwaita/gtk-contained.css | 6 ++----
3 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index a98a699..5d44f4a 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -1056,6 +1056,8 @@ GtkTreeView.view.progressbar { //Progressbar in treeview cells
*/
&.reorderable-page {
&.top, &.bottom {
+ padding-left: 12px; // for a nicer close button
+ padding-right: 12px; // placement
border-left-width: 1px;
border-right-width: 1px;
}
@@ -1065,19 +1067,19 @@ GtkTreeView.view.progressbar { //Progressbar in treeview cells
}
}
&.top {
- padding-bottom: ($vt_vpadding -$tab_indicator_size);
+ //padding-bottom: ($vt_vpadding -$tab_indicator_size);
border-bottom-width: $tab_indicator_size;
}
&.bottom {
- padding-top: ($vt_vpadding -$tab_indicator_size);
+ //padding-top: ($vt_vpadding -$tab_indicator_size);
border-top-width: $tab_indicator_size;
}
&.left {
- padding-right: ($ht_hpadding -$tab_indicator_size);
+ //padding-right: ($ht_hpadding -$tab_indicator_size);
border-right-width: $tab_indicator_size;
}
&.right {
- padding-left: ($ht_hpadding -$tab_indicator_size);
+ //padding-left: ($ht_hpadding -$tab_indicator_size);
border-left-width: $tab_indicator_size;
}
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 0d50158..feb8d4d 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -1243,22 +1243,20 @@ GtkTreeView.view.progressbar {
.notebook tab.left, .notebook tab.right {
padding: 5px 20px; }
.notebook tab.reorderable-page.top, .notebook tab.reorderable-page.bottom {
+ padding-left: 12px;
+ padding-right: 12px;
border-left-width: 1px;
border-right-width: 1px; }
.notebook tab.reorderable-page.left, .notebook tab.reorderable-page.right {
border-bottom-width: 1px;
border-top-width: 1px; }
.notebook tab.top {
- padding-bottom: 5px;
border-bottom-width: 3px; }
.notebook tab.bottom {
- padding-top: 5px;
border-top-width: 3px; }
.notebook tab.left {
- padding-right: 17px;
border-right-width: 3px; }
.notebook tab.right {
- padding-left: 17px;
border-left-width: 3px; }
.notebook tab:hover, .notebook tab.prelight-page {
border-color: #1c1f1f; }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index d6df0e9..6961c23 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -1236,22 +1236,20 @@ GtkTreeView.view.progressbar {
.notebook tab.left, .notebook tab.right {
padding: 5px 20px; }
.notebook tab.reorderable-page.top, .notebook tab.reorderable-page.bottom {
+ padding-left: 12px;
+ padding-right: 12px;
border-left-width: 1px;
border-right-width: 1px; }
.notebook tab.reorderable-page.left, .notebook tab.reorderable-page.right {
border-bottom-width: 1px;
border-top-width: 1px; }
.notebook tab.top {
- padding-bottom: 5px;
border-bottom-width: 3px; }
.notebook tab.bottom {
- padding-top: 5px;
border-top-width: 3px; }
.notebook tab.left {
- padding-right: 17px;
border-right-width: 3px; }
.notebook tab.right {
- padding-left: 17px;
border-left-width: 3px; }
.notebook tab:hover, .notebook tab.prelight-page {
border-color: #a1a1a1; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]