[Debian-on-mobile-maintainers] [Git][gnome-team/gnome-console][debian/master] 2 commits: Add patch to set background to purple on Ubuntu

Jeremy Bicha (@jbicha) gitlab at salsa.debian.org
Wed Aug 16 03:58:48 BST 2023



Jeremy Bicha pushed to branch debian/master at GNOME / gnome-console


Commits:
10481b3f by Jeremy Bícha at 2023-08-15T22:56:06-04:00
Add patch to set background to purple on Ubuntu

LP: #1977769

- - - - -
0072258b by Jeremy Bícha at 2023-08-15T22:57:53-04:00
releasing package gnome-console version 45~beta-1

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/background-set-Ubuntu-purple.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,8 +1,10 @@
-gnome-console (45~beta-1) UNRELEASED; urgency=medium
+gnome-console (45~beta-1) experimental; urgency=medium
 
   * New upstream release
+  * debian/control.in: Bump minimum GTK4, glib, and libadwaita
+  * Add patch to set background to purple on Ubuntu (LP: #1977769)
 
- -- Jeremy Bícha <jbicha at ubuntu.com>  Wed, 09 Aug 2023 14:43:43 -0400
+ -- Jeremy Bícha <jbicha at ubuntu.com>  Tue, 15 Aug 2023 22:56:59 -0400
 
 gnome-console (44.0-2) unstable; urgency=medium
 


=====================================
debian/patches/background-set-Ubuntu-purple.patch
=====================================
@@ -0,0 +1,42 @@
+From: =?utf-8?q?Jeremy_B=C3=ADcha?= <jeremy.bicha at canonical.com>
+Date: Wed, 9 Aug 2023 15:22:19 -0400
+Subject: background: set Ubuntu purple
+
+Ubuntu only has a single purple for the terminal background color
+which is a dark background so we can't make the foreground color
+different between Light and Dark styles.
+
+Only make this change on Ubuntu and set it universally regardless
+of desktop session
+---
+ src/kgx-terminal.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/src/kgx-terminal.c b/src/kgx-terminal.c
+index 233abb1..f5bb294 100644
+--- a/src/kgx-terminal.c
++++ b/src/kgx-terminal.c
+@@ -139,6 +139,7 @@ update_terminal_colours (KgxTerminal *self)
+   KgxTheme resolved_theme;
+   GdkRGBA fg;
+   GdkRGBA bg;
++  char *os_name;
+ 
+   // Workings of GDK_RGBA prevent this being static
+   GdkRGBA palette[16] = {
+@@ -160,6 +161,15 @@ update_terminal_colours (KgxTerminal *self)
+     GDK_RGBA ("f6f5f4"), // Bright White
+   };
+ 
++  // Set colors for Ubuntu regardless of dark style
++  os_name = g_get_os_info (G_OS_INFO_KEY_NAME);
++  if (!g_strcmp0(os_name, "Ubuntu")) {
++      fg = (GdkRGBA) { 1.0, 1.0, 1.0, 1.0};
++      bg = (GdkRGBA) { 0.188, 0.039, 0.141, 1.0 };
++      vte_terminal_set_colors (VTE_TERMINAL (self), &fg, &bg, palette, 16);
++      return;
++   }
++
+   if (!self->settings) {
+     return;
+   }


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 Open-new-tabs-in-the-current-folder.patch
+background-set-Ubuntu-purple.patch



View it on GitLab: https://salsa.debian.org/gnome-team/gnome-console/-/compare/90f3a7966f5a2b9fde0af2a6890572800e084498...0072258bd664035f74dbc78eac7d368da6772442

-- 
View it on GitLab: https://salsa.debian.org/gnome-team/gnome-console/-/compare/90f3a7966f5a2b9fde0af2a6890572800e084498...0072258bd664035f74dbc78eac7d368da6772442
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20230816/f9dc3d7b/attachment-0001.htm>


More information about the Debian-on-mobile-maintainers mailing list