gui refactoring and restyling

This commit is contained in:
Manuel Simon Hirsig
2016-07-26 03:28:31 +02:00
parent abba589092
commit 2aae68702e
3 changed files with 10 additions and 13 deletions
+7 -9
View File
@@ -10,18 +10,18 @@ Aux.search_tab.FRAMES(function(m, public, private)
m.frame.results = Aux.gui.panel(m.frame)
m.frame.results:SetAllPoints(AuxFrameContent)
m.frame.saved = Aux.gui.panel(m.frame)
m.frame.saved = CreateFrame('Frame', nil, m.frame)
m.frame.saved:SetAllPoints(AuxFrameContent)
m.frame.saved.favorite = Aux.gui.panel(m.frame.saved)
m.frame.saved.favorite:SetWidth(373)
m.frame.saved.favorite:SetPoint('TOPLEFT', 4, -4)
m.frame.saved.favorite:SetPoint('BOTTOMLEFT', 4, 4)
m.frame.saved.favorite:SetWidth(378.5)
m.frame.saved.favorite:SetPoint('TOPLEFT', 0, 0)
m.frame.saved.favorite:SetPoint('BOTTOMLEFT', 0, 0)
m.frame.saved.recent = Aux.gui.panel(m.frame.saved)
m.frame.saved.recent:SetWidth(373)
m.frame.saved.recent:SetPoint('TOPRIGHT', -4, -4)
m.frame.saved.recent:SetPoint('BOTTOMRIGHT', -4, 4)
m.frame.saved.recent:SetWidth(378.5)
m.frame.saved.recent:SetPoint('TOPRIGHT', 0, 0)
m.frame.saved.recent:SetPoint('BOTTOMRIGHT', 0, 0)
do
local btn = Aux.gui.button(m.frame, 22)
btn:SetPoint('TOPLEFT', 0, 0)
@@ -777,8 +777,6 @@ Aux.search_tab.FRAMES(function(m, public, private)
m.recent_searches_listing:SetHandler('OnEnter', handlers.OnEnter)
m.recent_searches_listing:SetHandler('OnLeave', handlers.OnLeave)
Aux.gui.vertical_line(m.frame.saved, 379)
private.favorite_searches_listing = Aux.listing.CreateScrollingTable(m.frame.saved.favorite)
m.favorite_searches_listing:SetColInfo({{name='Favorite Searches', width=1}})
m.favorite_searches_listing:EnableSorting(false)