Based on Material Design guidelines, this tries not to change the
background colors when widgets are at the same elevation. For example,
sidebar-specific and view-specific background colors no longer exist;
they will have different background colors depending on the elevation.
To make it easier to achieve, this does the following:
Treat frames as cards and add background-color to them.
Remove background-color from elevation-less widgets as much as
possible.
roundabout,
created on Saturday, 6 March 2021, 23:28:30 (1615073310),
received on Sunday, 11 May 2025, 13:22:56 (1746969776)
Author identity: nana-4 <hnmaigo@gmail.com>
abc8df7210abeb6f635103da38299bc9ff606a65
src/gtk/sass/_colors-public.scss
@@ -100,10 +100,10 @@ read if you used those and something break with a version upgrade you're on your
// FIXME this is really an API/* content view background such as thumbnails view in Photos or Boxes */@define-color content_view_bg #{"" + $base};
@define-color content_view_bg #{"" + $background};
/* Very contrasty background for text views (@theme_text_color foreground) */@define-color text_view_bg #{"" + $base};
@define-color text_view_bg #{"" + $background};
/* placeholder for entries */// NOTE: @placeholder_text_color doesn't allow translucent colors.
textview { // FIXME: we need to override background-color to ensure text rendering text { background-color: $base;
background-color: $background;
caret-color: $primary; } border { background-color: $base-alt;
// background-color: $background;
color: hint($on-surface); // FIXME: not working }}
border-left-color: stroke($on-surface); // this is actually the tree lines color, border-top-color: divider($on-surface); // while this is the grid lines color, better then nothing // FIXME: Avoid transparency background-color being slightly darker &:selected { background-color: $base; background-image: image($overlay-selected); } // to avoid borders being overridden by the previously set props rubberband { @extend %rubberband;
background-color: transparent; } // FIXME: Use the popover color instead of transparent as a workaround for .view list, .view:not(:selected), toolbar { background-color: $surface; } &.touch-selection, &.magnifier, &.osd {
scrolledwindow { viewport.frame { // avoid double borders when viewport inside scrolled window border-style: none;
background-color: transparent;
} // This is used when content is touch-dragged past boundaries.
list { padding: 4px; background-color: $base-alt; // This should not be necessary, but the parent stacksidebar ignores background-color.
// background-color: $background; // This should not be necessary, but the parent stacksidebar ignores background-color.
} row {
background-color: $surface; list { background-color: transparent;
// background-color: transparent;
} // remove extra space between box and .raven-header.bottom