aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2024-08-31 08:24:55 -0500
committerGitHub <noreply@github.com>2024-08-31 15:24:55 +0200
commitcbda03ed6c1ef8a2ff006be716c9b61cf565bcc8 (patch)
tree23dac280b10cfe57ce8cd737ccf459fb32cdd099 /src/courtroom.cpp
parentc4d94cec42ea35d3b28cb1aec8b37991fc605a11 (diff)
[Refactor] Update font outline code to account for offsets
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 2d301081..b8e8625b 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1294,9 +1294,9 @@ void Courtroom::set_qfont(QWidget *widget, QString class_name, QFont font, QColo
if (class_name == "AOChatboxLabel")
{ // Only shownames can be outlined
ui_vp_showname->setIsOutlined(outlined);
- ui_vp_showname->setOutlineColor(outline_color);
- ui_vp_showname->setTextColor(f_color);
- ui_vp_showname->setOutlineWidth(outline_width);
+ ui_vp_showname->setBrush(QBrush(f_color));
+ ui_vp_showname->setPen(QPen(outline_color));
+ ui_vp_showname->setOutlineThickness(outline_width);
}
font.setBold(bold);