Skip to content

Commit

Permalink
FIX(client,theme): Use fixed dark font color for themeless notice labels
Browse files Browse the repository at this point in the history
Previously, all "notice" labels had no font color assigned. That means they
would use the selected themes default font color. This is fine, if
the user would select any theme in Mumble.
However, if the user would select the 'None' theme, the font color
would default to the systems default font color. And, if the user
had a dark system theme, that would usually mean a very bright font
color.
That very bright font color clashes with the hard-coded faint yellow
and is therefore hard to read.

This commit hard-codes a dark font color for the notices. This
will of course still be overwritten by the Mumble themes, if selected.

Fixes mumble-voip#6160
  • Loading branch information
Hartmnt committed Nov 2, 2023
1 parent 5d89561 commit 1dd7b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mumble/Themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ bool Themes::readStylesheet(const QString &stylesheetFn, QString &stylesheetCont

QString Themes::getDefaultStylesheet() {
return QLatin1String(".log-channel{text-decoration:none;}.log-user{text-decoration:none;}p{margin:0;}#qwMacWarning,"
"#qwInlineNotice{background-color:#FFFEDC;border-radius:5px;border:1px solid #B5B59E;}");
"#qwInlineNotice{background-color:#FFFEDC;border-radius:5px;border:1px solid #B5B59E;color:#333;}");
}

0 comments on commit 1dd7b57

Please sign in to comment.