Serious improvements for Nautilus

This commit is contained in:
eudaimon 2024-01-23 10:52:17 +01:00
parent f5d2d518a3
commit 20c6bde7ac
7 changed files with 151 additions and 73 deletions

View file

@ -37,6 +37,43 @@ XfdesktopIconView.view:active {
}
.nemo-desktop-window notebook {
border: none;
}
.nautilus-window {
.top-bar {
background-color: $titlebar_active_bg;
color: $titlebar_active_fg;
&:backdrop {
background-color: $titlebar_backdrop_bg;
color: $titlebar_backdrop_fg;
transition: none;//$backdrop_transition;
}
.collapse-spacing {
padding: 0;
}
}
.nautilus-list-view {
columnview, listview, cell {
padding: 0;
margin: 0;
}
row {
margin: 0;
}
}
}
#NautilusPathBar {
button, menubutton {
margin: 0;
}
}
windowhandle > box {
padding: 0;
}

View file

@ -1416,7 +1416,7 @@ searchbar > revealer > box {
***************/
%titlebar,
headerbar {
padding: 0 6px;
padding: 4px;
min-height: $_headerbar_height;
border: none;
border-radius: 0px;
@ -1623,12 +1623,12 @@ headerbar {
spinbutton,
separator:not(.sidebar),
button {
margin-top: $_hb_btn_pad;
margin-bottom: $_hb_btn_pad;
//margin-top: $_hb_btn_pad;
//margin-bottom: $_hb_btn_pad;
}
switch {
margin-top: $_switch_margin;
margin-bottom: $_switch_margin;
//margin-top: $_switch_margin;
//margin-bottom: $_switch_margin;
}
&.titlebar headerbar:not(.titlebar) {

View file

@ -458,7 +458,7 @@ searchbar > revealer > box { margin: -6px; padding: 6px; }
.inline-toolbar, searchbar > revealer > box, .location-bar { border-style: solid; background-color: #373636; }
/*************** Header bars * */
.titlebar:not(headerbar), headerbar { padding: 0 6px; min-height: 2.5em; border: none; border-radius: 0px; background-color: #507800; color: #d1ff96; border: none; /* Darken switchbuttons for headerbars. issue #1588 */ /* hide the close button separator */ }
.titlebar:not(headerbar), headerbar { padding: 4px; min-height: 2.5em; border: none; border-radius: 0px; background-color: #507800; color: #d1ff96; border: none; /* Darken switchbuttons for headerbars. issue #1588 */ /* hide the close button separator */ }
.titlebar:backdrop:not(headerbar), headerbar:backdrop { background-color: #3f3e3e; color: #EDF0F5; transition: none; }
@ -520,10 +520,6 @@ searchbar > revealer > box { margin: -6px; padding: 6px; }
.solid-csd .titlebar:dir(rtl):not(headerbar), .solid-csd .titlebar:dir(ltr):not(headerbar), .solid-csd headerbar:backdrop:dir(rtl), .solid-csd headerbar:backdrop:dir(ltr), .solid-csd headerbar:dir(rtl), .solid-csd headerbar:dir(ltr) { margin-left: -1px; margin-right: -1px; margin-top: -1px; border-radius: 0; box-shadow: none; }
headerbar entry, headerbar spinbutton, headerbar separator:not(.sidebar), headerbar button { margin-top: 5px; margin-bottom: 5px; }
headerbar switch { margin-top: 7px; margin-bottom: 7px; }
headerbar.titlebar headerbar:not(.titlebar) { background: none; box-shadow: none; }
.background .titlebar:backdrop, .background .titlebar { border-radius: 0; }
@ -1534,6 +1530,20 @@ XfdesktopIconView.view:active { text-shadow: none; color: #d1ff96; background-co
.nemo-desktop-window notebook { border: none; }
.nautilus-window .top-bar { background-color: #507800; color: #d1ff96; }
.nautilus-window .top-bar:backdrop { background-color: #3f3e3e; color: #EDF0F5; transition: none; }
.nautilus-window .top-bar .collapse-spacing { padding: 0; }
.nautilus-window .nautilus-list-view columnview, .nautilus-window .nautilus-list-view listview, .nautilus-window .nautilus-list-view cell { padding: 0; margin: 0; }
.nautilus-window .nautilus-list-view row { margin: 0; }
#NautilusPathBar button, #NautilusPathBar menubutton { margin: 0; }
windowhandle > box { padding: 0; }
/* GTK NAMED COLORS ---------------- use responsibly! */
/*
widget text/foreground color */

View file

@ -1400,8 +1400,8 @@ windowcontrols {
* Header bars *
***************/
%titlebar,
headerbar {
padding: 0 6px;
headerbar { //.top-bar is for Nautilus. This is not included in '../common/desktops.scss';
padding: 4px;
min-height: $_headerbar_height;
//border-width: 0 0 1px;
//border-style: solid;
@ -1487,6 +1487,7 @@ headerbar {
}
headerbar {
> windowhandle > box {
&,
> box.start,
@ -1501,8 +1502,8 @@ headerbar {
separator:not(.sidebar),
button,
menubutton {
margin-top: 6px;
margin-bottom: 6px;
//margin-top: 6px;
//margin-bottom: 6px;
}
// Reset margins for buttons inside menubutton
@ -2827,7 +2828,7 @@ columnview {
// align horizontal sizing with header buttons
> cell {
padding: 8px 6px;
padding: 2px;
&:not(:first-child) {
border-left: 1px solid transparent;
@ -2837,7 +2838,7 @@ columnview {
// make column separators visible when :show-column-separators is true
&.column-separators > listview > row > cell {
border-left-color: $_treeview_borders_color;
//border-left-color: $_treeview_borders_color;
}
// shrink vertically for .data-table
@ -3109,7 +3110,7 @@ filechooserbutton:drop(active) {
stacksidebar {
//not a regular list
list.separators:not(.horizontal) > row:not(.separator) {
border-bottom: none;
//border-bottom: none;
}
row {
padding: 10px 4px;
@ -3148,7 +3149,7 @@ separator.sidebar {
min-height: 36px;
padding: 0 8px;
border-radius: $button_radius; //$menu-margin;
margin: 0 $menu-margin 2px;
//margin: 0 $menu-margin 2px;
@include focus-ring($focus-state: 'focus-visible:focus-within');
}
@ -3728,38 +3729,42 @@ menubutton {
}
tabbox {
background-color: $bg_color;
& > tabboxchild > tab {
@extend %button_basic;
border-radius: 0px;
@include button(normal);
//background-color: $bg_color;
& > tabboxchild {
border-radius: $button_radius;
& > tab {
@extend %button_basic;
border-radius: $button_radius;
@include button(normal);
@include focus-ring();
@include focus-ring();
&:hover {
@include button(hover);
-gtk-icon-filter: brightness(1.2);
}
&:hover {
@include button(hover);
-gtk-icon-filter: brightness(1.2);
}
&.keyboard-activating,
&:active {
@include button(active);
&.keyboard-activating,
&:active {
@include button(active);
transition-duration: 50ms;
}
transition-duration: 50ms;
}
&:selected:hover:not(:active) { @include button(checked-hover); }
&:selected, &:selected:active { @include button(checked-active); }
&:selected:hover:not(:active) { @include button(checked-hover); }
&:selected, &:selected:active { @include button(checked-active); }
//removed backdrop
//removed backdrop
&:disabled {
@include button(insensitive);
-gtk-icon-filter: opacity(0.5);
filter: none; //for libadwaita
&:disabled {
@include button(insensitive);
-gtk-icon-filter: opacity(0.5);
filter: none; //for libadwaita
&:active,
&:selected { @include button(insensitive-active); }
&:active,
&:selected { @include button(insensitive-active); }
}
}
}
}
@ -3767,12 +3772,12 @@ tabbox {
splitbutton {
@extend %button_basic;
border-radius: 0px;
padding: 0px;
padding: 1px; //$border_width;
@include button(normal);
&:disabled {
@include button(insensitive);}
& > separator {border: none;}
& > button, menubutton { margin: $border_width;}
& button, menubutton, arrow {margin: 0; padding: 0; min-width: 1.7em; min-height: 1.5em;}
}
.floating-bar {

View file

@ -630,7 +630,7 @@ windowcontrols button.minimize:disabled { border-width: 2px; color: #7c675a; bac
windowcontrols button.minimize:backdrop { border-width: 2px; color: #EDF0F5; background-color: #4e584d; border-left-color: #878e87; border-top-color: #878e87; border-right-color: #343a33; border-bottom-color: #343a33; }
/*************** Header bars * */
.titlebar:not(headerbar), headerbar { padding: 0 6px; min-height: 2.5em; border-radius: 0; border: none; background-color: #507800; color: #d1ff96; /* Darken switchbuttons for headerbars. issue #1588 */ }
.titlebar:not(headerbar), headerbar { padding: 4px; min-height: 2.5em; border-radius: 0; border: none; background-color: #507800; color: #d1ff96; /* Darken switchbuttons for headerbars. issue #1588 */ }
.titlebar:backdrop:not(headerbar), headerbar:backdrop { background-color: #3f3e3e; color: #EDF0F5; transition: none; }
@ -650,8 +650,6 @@ windowcontrols button.minimize:backdrop { border-width: 2px; color: #EDF0F5; bac
headerbar > windowhandle > box, headerbar > windowhandle > box > box.start, headerbar > windowhandle > box > box.end { border-spacing: 6px; }
headerbar entry, headerbar spinbutton, headerbar separator:not(.sidebar), headerbar button, headerbar menubutton { margin-top: 6px; margin-bottom: 6px; }
headerbar menubutton > button { margin-top: 0px; margin-bottom: 0px; }
headerbar switch { margin-top: 10px; margin-bottom: 10px; }
@ -1283,12 +1281,10 @@ row:selected { outline-color: rgba(255, 255, 255, 0.3); }
columnview > listview > row { padding: 0; }
columnview > listview > row > cell { padding: 8px 6px; }
columnview > listview > row > cell { padding: 2px; }
columnview > listview > row > cell:not(:first-child) { border-left: 1px solid transparent; }
columnview.column-separators > listview > row > cell { border-left-color: #575859; }
columnview.data-table > listview > row > cell { padding-top: 2px; padding-bottom: 2px; }
treeexpander { border-spacing: 4px; }
@ -1382,8 +1378,6 @@ filechooserbutton:drop(active) { box-shadow: inset 0 0 0 1px #33d17a; }
paned .sidebar.left, paned .sidebar.right, paned .sidebar.left:dir(rtl), paned .sidebar:dir(rtl), paned .sidebar:dir(ltr), paned .sidebar { border-style: none; }
stacksidebar list.separators:not(.horizontal) > row:not(.separator) { border-bottom: none; }
stacksidebar row { padding: 10px 4px; transition-property: outline, outline-width, outline-offset, outline-color; transition-duration: 300ms; animation-timing-function: ease-in-out; }
stacksidebar row { outline: 0 solid transparent; outline-offset: 4px; }
@ -1401,7 +1395,7 @@ separator.sidebar { background-color: #252525; }
.navigation-sidebar > separator { margin: 1px; }
.navigation-sidebar > row { min-height: 36px; padding: 0 8px; border-radius: 0px; margin: 0 1px 2px; transition-property: outline, outline-width, outline-offset, outline-color; transition-duration: 300ms; animation-timing-function: ease-in-out; }
.navigation-sidebar > row { min-height: 36px; padding: 0 8px; border-radius: 0px; transition-property: outline, outline-width, outline-offset, outline-color; transition-duration: 300ms; animation-timing-function: ease-in-out; }
.navigation-sidebar > row { outline: 0 solid transparent; outline-offset: 4px; }
@ -1629,7 +1623,7 @@ menubutton arrow.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
.card { border-radius: 0px; background-color: #3c3c3c; color: #EDF0F5; border: 2px; border-style: solid; background-color: #3c3c3c; border-left-color: #6a6a6a; border-top-color: #6a6a6a; border-right-color: #252525; border-bottom-color: #252525; box-shadow: none; }
tabbox { background-color: #3f3e3e; }
tabbox > tabboxchild { border-radius: 0px; }
tabbox > tabboxchild > tab { border-radius: 0px; border-width: 2px; color: #EDF0F5; background-color: #4e584d; border-left-color: #878e87; border-top-color: #878e87; border-right-color: #343a33; border-bottom-color: #343a33; transition-property: outline, outline-width, outline-offset, outline-color; transition-duration: 300ms; animation-timing-function: ease-in-out; }
@ -1649,13 +1643,13 @@ tabbox > tabboxchild > tab:disabled { border-width: 2px; color: #7c675a; backgro
tabbox > tabboxchild > tab:disabled:active, tabbox > tabboxchild > tab:disabled:selected { border-width: 2px; color: #7c675a; background-color: #4d4c2f; border-left-color: #302f1d; border-top-color: #302f1d; border-right-color: #787862; border-bottom-color: #787862; }
splitbutton { border-radius: 0px; padding: 0px; border-width: 2px; color: #EDF0F5; background-color: #4e584d; border-left-color: #878e87; border-top-color: #878e87; border-right-color: #343a33; border-bottom-color: #343a33; }
splitbutton { border-radius: 0px; padding: 1px; border-width: 2px; color: #EDF0F5; background-color: #4e584d; border-left-color: #878e87; border-top-color: #878e87; border-right-color: #343a33; border-bottom-color: #343a33; }
splitbutton:disabled { border-width: 2px; color: #7c675a; background-color: #493e37; border-left-color: #776e69; border-top-color: #776e69; border-right-color: #2e2722; border-bottom-color: #2e2722; }
splitbutton > separator { border: none; }
splitbutton > button, splitbutton menubutton { margin: 2px; }
splitbutton button, splitbutton menubutton, splitbutton arrow { margin: 0; padding: 0; min-width: 1.7em; min-height: 1.5em; }
.floating-bar { border: 2px solid; border-radius: 0px; background-color: #203d79; border-left-color: #6377a1; border-top-color: #6377a1; border-right-color: #15284f; border-bottom-color: #15284f; color: #66cbec; }
@ -1689,6 +1683,20 @@ XfdesktopIconView.view:active { text-shadow: none; color: #d1ff96; background-co
.nemo-desktop-window notebook { border: none; }
.nautilus-window .top-bar { background-color: #507800; color: #d1ff96; }
.nautilus-window .top-bar:backdrop { background-color: #3f3e3e; color: #EDF0F5; transition: none; }
.nautilus-window .top-bar .collapse-spacing { padding: 0; }
.nautilus-window .nautilus-list-view columnview, .nautilus-window .nautilus-list-view listview, .nautilus-window .nautilus-list-view cell { padding: 0; margin: 0; }
.nautilus-window .nautilus-list-view row { margin: 0; }
#NautilusPathBar button, #NautilusPathBar menubutton { margin: 0; }
windowhandle > box { padding: 0; }
/* GTK NAMED COLORS ---------------- use responsibly! */
/*
widget text/foreground color */