Skip to content

Commit

Permalink
Give chat tab fonts outlines only, no shadows
Browse files Browse the repository at this point in the history
FIXME: This should be done without individual font manipulations if possible.
  • Loading branch information
AntlerForce committed Dec 10, 2024
1 parent 79c4621 commit 3f379e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LuaMenu/widgets/chobby/components/chat_windows.lua
Original file line number Diff line number Diff line change
Expand Up @@ -537,21 +537,21 @@ function ChatWindows:SetTabActivation(tabName, activationLevel, outlineColor)
if (ctrl.activationLevel or 0) > activationLevel then
return
end
ctrl.font = Configuration:GetFont(8, "chat_badge_" .. activationLevel, {
ctrl.font = Configuration:GetFont(1, "chat_badge_" .. activationLevel, {
outline = true,
outlineColor = outlineColor,
color = outlineColor,
})
if ctrl._badge then
ctrl._badge.font = Configuration:GetFont(8, "chat_badge_" .. activationLevel, {
ctrl._badge.font = Configuration:GetFont(1, "chat_badge_" .. activationLevel, {
outline = true,
outlineColor = outlineColor,
color = outlineColor,
})
end
else
ctrl.font = Configuration:GetFont(8, "chat_badge_white", {
outline = false,
ctrl.font = Configuration:GetFont(1, "chat_badge_white", {
outline = true,
outlineColor = {0,0,0,1},
color = {1,1,1,1},
})
Expand All @@ -575,7 +575,7 @@ function ChatWindows:SetTabBadge(tabName, text)
width = 14,
height = 12,
caption = text,
objectOverrideFont = WG.Chobby.Configuration:GetFont(8, "chat_badge_black", {
objectOverrideFont = WG.Chobby.Configuration:GetFont(1, "chat_badge_black", {
outline = true,
autoOutlineColor = false,
outlineColor = { 0, 0, 0, 0.6 },
Expand Down

0 comments on commit 3f379e8

Please sign in to comment.