Merge branch 'main' of github.com:vinceliuice/Colloid-gtk-theme

This commit is contained in:
vinceliuice
2022-11-24 15:45:27 +08:00
5 changed files with 98 additions and 82 deletions

View File

@@ -509,9 +509,7 @@ theme_tweaks() {
} }
uninstall_link() { uninstall_link() {
[[ -L "${HOME}/.config/gtk-4.0/assets" ]] && rm -rf "${HOME}/.config/gtk-4.0/assets" && echo -e "\nUninstall ${HOME}/.config/gtk-4.0/assets link ..." rm -rf "${HOME}/.config/gtk-4.0/"{assets,windows-assets,gtk.css,gtk-dark.css} && echo -e "\nUninstall ${HOME}/.config/gtk-4.0 links ..."
[[ -L "${HOME}/.config/gtk-4.0/gtk.css" ]] && rm -rf "${HOME}/.config/gtk-4.0/gtk.css" && echo -e "Uninstall ${HOME}/.config/gtk-4.0/gtk.css link ..."
[[ -L "${HOME}/.config/gtk-4.0/gtk-dark.css" ]] && rm -rf "${HOME}/.config/gtk-4.0/gtk-dark.css" && echo -e "Uninstall ${HOME}/.config/gtk-4.0/gtk-dark.css link ..."
} }
link_libadwaita() { link_libadwaita() {

View File

@@ -1052,6 +1052,11 @@ toolbar {
border-width: 0 1px 1px; border-width: 0 1px 1px;
border-color: $divider; border-color: $divider;
background-color: $base-alt; background-color: $base-alt;
.frame & {
border-width: 1px 0 0;
background-color: transparent;
}
} }
searchbar > revealer > box, searchbar > revealer > box,
@@ -1311,6 +1316,11 @@ searchbar > revealer > box {
padding: $space-size $space-size * 2; padding: $space-size $space-size * 2;
border-radius: $window-radius $window-radius 0 0; border-radius: $window-radius $window-radius 0 0;
box-shadow: inset 0 1px highlight($titlebar); box-shadow: inset 0 1px highlight($titlebar);
background-color: $titlebar;
&:backdrop {
background-color: $titlebar-backdrop;
}
.tiled &, .tiled &,
.maximized &, .maximized &,
@@ -1631,14 +1641,11 @@ menubar,
&:backdrop { &:backdrop {
color: $titlebar-text-secondary; color: $titlebar-text-secondary;
background-color: $titlebar-backdrop;
} }
.csd & { .csd & {
transition: $transition; transition: $transition;
&:backdrop {
background-color: $titlebar-backdrop;
}
} }
> menuitem { > menuitem {
@@ -1903,7 +1910,12 @@ notebook {
border-radius: $modal-radius + $space-size; border-radius: $modal-radius + $space-size;
} }
&.frame frame { &.frame {
scrolledwindow.frame {
border: none;
}
frame {
> border { > border {
border: none; border: none;
border-radius: $modal-radius; border-radius: $modal-radius;
@@ -1915,6 +1927,7 @@ notebook {
row.activatable { border-radius: $corner-radius; } row.activatable { border-radius: $corner-radius; }
} }
} }
}
> header { > header {
border: none; border: none;
@@ -2405,7 +2418,7 @@ treeview.view {
padding: 0; padding: 0;
margin: 0; margin: 0;
&:not(:hover):not(:disabled):not(:checked):not(:indeterminate) { &:not(:disabled):not(:checked):not(:indeterminate) {
background-color: $divider; background-color: $divider;
} }
@@ -2414,7 +2427,7 @@ treeview.view {
} }
} }
&:selected, &:selected:focus { &, &:hover, &:selected {
radio, check { radio, check {
&:checked, &:indeterminate { &:checked, &:indeterminate {
background-color: $assets-color; background-color: $assets-color;
@@ -3651,7 +3664,6 @@ colorchooser .popover.osd {
decoration { decoration {
transition: $transition-shadow; transition: $transition-shadow;
border-radius: $window-radius; border-radius: $window-radius;
// background-color: $background;
@if $rimless == 'true' { @if $rimless == 'true' {
box-shadow: $shadow-z16, 0 0 36px transparent; box-shadow: $shadow-z16, 0 0 36px transparent;

View File

@@ -1625,7 +1625,7 @@ headerbar {
} }
} }
popover.background { // reset popover popover.background { // reset popovers
button:not(.suggested-action):not(.destructive-action):not(.flat) { button:not(.suggested-action):not(.destructive-action):not(.flat) {
@extend %button-basic; @extend %button-basic;
} }
@@ -1639,6 +1639,15 @@ headerbar {
} }
entry { @extend %entry-basic; } entry { @extend %entry-basic; }
entry,
spinbutton,
button,
menubutton,
stackswitcher {
margin-top: 0;
margin-bottom: 0;
}
} }
separator:not(.sidebar) { separator:not(.sidebar) {
@@ -2051,12 +2060,14 @@ popover.menu {
/************ /************
* Popovers * * Popovers *
************/ ************/
popover.background { popover {
&.background {
font: initial; font: initial;
&, &:backdrop { &, &:backdrop {
background-color: transparent; background-color: transparent;
} }
}
> arrow, > arrow,
> contents { > contents {
@@ -2074,14 +2085,6 @@ popover.background {
background-clip: border-box; background-clip: border-box;
box-shadow: 0 0 0 1px $window-border, $shadow-z5; box-shadow: 0 0 0 1px $window-border, $shadow-z5;
} }
&:backdrop {
@if $rimless == 'true' {
box-shadow: $shadow-z3;
} @else {
box-shadow: $shadow-z3, 0 0 0 1px $window-border;
}
}
} }
@if $rimless == 'false' and $variant == 'light' { @if $rimless == 'false' and $variant == 'light' {
@@ -2490,8 +2493,8 @@ tabbar {
} }
> separator { > separator {
margin-top: 9px; margin: 9px 0;
margin-bottom: 9px; min-width: 1px;
transition: opacity 150ms ease-in-out; transition: opacity 150ms ease-in-out;
&.hidden { &.hidden {
@@ -2501,6 +2504,7 @@ tabbar {
> tabboxchild { > tabboxchild {
margin: 0 -3px; margin: 0 -3px;
padding: 0;
> tab { > tab {
@extend %tabs_tab; @extend %tabs_tab;
@@ -4743,21 +4747,12 @@ colorchooser .popover.osd {
**********************/ **********************/
window { window {
border: none; border: none;
transition: $transition-shadow;
&.csd { &.csd {
border-radius: $window-radius; border-radius: $window-radius;
outline-offset: -1px; outline-offset: -1px;
outline: 1px solid highlight($background); outline: 1px solid highlight($background);
margin: 0;
&.maximized,
&.fullscreen,
&.tiled,
&.tiled-top,
&.tiled-right,
&.tiled-bottom,
&.tiled-left { border-radius: 0; }
}
@if $rimless == 'true' { @if $rimless == 'true' {
box-shadow: $shadow-z16, 0 0 36px transparent; box-shadow: $shadow-z16, 0 0 36px transparent;
@@ -4770,6 +4765,8 @@ window {
// change when we go to backdrop, to prevent jumping windows. // change when we go to backdrop, to prevent jumping windows.
// The biggest shadow should be in the same order then in the active state // The biggest shadow should be in the same order then in the active state
// or the jumping will happen during the transition. // or the jumping will happen during the transition.
transition: $transition-shadow;
@if $rimless == 'true' { @if $rimless == 'true' {
box-shadow: $shadow-z4, 0 0 36px transparent; box-shadow: $shadow-z4, 0 0 36px transparent;
} @else { } @else {
@@ -4777,6 +4774,18 @@ window {
} }
} }
&.maximized,
&.fullscreen,
&.tiled,
&.tiled-top,
&.tiled-right,
&.tiled-bottom,
&.tiled-left {
border-radius: 0;
transition: none;
}
}
&.solid-csd { &.solid-csd {
margin: 0; margin: 0;
padding: 2px; padding: 2px;
@@ -4927,7 +4936,7 @@ windowcontrols {
background-color: $primary; background-color: $primary;
} }
.monospace { font-family: monospace; } // .monospace { font-family: monospace; }
/********************** /**********************

View File

@@ -98,13 +98,21 @@ window.dialog {
// Calculator // Calculator
// //
.display-container {
&.card {
border-radius: 0;
box-shadow: none;
border-width: 0 0 1px 0;
}
.history-view { background-color: $base; } .history-view { background-color: $base; }
.sourceview { #displayitem {
padding: 0 12px 8px 0; padding: 0 12px 8px 0;
font-size: 1.4em; font-size: 1.4em;
border-top: 1px solid $border; border-top: 1px solid $border;
} }
}
.math-buttons button { .math-buttons button {
font-size: 1.1em; font-size: 1.1em;
@@ -116,19 +124,6 @@ window.dialog {
} }
} }
.small .card {
border-radius: 0;
box-shadow: none;
&.forecast-card {
border-width: 1px 0;
}
&.display-container {
border-width: 0 0 1px 0;
}
}
leaflet { leaflet {
button.number-button { button.number-button {
background-color: rgba($text, 0.1); background-color: rgba($text, 0.1);
@@ -1127,11 +1122,10 @@ window > contents > leaflet { // Gnome control center
// Gnome Weather // Gnome Weather
// //
@define-color weather_temp_chart_fill_color: #{rgba(248, 228, 92, 0.5)}; @define-color weather_temp_chart_fill_color #{rgba($warning, 0.5)};
@define-color weather_temp_chart_stroke_color: #{rgba(246, 211, 45, 1.0)}; @define-color weather_temp_chart_stroke_color #{darken($warning, 10%)};
@define-color weather_thermometer_warm_color #{if($variant == 'light', $yellow-dark, $yellow-light)};
@define-color weather_thermometer_warm_color: #{if($variant == 'light', $yellow-dark, $yellow-light)}; @define-color weather_thermometer_cold_color #{if($variant == 'light', $blue-dark, $blue-light)};
@define-color weather_thermometer_cold_color: #{if($variant == 'light', $blue-dark, $blue-light)};
$weather_thermometer_high_color: $yellow-light; $weather_thermometer_high_color: $yellow-light;
$weather_thermometer_low_color: $blue-light; $weather_thermometer_low_color: $blue-light;
@@ -1166,6 +1160,7 @@ $weather_forecast_color: #ae7b03;
.forecast-card { .forecast-card {
transition: border-radius 100ms ease-out; transition: border-radius 100ms ease-out;
border-radius: $corner-radius; border-radius: $corner-radius;
border-width: 1px 0;
} }
.forecast-card separator { .forecast-card separator {
@@ -1484,11 +1479,3 @@ window.dialog {
} }
} }
} }
window.aboutdialog {
stack scrolledwindow.frame > {
&, viewport.view {
border-radius: $window-radius - $space-size;
}
}
}

View File

@@ -46,6 +46,16 @@ wnck-pager {
&:selected { background-color: $primary; } &:selected { background-color: $primary; }
} }
#xfce4-mpc-plugin-26 {
> frame > border {
border: none;
}
}
#xfce-panel-button {
-gtk-icon-style: symbolic;
}
XfdesktopIconView.view { XfdesktopIconView.view {
border-radius: $corner-radius; border-radius: $corner-radius;
background-color: transparent; background-color: transparent;