netblue30 / firetools

Firejail GUI
GNU General Public License v2.0
221 stars 32 forks source link

dark theme addition for fstats #48

Open jonleivent opened 4 years ago

jonleivent commented 4 years ago

For dark theme users, the blue links in fstats can be very difficult to see, depending on the background color. I recommend a very simple addition to stats_dialog.cpp to remedy this:

  QString StatsDialog::header() {
    QString msg;
+   const char *color = getenv("FSTATS_LINK_COLOR");
+   if (color) {
+       msg += "<style>a:link { color: ";
+       msg += color;
+       msg += "; }</style>";
+   }
    if (mode_ == MODE_TOP) {