From 42297dde59fc4420eb5fe0156e3051d2b55b5a0f Mon Sep 17 00:00:00 2001 From: Horst3180 Date: Thu, 16 Jul 2015 21:15:41 +0200 Subject: fixes for GtkFileChooser --- common/gtk-3.0/3.14/_transparent_widgets.scss | 65 ++++++++++++++------------- 1 file changed, 33 insertions(+), 32 deletions(-) (limited to 'common/gtk-3.0/3.14/_transparent_widgets.scss') diff --git a/common/gtk-3.0/3.14/_transparent_widgets.scss b/common/gtk-3.0/3.14/_transparent_widgets.scss index 4d3e220..f288172 100644 --- a/common/gtk-3.0/3.14/_transparent_widgets.scss +++ b/common/gtk-3.0/3.14/_transparent_widgets.scss @@ -2,8 +2,6 @@ color: $header_border; //fixes separator in gnome-tweak-tool } -GtkFileChooserDialog .dialog-action-box { background-color: $bg_color } // fix for non gnome environments - NemoWindow GtkEventBox { background-color: $bg_color; } // fixes nemo statusbar GtkFileChooserDialog *, @@ -85,8 +83,33 @@ MarlinViewWindow { .pane-separator { background-color: $dark_sidebar_border; } } -// Yeah, this is ugly, but prevents a transparent background in the image preview box -GtkFileChooserDialog GtkPaned > .vertical > .horizontal { background-color: $bg_color; } +GtkFileChooserDialog { + + &.background.csd { background-color: $dark_sidebar_bg } + .sidebar { background-color: transparent } + + // Yeah, this is ugly, but prevents a transparent background in the image preview box + GtkPaned > .vertical > .horizontal { background-color: $bg_color; } + + // fix for non gnome environments + .dialog-action-box { background-color: $bg_color } + + .dialog-vbox > .frame { + color: $dark_sidebar_fg; + border-color: transparent; + } + .action-bar.frame { + background-color: transparent; + border-color: if($variant =='light', darken($dark_sidebar_bg, 7%), darken($dark_sidebar_bg, 15%)); + } + + .action-bar.frame, + .dialog-vbox > .frame { + .button { @extend %dark_sidebar_button; } + + GtkLabel, GtkComboBox { color: $dark_sidebar_fg; } + } +} // Gedit sidebar GeditWindow.background.csd { @@ -180,15 +203,7 @@ GeditWindow.background.csd GeditFileBrowserWidget { background-color: transparent; border-color: darken($dark_sidebar_bg, 7%); - .button { - @include button(undecorated); - color: $dark_sidebar_fg; - border: 1px solid transparent; - - &:hover { border: 1px solid $selected_bg_color; } - &:active, &:checked { @include button(active); } - &:insensitive { color: transparentize($dark_sidebar_fg, 0.6); } - } + .button { @extend %dark_sidebar_button; } GtkComboBox { color: $dark_sidebar_fg; } } } @@ -204,24 +219,10 @@ GeditWindow.background.csd GeditFileBrowserView.view { } } -// Filechooser bottom bar -GtkFileChooserDialog .action-bar.frame { - background-color: darken($dark_sidebar_bg, 2%); - border-color: if($variant =='light', darken($dark_sidebar_bg, 7%), darken($dark_sidebar_bg, 15%)); - - GtkLabel { color: $dark_sidebar_fg; } - - .button { - @include button(undecorated); - - &:hover { border: 1px solid $selected_bg_color; } - &:active, &:checked { - border: 1px solid $selected_bg_color; - color: $selected_fg_color; - background-color: $selected_bg_color; - } - &:insensitive { color: transparentize($dark_sidebar_fg, 0.6); } - } +%dark_sidebar_button { + @include button(osd); - GtkComboBox { color: $dark_sidebar_fg; } + &:hover { @include button(osd-hover) } + &:active, &:checked { @include button(osd-active); } + &:insensitive { @include button(osd-insensitive); } } -- cgit v1.2.3