Skip to content

Commit 46bdd6b

Browse files
committed
feat: UI polish, unified color scheme, remove debug spam
1 parent a8d4187 commit 46bdd6b

File tree

6 files changed

+26
-25
lines changed

6 files changed

+26
-25
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## [1.2.2] - 2025-02-03
4+
5+
### Changed
6+
- **UI color scheme refresh**: Unified dark neutral theme replacing blue accents
7+
- **Tighter currency spacing**: Reduced spacing around separators in totals display
8+
9+
### Fixed
10+
- **Debug messages removed**: Cleaned up chat spam from debug prints running outside debug mode
11+
312
## [1.2.1] - 2025-02-03
413

514
### Added

Core.lua

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ function HonorLog:RestoreBGState()
111111
bgStartHonor = state.bgStartHonor
112112
bgHonorAccumulated = state.bgHonorAccumulated or 0
113113
isInBG = state.isInBG
114-
print("|cff00ff00[HonorLog]|r Restored BG state: " .. tostring(currentBG) .. ", honor: " .. tostring(bgHonorAccumulated))
114+
if debugMode then
115+
print("|cff00ff00[HonorLog]|r Restored BG state: " .. tostring(currentBG) .. ", honor: " .. tostring(bgHonorAccumulated))
116+
end
115117
end
116118
end
117119

@@ -924,17 +926,11 @@ end
924926

925927
-- Player logout - save current GetTime() for reload detection
926928
function HonorLog:PLAYER_LOGOUT()
927-
-- Debug: always print when this fires
928-
print("|cff00ff00[HonorLog]|r PLAYER_LOGOUT fired! GetTime()=" .. string.format("%.1f", GetTime()))
929-
930929
if self.db and self.db.char then
931930
-- Store current GetTime() - on /reload this value will be less than GetTime() at next load
932931
-- On fresh login after logout, GetTime() will have reset, so it will be less than this stored value
933932
self.db.char.lastGameTime = GetTime()
934933
self.db.char.wasLogout = true -- Keep for backwards compatibility
935-
print("|cff00ff00[HonorLog]|r Saved lastGameTime=" .. string.format("%.1f", self.db.char.lastGameTime))
936-
else
937-
print("|cffff0000[HonorLog]|r ERROR: self.db or self.db.char is nil!")
938934
end
939935
end
940936

Data.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function HonorLog:InitializeDB()
213213
end
214214

215215
if shouldResetSession then
216-
print("|cff00ff00[HonorLog]|r New day detected - resetting daily stats for " .. date("%Y-%m-%d", now))
216+
-- Silent reset - no chat spam
217217
HonorLogCharDB.session = DeepCopy(DEFAULTS.char.session)
218218
HonorLogCharDB.bgState = DeepCopy(DEFAULTS.char.bgState)
219219
HonorLogCharDB.sessionStartTime = 0 -- Deprecated, kept for backwards compatibility

HonorLog.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Title: HonorLog
33
## Notes: Track battleground and world PvP statistics with gear goal tracking, hourly honor rates, and session/lifetime stats for TBC Classic Anniversary
44
## Author: adbergen
5-
## Version: 1.2.1
5+
## Version: 1.2.2
66
## SavedVariables: HonorLogDB
77
## SavedVariablesPerCharacter: HonorLogCharDB
88

UI/MainFrame.lua

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ local function CreateInnerShadow(frame)
7070
return shadow
7171
end
7272

73-
-- Create glow border
73+
-- Create glow border (rounded)
7474
local function CreateGlowBorder(frame, color)
7575
local glow = CreateFrame("Frame", nil, frame, "BackdropTemplate")
76-
glow:SetPoint("TOPLEFT", -2, 2)
77-
glow:SetPoint("BOTTOMRIGHT", 2, -2)
76+
glow:SetPoint("TOPLEFT", -3, 3)
77+
glow:SetPoint("BOTTOMRIGHT", 3, -3)
7878
glow:SetBackdrop({
7979
bgFile = nil,
80-
edgeFile = "Interface\\ChatFrame\\ChatFrameBackground",
81-
edgeSize = 2,
80+
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
81+
edgeSize = 12,
8282
})
8383
glow:SetBackdropBorderColor(unpack(color or COLORS.borderGlow))
8484
glow:SetFrameLevel(frame:GetFrameLevel() - 1)
@@ -185,11 +185,7 @@ local function CreateMainFrame()
185185
insets = { left = 4, right = 4, top = 4, bottom = 4 },
186186
})
187187
frame:SetBackdropColor(unpack(COLORS.bgPrimary))
188-
frame:SetBackdropBorderColor(unpack(COLORS.borderDark))
189-
190-
-- Outer glow effect
191-
local outerGlow = CreateGlowBorder(frame, COLORS.borderGlow)
192-
frame.outerGlow = outerGlow
188+
frame:SetBackdropBorderColor(0.18, 0.18, 0.22, 1) -- Clean dark border
193189

194190
----------------------------------------------------------------------------
195191
-- HEADER

UI/Theme.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ HonorLog.Theme = {
1818
-- Accent gradients
1919
headerGradientTop = { 0.18, 0.18, 0.24, 1 },
2020
headerGradientBot = { 0.10, 0.10, 0.14, 1 },
21-
accentGlow = { 0.30, 0.70, 0.95, 0.15 },
21+
accentGlow = { 0.25, 0.25, 0.30, 0.15 }, -- Neutral (was blue)
2222

2323
-- Borders
2424
borderDark = { 0.06, 0.06, 0.08, 1 },
2525
borderLight = { 0.30, 0.30, 0.38, 0.8 },
26-
borderGlow = { 0.40, 0.75, 1.0, 0.25 },
27-
borderAccent = { 0.35, 0.65, 0.90, 0.6 },
26+
borderGlow = { 0.20, 0.22, 0.25, 0.4 }, -- Subtle dark glow (was blue)
27+
borderAccent = { 0.30, 0.32, 0.35, 0.8 }, -- Neutral accent (was blue)
2828

2929
-- Status colors
3030
win = { 0.30, 0.90, 0.40, 1 },
@@ -43,14 +43,14 @@ HonorLog.Theme = {
4343
textMuted = { 0.38, 0.38, 0.45, 1 },
4444

4545
-- Brand accent
46-
accent = { 0.35, 0.78, 1.0, 1 },
47-
accentDim = { 0.25, 0.55, 0.75, 0.8 },
46+
accent = { 0.85, 0.75, 0.45, 1 }, -- Warm gold for labels (was blue)
47+
accentDim = { 0.25, 0.27, 0.30, 0.9 }, -- Dark neutral for borders (was blue)
4848
brand = { 0.25, 0.85, 0.45, 1 },
4949
brandDim = { 0.18, 0.60, 0.32, 0.8 },
5050

5151
-- Separators
5252
separator = { 0.25, 0.25, 0.32, 0.6 },
53-
separatorGlow = { 0.35, 0.65, 0.90, 0.2 },
53+
separatorGlow = { 0.30, 0.30, 0.35, 0.3 }, -- Neutral (was blue)
5454

5555
-- Progress colors (for goal tracking)
5656
progressFull = { 0.30, 0.90, 0.40, 1 },

0 commit comments

Comments
 (0)