Battery history and statistics graphs markings are unreadable on a dark theme

Bug #1852172 reported by Rahul Jaisheel
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
ibam-applet
Fix Released
Unknown
gnome-power-manager (Ubuntu)
Triaged
Low
Unassigned

Bug Description

1 - Use a dark theme using Gnome Tweaks.
2 - Open Power Statistics
3 - Click on Laptop battery -> History or Statistics tab.

The markings on the X and Y axes are not readable since the text colour does not adapt to the dark theme.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: gnome-power-manager 3.32.0-1
ProcVersionSignature: Ubuntu 5.3.0-19.20-generic 5.3.1
Uname: Linux 5.3.0-19-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Nov 12 12:25:29 2019
ExecutablePath: /usr/bin/gnome-power-statistics
InstallationDate: Installed on 2019-10-19 (23 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
ProcEnviron:
 LANG=en_IN
 LANGUAGE=en_IN:en
 PATH=(custom, no user)
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
SourcePackage: gnome-power-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Rahul Jaisheel (9rj) wrote :
Changed in gnome-power-manager (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-power-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Hiroshi Miura (miurahr) wrote :

We can see a changed color of legend labels with modification of fixed color values.
It should be get from theme color instead of fixed value.

From ebe0b3a96deb7039c70843bece6b958bdf0b25f0 Mon Sep 17 00:00:00 2001
From: Hiroshi Miura <email address hidden>
Date: Sun, 25 Oct 2020 11:45:03 +0900
Subject: [PATCH] Change x/y label color

Signed-off-by: Hiroshi Miura <email address hidden>
---
 src/egg-graph-widget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/egg-graph-widget.c b/src/egg-graph-widget.c
index 7c2fc9e..75783b9 100644
--- a/src/egg-graph-widget.c
+++ b/src/egg-graph-widget.c
@@ -491,7 +491,7 @@ egg_graph_widget_draw_labels (EggGraphWidget *graph, cairo_t *cr)
  cairo_save (cr);

  /* do x text */
- cairo_set_source_rgb (cr, 0.2f, 0.2f, 0.2f);
+ cairo_set_source_rgb (cr, 0.5f, 0.5f, 0.5f);
  for (i = 0; i < 11; i++) {
   g_autofree gchar *text = NULL;
   b = priv->box_x + ((gdouble) i * divwidth);
--
2.25.1

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue has been reported upstream also on https://gitlab.gnome.org/GNOME/gnome-power-manager/-/issues/12

Changed in gnome-power-manager (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

There is also a fix being proposed by a contributor on https://gitlab.gnome.org/GNOME/gnome-power-manager/-/merge_requests/11

Changed in ibam-applet:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.