aboutsummaryrefslogtreecommitdiffstats
path: root/domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'domain.c')
-rw-r--r--domain.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/domain.c b/domain.c
index c5ead3b..3a1faad 100644
--- a/domain.c
+++ b/domain.c
@@ -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;
}