From c378e27074a544a3e65bc94fef6a8163df335473 Mon Sep 17 00:00:00 2001 From: gretj Date: Sat, 28 Jun 2025 15:36:41 +0200 Subject: [PATCH] rename legacy theme to modern --- README.md | 4 ++-- core/slash.lua | 6 +++--- gui/core.lua | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 76d836a..fd30292 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # aux Turtle -* Now comes with a new blizz-like theme by default thanks to Oldmana. Use **/aux theme blizzard** or **/aux theme legacy** to switch between them. +* Now comes with a new blizz-like theme by default thanks to Oldmana. Use **/aux theme blizzard** or **/aux theme modern** to switch between them. * Shares some price data through the LFT chat when searching the AH, use **/aux sharing** to disable sending and receiving data. * Accurate auction durations for Turtle WoW. * Autocompletion for custom Turtle WoW items. @@ -60,7 +60,7 @@ The most advanced auction house addOn for the 1.12 client with some features mor **/aux crafting cost** (Toggles the crafting price information)
**/aux post duration _hours_** (Sets the default auction duration to _2_/_8_/_24_ hours)
**/aux sharing** (Enable or disable auction data sharing as described above)
-**/aux theme _blizzard|legacy_** (Switch between the two themes)
+**/aux theme _blizzard|modern_** (Switch between the two themes)
### Tooltip **/aux tooltip value**
**/aux tooltip daily**
diff --git a/core/slash.lua b/core/slash.lua index 9c60b2d..83a63d7 100644 --- a/core/slash.lua +++ b/core/slash.lua @@ -66,8 +66,8 @@ function SlashCmdList.AUX(command) elseif arguments[1] == 'sharing' then aux.account_data.sharing = not aux.account_data.sharing aux.print('sharing ' .. status(aux.account_data.sharing)) - elseif arguments[1] == 'theme' and (arguments[2] == nil or (arguments[2] == 'legacy' or arguments[2] == 'blizzard')) then - aux.account_data.theme = arguments[2] or (aux.account_data.theme == 'blizzard' and 'legacy' or 'blizzard') + elseif arguments[1] == 'theme' and (arguments[2] == nil or (arguments[2] == 'modern' or arguments[2] == 'blizzard')) then + aux.account_data.theme = arguments[2] or (aux.account_data.theme == 'blizzard' and 'modern' or 'blizzard') aux.print('theme ' .. aux.color.blue(aux.account_data.theme)) warn_reload() elseif arguments[1] == 'show' and arguments[2] == 'hidden' then @@ -91,7 +91,7 @@ function SlashCmdList.AUX(command) aux.print('- populate wdb') aux.print('- sharing [' .. status(aux.account_data.sharing) .. ']') aux.print('- theme [' .. aux.color[aux.account_data.theme == 'blizzard' and 'green' or 'red']('blizzard') .. ' | ' .. - aux.color[aux.account_data.theme == 'legacy' and 'green' or 'red']('legacy') .. ']') + aux.color[aux.account_data.theme == 'modern' and 'green' or 'red']('modern') .. ']') aux.print('- show hidden [' .. status(aux.account_data.showhidden) .. ']') end end \ No newline at end of file diff --git a/gui/core.lua b/gui/core.lua index 761beec..af8cc16 100644 --- a/gui/core.lua +++ b/gui/core.lua @@ -110,7 +110,7 @@ end local using_blizzard_theme = true function M.set_global_theme(theme) - using_blizzard_theme = theme ~= 'legacy' + using_blizzard_theme = theme ~= 'modern' end function M.is_blizzard()