[console/wip/exalm/gtk4: 9/13] 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: 9/13] terminal: Adjust bg to match @view_bg_color in dark
- Date: Thu, 28 Jul 2022 03:27:39 +0000 (UTC)
commit 2411f3905d392b9e438bb401a07d39248d97ecc4
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 b3e724f..91f4c01 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]