big refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-22 22:50:37 +02:00
parent f1b7c3ef4a
commit 7faab39013
8 changed files with 48 additions and 48 deletions
+7 -7
View File
@@ -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)