@@ -31,6 +31,17 @@ local function RefreshFonts()
3131 FONT_ROWS = ns .FONT_ROWS or FONT_ROWS
3232end
3333
34+ local function GetFontFlags ()
35+ if ns .GetFontFlags then
36+ local flags = ns .GetFontFlags ()
37+ if flags ~= nil then
38+ return flags
39+ end
40+ end
41+
42+ return " OUTLINE"
43+ end
44+
3445local MAP_TO_ZONE_KEY = {
3546 [2395 ] = " eversong" ,
3647 [2393 ] = " eversong" ,
@@ -428,14 +439,14 @@ BuildRaresFrame = function()
428439 UpdateMinBtn ()
429440
430441 local totalDoneLabel = titleBar :CreateFontString (nil , " OVERLAY" )
431- totalDoneLabel :SetFont (FONT_ROWS , 9 , " OUTLINE " )
442+ totalDoneLabel :SetFont (FONT_ROWS , 9 , GetFontFlags () )
432443 totalDoneLabel :SetTextColor (0.45 , 0.45 , 0.55 )
433444 totalDoneLabel :SetPoint (" RIGHT" , minBtn , " LEFT" , - 6 , 0 )
434445 totalDoneLabel :SetWordWrap (false )
435446 f .totalDoneLabel = totalDoneLabel
436447
437448 local titleTxt = titleBar :CreateFontString (nil , " OVERLAY" )
438- titleTxt :SetFont (FONT_HEADERS , 10 , " OUTLINE " )
449+ titleTxt :SetFont (FONT_HEADERS , 10 , GetFontFlags () )
439450 titleTxt :SetPoint (" LEFT" , titleIcon , " RIGHT" , 5 , 0 )
440451 titleTxt :SetPoint (" RIGHT" , totalDoneLabel , " LEFT" , - 6 , 0 )
441452 titleTxt :SetJustifyH (" LEFT" )
@@ -654,18 +665,18 @@ BuildRaresFrame = function()
654665 stripe :SetColorTexture (cr , cg , cb , 1 )
655666
656667 local arrow = zHdr :CreateFontString (nil , " OVERLAY" )
657- arrow :SetFont (FONT_ROWS , 9 , " OUTLINE " )
668+ arrow :SetFont (FONT_ROWS , 9 , GetFontFlags () )
658669 arrow :SetPoint (" LEFT" , zHdr , " LEFT" , 10 , 1 )
659670 arrow :SetText (isCollapsed and " |cff555555+|r" or " |cff777777-|r" )
660671
661672 local zName = zHdr :CreateFontString (nil , " OVERLAY" )
662- zName :SetFont (FONT_HEADERS , 10 , " OUTLINE " )
673+ zName :SetFont (FONT_HEADERS , 10 , GetFontFlags () )
663674 zName :SetPoint (" LEFT" , arrow , " RIGHT" , 5 , 0 )
664675 zName :SetTextColor (cr , cg , cb )
665676 zName :SetText (zone .label )
666677
667678 local zCount = zHdr :CreateFontString (nil , " OVERLAY" )
668- zCount :SetFont (FONT_ROWS , 9 , " OUTLINE " )
679+ zCount :SetFont (FONT_ROWS , 9 , GetFontFlags () )
669680 zCount :SetPoint (" RIGHT" , zHdr , " RIGHT" , - 8 , 0 )
670681 zCount :SetTextColor (0.5 , 0.5 , 0.5 )
671682
@@ -756,7 +767,7 @@ BuildRaresFrame = function()
756767 dot :SetColorTexture (0.28 , 0.28 , 0.28 , 1 )
757768
758769 local lbl = body :CreateFontString (nil , " OVERLAY" )
759- lbl :SetFont (FONT_ROWS , db .raresFontSize or 9 , " OUTLINE " )
770+ lbl :SetFont (FONT_ROWS , db .raresFontSize or 9 , GetFontFlags () )
760771 lbl :SetPoint (" TOPLEFT" , body , " TOPLEFT" , xPos + DOT_SIZE + 5 , yPos )
761772 lbl :SetWidth (colW - DOT_SIZE - 10 )
762773 lbl :SetHeight (ROW_H )
@@ -981,7 +992,7 @@ local function BuildRaresConfigFrame()
981992 tbar :SetScript (" OnDragStop" , function () f :StopMovingOrSizing () end )
982993
983994 local ttitle = tbar :CreateFontString (nil , " OVERLAY" )
984- ttitle :SetFont (FONT_HEADERS , 10 , " OUTLINE " )
995+ ttitle :SetFont (FONT_HEADERS , 10 , GetFontFlags () )
985996 ttitle :SetText (L [" Rares_Config_Title" ])
986997 ttitle :SetPoint (" LEFT" , tbar , " LEFT" , 8 , 0 )
987998
@@ -1047,7 +1058,7 @@ PopulateRaresConfig = function(f)
10471058 btn :SetBackdropBorderColor (isActive and 0.22 or 0.16 , isActive and 0.82 or 0.28 , isActive and 0.70 or 0.36 , 1 )
10481059
10491060 local lbl = btn :CreateFontString (nil , " OVERLAY" )
1050- lbl :SetFont (FONT_ROWS , cfgFs , " OUTLINE " )
1061+ lbl :SetFont (FONT_ROWS , cfgFs , GetFontFlags () )
10511062 lbl :SetPoint (" CENTER" )
10521063 lbl :SetText (tab .label )
10531064 lbl :SetTextColor (isActive and 0.85 or 0.62 , isActive and 1.0 or 0.75 , isActive and 0.92 or 0.70 )
@@ -1141,7 +1152,7 @@ PopulateRaresConfig = function(f)
11411152 pb :SetBackdropColor (isActive and 0.12 or 0.05 , isActive and 0.35 or 0.10 , isActive and 0.32 or 0.18 , syncFs and 0.4 or 1 )
11421153 pb :SetBackdropBorderColor (isActive and 0.25 or 0.18 , isActive and 0.85 or 0.40 , isActive and 0.70 or 0.45 , syncFs and 0.4 or 1 )
11431154 local pfs = pb :CreateFontString (nil , " OVERLAY" )
1144- pfs :SetFont (FONT_ROWS , cfgFs , " OUTLINE " )
1155+ pfs :SetFont (FONT_ROWS , cfgFs , GetFontFlags () )
11451156 pfs :SetPoint (" CENTER" )
11461157 pfs :SetText (p [1 ])
11471158 pfs :SetTextColor (syncFs and 0.35 or (isActive and 0.2 or 0.6 ), syncFs and 0.35 or (isActive and 0.95 or 0.75 ), syncFs and 0.35 or (isActive and 0.75 or 0.65 ))
@@ -1220,7 +1231,7 @@ PopulateRaresConfig = function(f)
12201231 swatch :SetPoint (" RIGHT" , rowFr , " RIGHT" , 0 , 0 )
12211232
12221233 nameLbl = rowFr :CreateFontString (nil , " OVERLAY" )
1223- nameLbl :SetFont (FONT_ROWS , 10 , " OUTLINE " )
1234+ nameLbl :SetFont (FONT_ROWS , 10 , GetFontFlags () )
12241235 nameLbl :SetPoint (" LEFT" , rowFr , " LEFT" , 0 , 0 )
12251236 nameLbl :SetPoint (" RIGHT" , swatch , " LEFT" , - 4 , 0 )
12261237 nameLbl :SetText (zone .label )
0 commit comments