[console/wip/exalm/gtk4: 5/6] terminal: Adjust bg to match @view_bg_color in dark
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [console/wip/exalm/gtk4: 5/6] terminal: Adjust bg to match @view_bg_color in dark
- Date: Tue, 26 Jul 2022 11:53:24 +0000 (UTC)
commit c366651a61d935ad6e77b6f5f1865d35252d1072
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Jul 25 16:55:28 2022 +0400
terminal: Adjust bg to match @view_bg_color in dark
It's now dark enough that it's not horrible if we use it.
src/kgx-terminal.c | 2 +-
src/styles/_styles.scss | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/kgx-terminal.c b/src/kgx-terminal.c
index ba52472..87844d1 100644
--- a/src/kgx-terminal.c
+++ b/src/kgx-terminal.c
@@ -148,7 +148,7 @@ update_terminal_colors (KgxTerminal *self)
case KGX_THEME_AUTO:
default:
fg = (GdkRGBA) { 1.0, 1.0, 1.0, 1.0};
- bg = (GdkRGBA) { 0.05, 0.05, 0.05, 0.96 };
+ bg = (GdkRGBA) { 0.12, 0.12, 0.12, 0.96 };
break;
}
diff --git a/src/styles/_styles.scss b/src/styles/_styles.scss
index 834aa45..f2a6ee6 100644
--- a/src/styles/_styles.scss
+++ b/src/styles/_styles.scss
@@ -73,12 +73,10 @@
@if $variant == 'light' {
background: white;
} @else {
- $bg: rgb(0.05 * 255, 0.05 * 255, 0.05 * 255);
-
- background: transparentize($bg, 0.04);
+ background: gtkalpha(themecolor(view_bg_color), 0.96);
window.opaque & {
- background: $bg;
+ background: themecolor(view_bg_color);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]