Adapted to latest GTK changes

pull/144/head
Satyajit Sahoo 2014-05-14 21:54:17 +05:30
parent ea635773a7
commit fd51af7345
2 changed files with 115 additions and 23 deletions

View File

@ -230,6 +230,10 @@ GeditWindow .pane-separator:hover {
color: @theme_selected_fg_color; color: @theme_selected_fg_color;
} }
.gedit-document-panel .list-row {
padding: 4px;
}
.gedit-document-panel .list-row .button { .gedit-document-panel .list-row .button {
padding: 1px; padding: 1px;
border-image: none; border-image: none;
@ -245,19 +249,31 @@ GeditWindow .pane-separator:hover {
.gedit-document-panel .prelight-row .button { .gedit-document-panel .prelight-row .button {
border-color: alpha(black, 0.1); border-color: alpha(black, 0.1);
color: mix(@theme_text_color, @theme_base_color, 0.5); color: alpha(white, 0.8);
} }
.gedit-document-panel .list-row .button:hover, .gedit-document-panel .list-row .button:hover,
.gedit-document-panel .prelight-row .button:hover { .gedit-document-panel .prelight-row .button:hover {
color: @theme_text_color;
border-color: alpha(black, 0.1); border-color: alpha(black, 0.1);
color: white;
} }
.gedit-document-panel .prelight-row .button:active { .gedit-document-panel .prelight-row .button:active {
color: @theme_text_color;
background-color: alpha(black, 0.08);
border-color: alpha(black, 0.2); border-color: alpha(black, 0.2);
background-color: alpha(black, 0.08);
color: white;
}
.gedit-document-panel-dragged-row {
border: 1px solid alpha(black, 0.1);
background-color: alpha(black, 0.5);
color: white;
}
.gedit-document-panel-placeholder-row {
border: none;
background-color: alpha(black, 0.08);
transition: all 200ms ease-in;
} }
GeditStatusbar { GeditStatusbar {

View File

@ -36,19 +36,25 @@
-GtkToolButton-icon-spacing: 6; -GtkToolButton-icon-spacing: 6;
-GtkToolItemGroup-expander-size: 8; -GtkToolItemGroup-expander-size: 8;
-GtkTreeView-expander-size: 8; -GtkTreeView-expander-size: 8;
-GtkWidget-focus-line-width: 1;
-GtkWidget-focus-padding: 0;
-GtkWidget-link-color: @link_color; -GtkWidget-link-color: @link_color;
-GtkWidget-visited-link-color: @link_color; -GtkWidget-visited-link-color: @link_color;
-GtkWindow-resize-grip-height: 0; -GtkWindow-resize-grip-height: 0;
-GtkWindow-resize-grip-width: 0; -GtkWindow-resize-grip-width: 0;
-WnckTasklist-fade-overlay-rect: 0; -WnckTasklist-fade-overlay-rect: 0;
/* Legacy only */
-GtkWidget-focus-line-width: 1;
-GtkWidget-focus-padding: 0;
background-clip: padding-box; 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: dashed;
outline-offset: 0; outline-width: 1px;
outline-offset: -2px;
outline-radius: 2px;
*/
} }
/*************** /***************
@ -59,6 +65,11 @@
color: @theme_fg_color; color: @theme_fg_color;
} }
.background:backdrop {
text-shadow: none;
icon-shadow: none;
}
*:selected, *:selected,
*:selected:focus { *:selected:focus {
background-color: @theme_selected_bg_color; background-color: @theme_selected_bg_color;
@ -308,6 +319,11 @@ GtkCheckButton:selected:focus {
background-color: transparent; background-color: transparent;
} }
GtkCheckButton {
outline-offset: 0;
padding: 3px;
}
/***************** /*****************
* column-header * * column-header *
*****************/ *****************/
@ -344,6 +360,11 @@ column-header:last-child .button {
/**************** /****************
* content view * * content view *
****************/ ****************/
.content-view.subtitle {
font: smaller;
padding: 0 12px;
}
.content-view.view { .content-view.view {
background-color: @theme_base_color; background-color: @theme_base_color;
} }
@ -408,6 +429,7 @@ GtkHTML {
************/ ************/
GtkCalendar { GtkCalendar {
padding: 4px; padding: 4px;
outline-offset: -1px;
} }
GtkCalendar:inconsistent { GtkCalendar:inconsistent {
@ -501,7 +523,12 @@ GtkComboBox.combobox-entry .button:insensitive {
/************ /************
* expander * * expander *
************/ ************/
GtkExpander {
padding: 3px;
outline-offset: 1px;
}
.expander { .expander {
color: alpha(currentColor, 0.7); color: alpha(currentColor, 0.7);
border: alpha(currentColor, 0.7); border: alpha(currentColor, 0.7);
@ -525,6 +552,10 @@ GtkComboBox.combobox-entry .button:insensitive {
color: @theme_fg_color; color: @theme_fg_color;
} }
.list-row {
padding: 3px;
}
.list-row:hover { .list-row:hover {
background-color: shade(@theme_bg_color, 1.02); background-color: shade(@theme_bg_color, 1.02);
} }
@ -534,6 +565,14 @@ GtkComboBox.combobox-entry .button:insensitive {
color: @theme_selected_fg_color; color: @theme_selected_fg_color;
} }
/**************
* flow boxes *
**************/
.grid-child {
padding: 3px;
}
/********* /*********
* frame * * frame *
*********/ *********/
@ -894,6 +933,7 @@ GtkTreeMenu.menu,
GtkMenuToolButton.menu, GtkMenuToolButton.menu,
GtkComboBox .menu { GtkComboBox .menu {
background-color: @menu_bg_color; background-color: @menu_bg_color;
margin: 3px;
} }
.primary-toolbar .menu, .primary-toolbar .menu,
@ -1085,6 +1125,10 @@ GtkPopover {
box-shadow: 0 2px 3px alpha(black, 0.5); box-shadow: 0 2px 3px alpha(black, 0.5);
} }
GtkPopover:backdrop {
box-shadow: none;
}
GtkPopover.osd { GtkPopover.osd {
box-shadow: 0 2px 7px 3px alpha(black, 0.5); box-shadow: 0 2px 7px 3px alpha(black, 0.5);
} }
@ -1110,10 +1154,14 @@ GtkPopover .separator {
font-weight: bold; font-weight: bold;
} }
GtkModelButton.button, .menuitem.button {
GtkModelButton.button:active, color: @theme_fg_color;
GtkModelButton.button:insensitive, }
GtkModelButton.button:active:insensitive {
.menuitem.button,
.menuitem.button:active,
.menuitem.button:insensitive,
.menuitem.button:active:insensitive {
background-color: transparent; background-color: transparent;
background-image: none; background-image: none;
border-color: transparent; border-color: transparent;
@ -1122,9 +1170,9 @@ GtkModelButton.button:active:insensitive {
color: @theme_fg_color; color: @theme_fg_color;
} }
GtkModelButton.button:active:hover, .menuitem.button:active:hover,
GtkModelButton.button:hover, .menuitem.button:hover,
GtkModelButton.button:selected { .menuitem.button:selected {
border-width: 0; border-width: 0;
border-color: transparent; border-color: transparent;
background-color: @theme_selected_bg_color; background-color: @theme_selected_bg_color;
@ -1145,7 +1193,10 @@ GtkModelButton.button:selected {
background-image: none; background-image: none;
background-clip: border-box; background-clip: border-box;
-GtkNotebook-initial-gap: 0; -GtkNotebook-initial-gap: 10;
-GtkNotebook-arrow-spacing: 5;
-GtkNotebook-tab-curvature: 0;
-GtkNotebook-tab-overlap: 1;
-GtkNotebook-has-tab-gap: false; -GtkNotebook-has-tab-gap: false;
} }
@ -1270,14 +1321,19 @@ GtkModelButton.button:selected {
.notebook tab.reorderable-page:hover { .notebook tab.reorderable-page:hover {
background-color: shade(@theme_base_color, 0.85); background-color: shade(@theme_base_color, 0.85);
border-left: 1px solid shade(@theme_base_color, 0.7); border-left: 0;
border-right: 1px solid shade(@theme_base_color, 0.7); border-right: 0;
/* using box shadows instead of borders due to slanted edges */
box-shadow: inset 0 3px alpha(black, 0.03), inset 0 2px alpha(black, 0.03), inset 0 1px alpha(black, 0.03),
inset 1px 0 shade(@theme_base_color, 0.7), inset -1px 0 shade(@theme_base_color, 0.7);
} }
.notebook tab.reorderable-page:active { .notebook tab.reorderable-page:active {
background-color: shade(@theme_base_color, 0.90); background-color: shade(@theme_base_color, 0.90);
border-left: 1px solid shade(@theme_base_color, 0.75); border-left: 0;
border-right: 1px solid shade(@theme_base_color, 0.75); border-right: 0;
box-shadow: inset 0 3px alpha(black, 0.03), inset 0 2px alpha(black, 0.03), inset 0 1px alpha(black, 0.03),
inset 1px 0 shade(@theme_base_color, 0.75), inset -1px 0 shade(@theme_base_color, 0.75);
} }
/* close button styling */ /* close button styling */
@ -1320,6 +1376,8 @@ GtkProgressBar {
padding: 0; padding: 0;
border-width: 1px; border-width: 1px;
border-radius: 2px; border-radius: 2px;
font-size: smaller;
color: alpha(@theme_fg_color, 0.6);
} }
.progressbar, .progressbar,
@ -1451,6 +1509,7 @@ GtkLevelBar.vertical {
padding: 0; padding: 0;
border-width: 1px; border-width: 1px;
border-radius: 2px; border-radius: 2px;
outline-offset: -1px;
} }
.scale.slider { .scale.slider {
@ -1926,6 +1985,7 @@ GtkSwitch {
padding: 0; padding: 0;
border-radius: 2px; border-radius: 2px;
font: bold condensed; font: bold condensed;
outline-offset: -4px;
} }
GtkSwitch.slider { GtkSwitch.slider {
@ -2895,8 +2955,8 @@ GtkColorButton.button {
************/ ************/
GtkTreeView { GtkTreeView {
-GtkTreeView-vertical-separator: 0; -GtkTreeView-vertical-separator: 0;
-GtkWidget-focus-line-width: 1;
-GtkWidget-focus-padding: 1; outline-offset: -1px;
} }
GtkTreeView.dnd { GtkTreeView.dnd {
@ -3013,6 +3073,22 @@ GtkFileChooserButton GtkImage:last-child {
color: alpha(currentColor, 0.7); color: alpha(currentColor, 0.7);
} }
GtkFileChooser .pane-separator,
GtkFileChooser .pane-separator:hover {
border-width: 0 1px 0 0;
border-style: solid;
border-color: shade(@theme_bg_color, 0.8);
background-color: @theme_bg_color;
color: shade(@theme_bg_color, 0.9);
}
/* for fallback when header bar not used */
GtkFileChooser .dialog-action-box {
border-width: 1px 0 0;
border-style: solid;
border-color: shade(@theme_bg_color, 0.7);
}
/********************* /*********************
* app notifications * * app notifications *
*********************/ *********************/