Skip to content

Commit

Permalink
Fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Jan 22, 2022
1 parent bdc64af commit 1bb2648
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 55 deletions.
16 changes: 16 additions & 0 deletions src/main/gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -3205,6 +3205,22 @@ popover.background toolbar {
background-color: #3C3C3C;
}

popover.background.combo viewport.frame > list {
background-color: transparent;
}

popover.background.combo viewport.frame > list > row {
padding: 6px 12px;
}

popover.background.combo viewport.frame > list > row:first-child {
border-radius: 12px 12px 0 0;
}

popover.background.combo viewport.frame > list > row:last-child {
border-radius: 0 0 12px 12px;
}

popover.background .linked > button:not(.radio) {
border-radius: 6px;
}
Expand Down
16 changes: 16 additions & 0 deletions src/main/gtk-3.0/gtk-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -3205,6 +3205,22 @@ popover.background toolbar {
background-color: #FFFFFF;
}

popover.background.combo viewport.frame > list {
background-color: transparent;
}

popover.background.combo viewport.frame > list > row {
padding: 6px 12px;
}

popover.background.combo viewport.frame > list > row:first-child {
border-radius: 12px 12px 0 0;
}

popover.background.combo viewport.frame > list > row:last-child {
border-radius: 0 0 12px 12px;
}

popover.background .linked > button:not(.radio) {
border-radius: 6px;
}
Expand Down
16 changes: 16 additions & 0 deletions src/main/gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -3205,6 +3205,22 @@ popover.background toolbar {
background-color: #FFFFFF;
}

popover.background.combo viewport.frame > list {
background-color: transparent;
}

popover.background.combo viewport.frame > list > row {
padding: 6px 12px;
}

popover.background.combo viewport.frame > list > row:first-child {
border-radius: 12px 12px 0 0;
}

popover.background.combo viewport.frame > list > row:last-child {
border-radius: 0 0 12px 12px;
}

popover.background .linked > button:not(.radio) {
border-radius: 6px;
}
Expand Down
12 changes: 2 additions & 10 deletions src/main/gtk-4.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,6 @@ headerbar button:backdrop:checked:disabled:not(.suggested-action):not(.destructi
color: rgba(255, 255, 255, 0.5);
}

.titlebar button.toggle {
border-radius: 9999px;
}

.titlebar stackswitcher {
margin: 6px 0;
border-radius: 9999px;
Expand Down Expand Up @@ -3421,17 +3417,13 @@ window.dialog.message .titlebar:backdrop {
color: rgba(255, 255, 255, 0.7);
}

window.dialog.message.csd.background {
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}

window.dialog.message.csd .dialog-action-area {
margin-top: -6px;
padding: 6px;
}

window.dialog.message.csd .dialog-action-area > button, window.dialog.message.csd .dialog-action-area > button:first-child, window.dialog.message.csd .dialog-action-area > button:last-child {
border-radius: 9999px;
border-radius: 6px;
}

window.dialog.message.csd .dialog-action-area > button:not(:last-child) {
Expand Down
12 changes: 2 additions & 10 deletions src/main/gtk-4.0/gtk-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,6 @@ headerbar button:backdrop:checked:disabled:not(.suggested-action):not(.destructi
color: rgba(0, 0, 0, 0.38);
}

.titlebar button.toggle {
border-radius: 9999px;
}

.titlebar stackswitcher {
margin: 6px 0;
border-radius: 9999px;
Expand Down Expand Up @@ -3421,17 +3417,13 @@ window.dialog.message .titlebar:backdrop {
color: rgba(0, 0, 0, 0.6);
}

window.dialog.message.csd.background {
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}

window.dialog.message.csd .dialog-action-area {
margin-top: -6px;
padding: 6px;
}

window.dialog.message.csd .dialog-action-area > button, window.dialog.message.csd .dialog-action-area > button:first-child, window.dialog.message.csd .dialog-action-area > button:last-child {
border-radius: 9999px;
border-radius: 6px;
}

window.dialog.message.csd .dialog-action-area > button:not(:last-child) {
Expand Down
12 changes: 2 additions & 10 deletions src/main/gtk-4.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,6 @@ headerbar button:backdrop:checked:disabled:not(.suggested-action):not(.destructi
color: rgba(255, 255, 255, 0.5);
}

.titlebar button.toggle {
border-radius: 9999px;
}

.titlebar stackswitcher {
margin: 6px 0;
border-radius: 9999px;
Expand Down Expand Up @@ -3421,17 +3417,13 @@ window.dialog.message .titlebar:backdrop {
color: rgba(0, 0, 0, 0.6);
}

window.dialog.message.csd.background {
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}

window.dialog.message.csd .dialog-action-area {
margin-top: -6px;
padding: 6px;
}

window.dialog.message.csd .dialog-action-area > button, window.dialog.message.csd .dialog-action-area > button:first-child, window.dialog.message.csd .dialog-action-area > button:last-child {
border-radius: 9999px;
border-radius: 6px;
}

window.dialog.message.csd .dialog-action-area > button:not(:last-child) {
Expand Down
13 changes: 13 additions & 0 deletions src/sass/gtk/_common-3.0.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,19 @@ popover.background {
.view:not(:selected),
toolbar { background-color: $surface; }

&.combo {
viewport.frame > list {
background-color: transparent;

> row {
padding: $space-size $space-size * 2;

&:first-child { border-radius: $menu-radius $menu-radius 0 0; }
&:last-child { border-radius: 0 0 $menu-radius $menu-radius; }
}
}
}

.linked > button:not(.radio) {
border-radius: $corner-radius;
&:first-child { border-radius: $corner-radius; }
Expand Down
12 changes: 2 additions & 10 deletions src/sass/gtk/_common-4.0.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1189,8 +1189,6 @@ searchbar > revealer > box {
}
}

button.toggle { border-radius: $circular-radius; }

stackswitcher { // reset
margin: $space-size 0;
border-radius: $circular-radius;
Expand Down Expand Up @@ -3064,20 +3062,14 @@ window.dialog.message { // Message Dialog styling
}

&.csd { // rounded bottom border styling for csd version
&.background {
// bigger radius for better antialiasing
border-bottom-left-radius: $window-radius;
border-bottom-right-radius: $window-radius;
}

.dialog-action-area {
margin-top: -$space-size;
// padding: $space-size;
padding: $space-size;

> button {
@extend %button-flat;

&, &:first-child, &:last-child { border-radius: $circular-radius; }
&, &:first-child, &:last-child { border-radius: $corner-radius; }

&:not(:last-child) { margin-right: $space-size; }

Expand Down
32 changes: 17 additions & 15 deletions src/sass/gtk/apps/_gnome-3.0.scss
Original file line number Diff line number Diff line change
Expand Up @@ -343,27 +343,29 @@
.conflict-row:not(:selected) { background-color: mix($warning, $base, percentage(0.3)); }

// Icon view
.nautilus-window flowboxchild {
// .icon-background { background-color: black; }
.nautilus-window {
flowboxchild {
// .icon-background { background-color: black; }

.icon-item-background {
padding: 4px;
border-radius: $space-size;
}
.icon-item-background {
padding: 4px;
border-radius: $space-size;
}

&:selected {
background-color: transparent;
&:selected {
background-color: transparent;

.icon-item-background { @extend %selected_items_color; }
.icon-item-background { @extend %selected_items_color; }
}
}
}

.nautilus-window notebook :not(treeview).view {
border-radius: $space-size;
notebook :not(treeview).view {
border-radius: $space-size;

selection,
&:selected {
@extend %selected_items_color;
selection,
&:selected {
@extend %selected_items_color;
}
}
}

Expand Down

0 comments on commit 1bb2648

Please sign in to comment.