Fix notebook styling and arrow color

pull/145/head
Satyajit Sahoo 2014-02-21 05:32:30 +05:30
parent cccaccc726
commit f4401161e8
1 changed files with 65 additions and 25 deletions

View File

@ -3,8 +3,6 @@
/* default */ /* default */
* { * {
background-clip: padding-box;
-GtkArrow-arrow-scaling: 0.5; -GtkArrow-arrow-scaling: 0.5;
-GtkButton-child-displacement-x: 0; -GtkButton-child-displacement-x: 0;
-GtkButton-child-displacement-y: 0; -GtkButton-child-displacement-y: 0;
@ -19,7 +17,6 @@
-GtkIMHtml-hyperlink-color: @link_color; -GtkIMHtml-hyperlink-color: @link_color;
-GtkMenu-horizontal-padding: 0; -GtkMenu-horizontal-padding: 0;
-GtkMenu-vertical-padding: 0; -GtkMenu-vertical-padding: 0;
-GtkNotebook-initial-gap: 0;
-GtkPaned-handle-size: 4; -GtkPaned-handle-size: 4;
-GtkProgressBar-min-horizontal-bar-height: 12; -GtkProgressBar-min-horizontal-bar-height: 12;
-GtkProgressBar-min-vertical-bar-width: 12; -GtkProgressBar-min-vertical-bar-width: 12;
@ -45,6 +42,8 @@
-GtkWindow-resize-grip-width: 0; -GtkWindow-resize-grip-width: 0;
-WnckTasklist-fade-overlay-rect: 0; -WnckTasklist-fade-overlay-rect: 0;
background-clip: padding-box;
outline-color: alpha(@theme_selected_bg_color, 0.5); outline-color: alpha(@theme_selected_bg_color, 0.5);
outline-style: solid; outline-style: solid;
outline-offset: 0; outline-offset: 0;
@ -128,11 +127,20 @@ GtkClutterOffscreen {
transition: border 100ms ease-in; transition: border 100ms ease-in;
} }
.notebook tab GtkLabel,
.notebook .prelight-page,
.notebook .prelight-page GtkLabel,
.notebook .active-page,
.notebook .active-page GtkLabel {
transition: all 200ms ease-in;
}
/* inset shadows */ /* inset shadows */
.button:active, .button:active,
.primary-toolbar .button:active, .primary-toolbar .button:active,
.toolbar .button:active, .toolbar .button:active,
.header-bar .button:active { .header-bar .button:active,
.notebook.header {
box-shadow: inset 1px 0 alpha(@dark_shadow, 0.07), box-shadow: inset 1px 0 alpha(@dark_shadow, 0.07),
inset 0 1px alpha(@dark_shadow, 0.08), inset 0 1px alpha(@dark_shadow, 0.08),
inset -1px 0 alpha(@dark_shadow, 0.07), inset -1px 0 alpha(@dark_shadow, 0.07),
@ -856,7 +864,7 @@ GtkInfoBar {
} }
.arrow { .arrow {
color: alpha(@theme_fg_color, 0.7); color: alpha(currentColor, 0.7);
} }
/******** /********
@ -1003,10 +1011,6 @@ GtkTreeMenu .menuitem {
background-color: transparent; background-color: transparent;
} }
.menuitem.arrow {
color: alpha(@menu_fg_color, 0.6);
}
.menuitem GtkCalendar:inconsistent { .menuitem GtkCalendar:inconsistent {
color: mix(@menu_fg_color, @menu_bg_color, 0.5); color: mix(@menu_fg_color, @menu_bg_color, 0.5);
} }
@ -1050,13 +1054,16 @@ GtkModelMenuItem GtkBox GtkImage {
************/ ************/
.notebook { .notebook {
padding: 0; padding: 0;
border-width: 1px; border-width: 1px 0 0 0;
border-style: solid; border-style: solid;
border-color: shade(@theme_base_color, 0.7); border-color: shade(@theme_base_color, 0.7);
border-radius: 0; border-radius: 0;
background-color: @theme_base_color; background-color: @theme_base_color;
background-image: none; background-image: none;
background-clip: border-box; background-clip: border-box;
-GtkNotebook-initial-gap: 0;
-GtkNotebook-has-tab-gap: false;
} }
.notebook.frame { .notebook.frame {
@ -1095,47 +1102,59 @@ GtkModelMenuItem GtkBox GtkImage {
} }
.notebook tab { .notebook tab {
padding: 4px; padding: 4px 6px;
border-style: none; border-style: solid;
background-color: shade(@theme_base_color, 0.85); border-width: 1px;
background-image: none; border-color: transparent;
} background-color: transparent;
.notebook tab:hover {
background-color: shade(@theme_base_color, 0.95);
background-image: none; background-image: none;
} }
.notebook tab:active { .notebook tab:active {
background-color: shade(@theme_base_color, 0.85); background-color: transparent;
background-image: none; background-image: none;
} }
.notebook tab.top { .notebook tab.top {
border-bottom-width: 2px;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
} }
.notebook tab.top:hover {
border-bottom-color: alpha(@theme_selected_bg_color, 0.3);
}
.notebook tab.top:active { .notebook tab.top:active {
box-shadow:inset 0 -2px @theme_selected_bg_color; border-bottom-color: @theme_selected_bg_color;
} }
.notebook tab.right { .notebook tab.right {
border-left-width: 2px;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-top-left-radius: 0; border-top-left-radius: 0;
} }
.notebook tab.right:hover {
border-left-color: alpha(@theme_selected_bg_color, 0.3);
}
.notebook tab.right:active { .notebook tab.right:active {
box-shadow:inset 2px 0 @theme_selected_bg_color; border-left-color: @theme_selected_bg_color;
} }
.notebook tab.bottom { .notebook tab.bottom {
border-top-width: 2px;
border-top-right-radius: 0; border-top-right-radius: 0;
border-top-left-radius: 0; border-top-left-radius: 0;
} }
.notebook tab.bottom:hover {
border-top-color: alpha(@theme_selected_bg_color, 0.3);
}
.notebook tab.bottom:active { .notebook tab.bottom:active {
box-shadow:inset 0 2px @theme_selected_bg_color; border-top-color: @theme_selected_bg_color;
} }
.notebook tab.left { .notebook tab.left {
@ -1143,19 +1162,40 @@ GtkModelMenuItem GtkBox GtkImage {
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
} }
.notebook tab.left:hover {
border-right-color: alpha(@theme_selected_bg_color, 0.3);
}
.notebook tab.left:active { .notebook tab.left:active {
box-shadow:inset -2px 0 @theme_selected_bg_color; border-right-color: @theme_selected_bg_color;
} }
.notebook tab GtkLabel { .notebook tab GtkLabel {
color: mix(@theme_text_color, @theme_base_color, 0.3); color: mix(@theme_text_color, @theme_base_color, 0.3);
} }
.notebook .prelight-page,
.notebook .prelight-page GtkLabel {
color: mix (@theme_text_color, @theme_base_color, 0.15);
}
.notebook .active-page, .notebook .active-page,
.notebook tab .active-page GtkLabel { .notebook .active-page GtkLabel {
color: @theme_text_color; color: @theme_text_color;
} }
.notebook tab.reorderable-page:hover {
background-color: shade(@theme_base_color, 0.85);
border-left: 1px solid shade(@theme_base_color, 0.7);
border-right: 1px solid shade(@theme_base_color, 0.7);
}
.notebook tab.reorderable-page:active {
background-color: shade(@theme_base_color, 0.90);
border-left: 1px solid shade(@theme_base_color, 0.75);
border-right: 1px solid shade(@theme_base_color, 0.75);
}
/* close button styling */ /* close button styling */
.notebook tab .button, .notebook tab .button,
.notebook tab .button:active, .notebook tab .button:active,
@ -2820,7 +2860,7 @@ GtkViewport.frame {
border-color: shade(@theme_bg_color, 0.8); border-color: shade(@theme_bg_color, 0.8);
background-color: @theme_bg_color; background-color: @theme_bg_color;
background-image: none; background-image: none;
color: @theme_bg_color; color: @theme_fg_color;
} }
.action-bar .button.text-button { .action-bar .button.text-button {