From c637d4d1da9ab34b9835a14e74f5a833c8260622 Mon Sep 17 00:00:00 2001 From: Khurshid Alam Date: Tue, 16 Feb 2016 21:35:34 +0530 Subject: [PATCH] Restore missing gnome-terminal decoration in sass During redesign terminal decoration was removed which left terminal with light background color. This restores terminal with dark background color & other minor tweaks. These tweaks needs to be modified again for GTK >=3.19.3, but for now it works. --- gtk-3.0/scss/_colors.scss | 1 + gtk-3.0/scss/_global.scss | 3 +- gtk-3.0/scss/_widgets.scss | 1 + gtk-3.0/scss/apps/_gnome-terminal.scss | 56 ++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 gtk-3.0/scss/apps/_gnome-terminal.scss diff --git a/gtk-3.0/scss/_colors.scss b/gtk-3.0/scss/_colors.scss index 86dd590..cdd7499 100755 --- a/gtk-3.0/scss/_colors.scss +++ b/gtk-3.0/scss/_colors.scss @@ -45,6 +45,7 @@ @define-color panel_fg_color @dark_fg_color; /* osd */ +@define-color osd_base #{"" + $osd_base}; @define-color osd_bg #{"" + $osd_bg}; @define-color osd_fg #{"" + $osd_fg}; diff --git a/gtk-3.0/scss/_global.scss b/gtk-3.0/scss/_global.scss index faad1ad..38ca3d6 100755 --- a/gtk-3.0/scss/_global.scss +++ b/gtk-3.0/scss/_global.scss @@ -53,8 +53,9 @@ $menubar_fg_color: $dark_fg_color; $panel_bg_color: $dark_bg_color; $panel_fg_color: $dark_fg_color; -$osd_bg: $dark_bg_color; +$osd_base: $dark_bg_color; $osd_fg: $dark_fg_color; +$osd_bg: alpha($osd_base, 0.8); $lightdm_bg_color: $dark_bg_color; $lightdm_fg_color: $dark_fg_color; diff --git a/gtk-3.0/scss/_widgets.scss b/gtk-3.0/scss/_widgets.scss index e8ac3b8..db51b05 100755 --- a/gtk-3.0/scss/_widgets.scss +++ b/gtk-3.0/scss/_widgets.scss @@ -34,3 +34,4 @@ @import "apps/xfce"; @import "apps/unity"; @import "apps/lightdm"; +@import "apps/gnome-terminal"; diff --git a/gtk-3.0/scss/apps/_gnome-terminal.scss b/gtk-3.0/scss/apps/_gnome-terminal.scss new file mode 100644 index 0000000..8d51d3f --- /dev/null +++ b/gtk-3.0/scss/apps/_gnome-terminal.scss @@ -0,0 +1,56 @@ +/********************** + ! Genome Terminal * +***********************/ + +@include exports("gnome-terminal") { + VteTerminal { + background-color: $osd_base; + color: $osd_fg; + } + TerminalWindow { + .scrollbars-junction { + background-color: $osd_base; + } + .scrollbar { + &.trough { + background-color: $osd_base; + } + &.button { + color: shade($osd_base, 0.6); + &:active { + color: shade($osd_base, 0.6); + &:hover { + color: shade($osd_base, 0.6); + } + } + } + &.slider { + border-color: mix(shade($osd_base, 0.87), $osd_fg, 0.21); + background-color: mix($osd_base, $osd_fg, 0.21); + &:hover { + border-color: mix(shade($osd_base, 0.87), $osd_fg, 0.31); + background-color: mix($osd_base, $osd_fg, 0.31); + } + &.vertical { + &:hover { + border-color: mix(shade($osd_base, 0.87), $osd_fg, 0.31); + background-color: mix($osd_base, $osd_fg, 0.31); + } + &:active { + border-color: shade($selected_bg_color, 0.9); + background-color: $selected_bg_color; + } + } + &:active { + border-color: shade($selected_bg_color, 0.9); + background-color: $selected_bg_color; + } + } + } + GtkNotebook.notebook { + border-right-width: 0; + border-bottom-width: 0; + border-left-width: 0; + } + } +}