diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-21 18:00:13 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-21 18:00:13 +0200 |
commit | e59072948b6b98844e1cb690b0605e142b0dd8bc (patch) | |
tree | 1ef1a1ab0ef43408af5b1c652991d6a3f6dbc77b /domain.c | |
parent | e1b4ad5d68692d93cb9099594c8e6c3991c23571 (diff) | |
download | vconsole-e59072948b6b98844e1cb690b0605e142b0dd8bc.tar.gz |
dark mode
Diffstat (limited to 'domain.c')
-rw-r--r-- | domain.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -326,6 +326,7 @@ static int domain_update_info(struct vconsole_domain *dom, virDomainPtr d) static void domain_update_tree_store(struct vconsole_domain *dom, GtkTreeIter *guest) { + bool darkmode = dom->conn->win->darkmode; const char *foreground; char load[16], mem[16]; PangoWeight weight; @@ -333,11 +334,11 @@ static void domain_update_tree_store(struct vconsole_domain *dom, switch (dom->info.state) { case VIR_DOMAIN_RUNNING: - foreground = "darkgreen"; + foreground = darkmode ? "lightgreen" : "darkgreen"; weight = PANGO_WEIGHT_BOLD; break; default: - foreground = "black"; + foreground = darkmode ? "white" : "black"; weight = PANGO_WEIGHT_NORMAL; break; } |