big refactoring
This commit is contained in:
@@ -195,12 +195,12 @@ function public.formatted_post_filter(components)
|
||||
elseif i > 1 then
|
||||
str = str..'</p><p>'
|
||||
for _=1,getn(stack) do
|
||||
str = str..gui.color.content.background('----')
|
||||
str = str..color.content.background('----')
|
||||
end
|
||||
end
|
||||
no_line_break = component[1] == 'operator' and component[2] == 'not'
|
||||
|
||||
local filter_color = (filter_builder_state.selected == i and gui.color.orange or gui.color.aux)
|
||||
local filter_color = (filter_builder_state.selected == i and color.orange or color.aux)
|
||||
local component_text = filter_color(component[2])
|
||||
if component[1] == 'operator' and component[2] ~= 'not' then
|
||||
component_text = component_text..filter_color(tonumber(component[3]) or '')
|
||||
|
||||
@@ -54,7 +54,7 @@ function create_frames()
|
||||
do
|
||||
local panel = CreateFrame('Frame', nil, frame)
|
||||
panel:SetBackdrop{bgFile=[[Interface\Buttons\WHITE8X8]]}
|
||||
panel:SetBackdropColor(unpack(gui.color.content.background))
|
||||
panel:SetBackdropColor(color.content.background())
|
||||
panel:SetPoint('LEFT', settings_button, 'RIGHT', 0, 0)
|
||||
panel:SetPoint('RIGHT', 0, 0)
|
||||
panel:SetHeight(42)
|
||||
@@ -76,9 +76,9 @@ function create_frames()
|
||||
this:SetText(valid_input)
|
||||
end
|
||||
if blizzard_page_index(this:GetText()) and not real_time_button:GetChecked() then
|
||||
this:SetBackdropColor(gui.color.state.enabled())
|
||||
this:SetBackdropColor(color.state.enabled())
|
||||
else
|
||||
this:SetBackdropColor(gui.color.state.disabled())
|
||||
this:SetBackdropColor(color.state.disabled())
|
||||
end
|
||||
end
|
||||
do
|
||||
@@ -92,7 +92,7 @@ function create_frames()
|
||||
local label = gui.label(editbox, 16)
|
||||
label:SetPoint('RIGHT', editbox, 'LEFT', -6, 0)
|
||||
label:SetText('Pages')
|
||||
label:SetTextColor(gui.color.text.enabled())
|
||||
label:SetTextColor(color.text.enabled())
|
||||
first_page_input = editbox
|
||||
end
|
||||
do
|
||||
@@ -106,7 +106,7 @@ function create_frames()
|
||||
local label = gui.label(editbox, gui.config.medium_font_size)
|
||||
label:SetPoint('RIGHT', editbox, 'LEFT', -3.5, 0)
|
||||
label:SetText('-')
|
||||
label:SetTextColor(gui.color.text.enabled())
|
||||
label:SetTextColor(color.text.enabled())
|
||||
last_page_input = editbox
|
||||
end
|
||||
end
|
||||
@@ -217,7 +217,7 @@ function create_frames()
|
||||
btn:SetPoint('RIGHT', start_button, 'LEFT', -4, 0)
|
||||
btn:SetWidth(70)
|
||||
btn:SetHeight(25)
|
||||
btn:SetText(gui.color.green 'Resume')
|
||||
btn:SetText(color.green 'Resume')
|
||||
btn:SetScript('OnClick', function()
|
||||
execute(true)
|
||||
end)
|
||||
@@ -579,7 +579,7 @@ function create_frames()
|
||||
local scroll_child = CreateFrame('SimpleHTML', nil, scroll_frame)
|
||||
scroll_frame:SetScrollChild(scroll_child)
|
||||
scroll_child:SetFont('p', [[Fonts\ARIALN.TTF]], 23)
|
||||
scroll_child:SetTextColor('p', gui.color.label.enabled())
|
||||
scroll_child:SetTextColor('p', color.label.enabled())
|
||||
scroll_child:SetWidth(1)
|
||||
scroll_child:SetHeight(1)
|
||||
scroll_child:SetScript('OnHyperlinkClick', data_link_click)
|
||||
|
||||
Reference in New Issue
Block a user