SpartanUI

SpartanUI

5M Downloads

Transparent Colors

Whatsatotem opened this issue ยท 2 comments

commented

transparent

Suggested by: Pachari (Discord)
have a setting that changes Player/Target colors to either match (the artwork), or make separate colors for Player/Target

commented

This was added back in August last year 0f02be2 and was part of 5.0.0 release. Closing this got missed.

commented

Hey, this is Pachari from discord!

I looked into it and added another Color Chooser to Spartan_Style_Transparent/Style.lua by adding the following to module:SetupMenus

PlayerColor = { name = L['ArtColor'], type = 'color', hasAlpha = true, order = 1, width = 'full', get = function(info) return unpack(SUI.DB.Styles.Transparent.Color.PlayerFrames) end, set = function(info, r, b, g, a) SUI.DB.Styles.Transparent.Color.PlayerFrames = {r, b, g, a} module:SetColor() end }

This will let the user choose both colors for player and artwork separately.
Also I'm not sure how to adjust the language file for translating UnitFramePlayer.
(I don't know how to put newlines in the code-part, sorry about that)

sui