Skip to content

Commit

Permalink
Improvement: GTK3&4 - file shooser pathbar consistant with file anage…
Browse files Browse the repository at this point in the history
…rs; BUGfix: Thunar - pathbar disabled buttons color
  • Loading branch information
thekomer committed Feb 18, 2022
1 parent 98a67cc commit 4a45022
Show file tree
Hide file tree
Showing 8 changed files with 239 additions and 89 deletions.
3 changes: 3 additions & 0 deletions gtk-3.0/apps/_xfce.scss
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ wnck-pager {
@include button(backdrop-active-header);
}
}
&:disabled {
color: $insensitive_fg_color;
}
//color: inherit;
//background-color: inherit;
}
Expand Down
76 changes: 43 additions & 33 deletions gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -1855,38 +1855,46 @@ filechooserbutton:drop(active) {
box-shadow: none;
border-color: transparent; }

/*
// file chooser dialog
dialog {
#pathbarbox {
background: $headerbar_color;
.linked.path-bar {
background: $headerbar_color;
border-bottom: 1px solid $borders_color;
transition: $button_transition;
transition-duration: 50ms;
button, label, button.text-button, button.text-button.toggle, button.slider-button, button.toggle, button > label {
@include button(normal-header);
color: $headerbar_fg_color;
&:hover{
@include button(hover-header, transparent, $text_color);
color: $selected_bg_color;
}
&:selected, &:active, &:checked {
@include button(active-header);
color: $selected_fg_color;
}
&:backdrop {
transition: $backdrop_transition;
transition-duration: 500ms;
color: inherit;
background: transparent;
}
}
}
}
}
*/
dialog #pathbarbox {
background: #06070c; }
dialog #pathbarbox .linked.path-bar {
background: #06070c;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
transition-duration: 50ms; }
dialog #pathbarbox .linked.path-bar button {
color: #BFC3CD;
text-shadow: none;
box-shadow: none;
background: transparent;
border: none;
color: #b9bec9;
margin-top: 5px;
margin-bottom: 5px;
min-height: 24px; }
dialog #pathbarbox .linked.path-bar button:hover {
color: #ff6a00;
background: transparent; }
dialog #pathbarbox .linked.path-bar button:backdrop {
color: inherit;
background: transparent; }
dialog #pathbarbox .linked.path-bar button:selected, dialog #pathbarbox .linked.path-bar button:active, dialog #pathbarbox .linked.path-bar button:checked {
color: white;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100); }
dialog #pathbarbox .linked.path-bar button:selected:hover, dialog #pathbarbox .linked.path-bar button:active:hover, dialog #pathbarbox .linked.path-bar button:checked:hover {
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98); }
dialog #pathbarbox .linked.path-bar button:selected:backdrop, dialog #pathbarbox .linked.path-bar button:active:backdrop, dialog #pathbarbox .linked.path-bar button:checked:backdrop {
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6); }
dialog #pathbarbox .linked.path-bar button:selected:backdrop, dialog #pathbarbox .linked.path-bar button:active:backdrop, dialog #pathbarbox .linked.path-bar button:checked:backdrop {
border-radius: 1em;
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
dialog #pathbarbox .linked.path-bar button:disabled {
color: #676a75; }

/****************
* Text Entries *
****************/
Expand Down Expand Up @@ -4640,7 +4648,7 @@ tooltip {
tooltip.background {
background-color: rgba(0, 0, 0, 0.8);
background-clip: padding-box;
border: 1px solid #27292f; }
border: 1px solid #15161b; }
tooltip decoration {
background-color: transparent; }
tooltip * {
Expand Down Expand Up @@ -6157,6 +6165,8 @@ wnck-pager {
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
.thunar toolbar button:disabled {
color: #676a75; }

.thunar toolbar.horizontal button image {
-gtk-icon-transform: scale(1); }
Expand Down
76 changes: 43 additions & 33 deletions gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -1855,38 +1855,46 @@ filechooserbutton:drop(active) {
box-shadow: none;
border-color: transparent; }

/*
// file chooser dialog
dialog {
#pathbarbox {
background: $headerbar_color;
.linked.path-bar {
background: $headerbar_color;
border-bottom: 1px solid $borders_color;
transition: $button_transition;
transition-duration: 50ms;
button, label, button.text-button, button.text-button.toggle, button.slider-button, button.toggle, button > label {
@include button(normal-header);
color: $headerbar_fg_color;
&:hover{
@include button(hover-header, transparent, $text_color);
color: $selected_bg_color;
}
&:selected, &:active, &:checked {
@include button(active-header);
color: $selected_fg_color;
}
&:backdrop {
transition: $backdrop_transition;
transition-duration: 500ms;
color: inherit;
background: transparent;
}
}
}
}
}
*/
dialog #pathbarbox {
background: #06070c; }
dialog #pathbarbox .linked.path-bar {
background: #06070c;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
transition-duration: 50ms; }
dialog #pathbarbox .linked.path-bar button {
color: #BFC3CD;
text-shadow: none;
box-shadow: none;
background: transparent;
border: none;
color: #b9bec9;
margin-top: 5px;
margin-bottom: 5px;
min-height: 24px; }
dialog #pathbarbox .linked.path-bar button:hover {
color: #ff6a00;
background: transparent; }
dialog #pathbarbox .linked.path-bar button:backdrop {
color: inherit;
background: transparent; }
dialog #pathbarbox .linked.path-bar button:selected, dialog #pathbarbox .linked.path-bar button:active, dialog #pathbarbox .linked.path-bar button:checked {
color: white;
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100); }
dialog #pathbarbox .linked.path-bar button:selected:hover, dialog #pathbarbox .linked.path-bar button:active:hover, dialog #pathbarbox .linked.path-bar button:checked:hover {
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98); }
dialog #pathbarbox .linked.path-bar button:selected:backdrop, dialog #pathbarbox .linked.path-bar button:active:backdrop, dialog #pathbarbox .linked.path-bar button:checked:backdrop {
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6); }
dialog #pathbarbox .linked.path-bar button:selected:backdrop, dialog #pathbarbox .linked.path-bar button:active:backdrop, dialog #pathbarbox .linked.path-bar button:checked:backdrop {
border-radius: 1em;
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
dialog #pathbarbox .linked.path-bar button:disabled {
color: #676a75; }

/****************
* Text Entries *
****************/
Expand Down Expand Up @@ -4640,7 +4648,7 @@ tooltip {
tooltip.background {
background-color: rgba(0, 0, 0, 0.8);
background-clip: padding-box;
border: 1px solid #27292f; }
border: 1px solid #15161b; }
tooltip decoration {
background-color: transparent; }
tooltip * {
Expand Down Expand Up @@ -6157,6 +6165,8 @@ wnck-pager {
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
.thunar toolbar button:disabled {
color: #676a75; }

.thunar toolbar.horizontal button image {
-gtk-icon-transform: scale(1); }
Expand Down
31 changes: 19 additions & 12 deletions gtk-3.0/widgets/_dialogs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ filechooserbutton:drop(active) {
box-shadow: none;
border-color: transparent;
}
/*

// file chooser dialog
dialog {
#pathbarbox {
Expand All @@ -78,25 +78,32 @@ dialog {
border-bottom: 1px solid $borders_color;
transition: $button_transition;
transition-duration: 50ms;
button, label, button.text-button, button.text-button.toggle, button.slider-button, button.toggle, button > label {
button {
@include button(normal-header);
color: $headerbar_fg_color;
&:hover{
@include button(hover-header, transparent, $text_color);
color: $sidebar_fg_color;
margin-top: 5px;
margin-bottom: 5px;
min-height: 24px;
&:hover {
color: $selected_bg_color;
}
&:selected, &:active, &:checked {
@include button(active-header);
color: $selected_fg_color;
background: transparent;
}
&:backdrop {
transition: $backdrop_transition;
transition-duration: 500ms;
color: inherit;
background: transparent;
}
&:selected, &:active, &:checked {
@include button(active-header);
&:backdrop {
@include button(backdrop-active-header);
}
}
&:disabled {
color: $insensitive_fg_color;
}
//color: inherit;
//background-color: inherit;
}
}
}
}
*/
11 changes: 8 additions & 3 deletions gtk-4.0/apps/_xfce.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,17 @@ wnck-pager {
// general
#whiskermenu-window {
color: $fg_color;
background-color: $bg_color;
background-color: $headerbar_color;
border-radius: 1em;
border: 1px solid $borders_color;
box-shadow: 5px 10px 8px 10px $borders_color;
border-color: transparent;
//border: 1px solid $borders_color;
//box-shadow: 5px 10px 8px 10px $borders_color;
}

// corner triangle
#whiskermenu-window box widget {
color: transparent;
background: none;
&:hover {
color: $fg_color;
}
Expand Down Expand Up @@ -223,6 +225,9 @@ wnck-pager {
@include button(backdrop-active-header);
}
}
&:disabled {
color: $insensitive_fg_color;
}
//color: inherit;
//background-color: inherit;
}
Expand Down
46 changes: 42 additions & 4 deletions gtk-4.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,42 @@ filechooserbutton:drop(active) {
box-shadow: none;
border-color: transparent; }

dialog #pathbarbox {
background: #06070c; }
dialog #pathbarbox .linked.path-bar {
background: #06070c;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
transition-duration: 50ms; }
dialog #pathbarbox .linked.path-bar button {
color: #8b8b8b;
text-shadow: none;
box-shadow: none;
background: transparent;
border: none;
color: #b9bec9;
margin-top: 5px;
margin-bottom: 5px;
min-height: 24px; }
dialog #pathbarbox .linked.path-bar button:hover {
color: #ff6a00;
background: transparent; }
dialog #pathbarbox .linked.path-bar button:backdrop {
color: inherit;
background: transparent; }
dialog #pathbarbox .linked.path-bar button:selected, dialog #pathbarbox .linked.path-bar button:active, dialog #pathbarbox .linked.path-bar button:checked {
border-radius: 1em;
background: linear-gradient(to right, #ff3300, #ffa100);
box-shadow: 0px 0px 5px rgba(255, 106, 0, 0.98);
color: white; }
dialog #pathbarbox .linked.path-bar button:selected:backdrop, dialog #pathbarbox .linked.path-bar button:active:backdrop, dialog #pathbarbox .linked.path-bar button:checked:backdrop {
border-radius: 1em;
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
dialog #pathbarbox .linked.path-bar button:disabled {
color: #676a75; }

/****************
* Text Entries *
****************/
Expand Down Expand Up @@ -5963,13 +5999,13 @@ wnck-pager {
****************/
#whiskermenu-window {
color: #BFC3CD;
background-color: #0E111D;
background-color: #06070c;
border-radius: 1em;
border: 1px solid rgba(255, 255, 255, 0.05);
box-shadow: 5px 10px 8px 10px rgba(255, 255, 255, 0.05); }
border-color: transparent; }

#whiskermenu-window box widget {
color: transparent; }
color: transparent;
background: none; }
#whiskermenu-window box widget:hover {
color: #BFC3CD; }

Expand Down Expand Up @@ -6062,6 +6098,8 @@ wnck-pager {
color: rgba(191, 195, 205, 0.4);
background: rgba(255, 106, 0, 0.6);
box-shadow: 0px 0px 0px rgba(255, 106, 0, 0.98); }
.thunar toolbar button:disabled {
color: #676a75; }

.thunar toolbar.horizontal button image {
-gtk-icon-transform: scale(1); }
Expand Down
Loading

0 comments on commit 4a45022

Please sign in to comment.