some ui improvements

This commit is contained in:
Manuel Simon Hirsig
2016-08-07 03:13:15 +02:00
parent c0db070798
commit 0c3613c305
4 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -911,9 +911,9 @@ function private.remove_post_filter()
end
function private.update_filter_display()
local lines = aux.util.size(aux.util.filter(m.post_components, function(component) return component[1] == 'operator' and component[2] ~= 'not' end))
local width_scale = max(260/m.filter_display:GetStringWidth())
local height_scale = min((200 / lines) / 18)
local lines = aux.util.size(aux.util.filter(m.post_components, function(component) return not (component[1] == 'operator' and component[2] == 'not') end))
local width_scale = 250/m.filter_display:GetStringWidth()
local height_scale = (180 / lines) / 18
m.filter_display.scale_frame:SetScale(min(1, width_scale, height_scale))
m.filter_display:SetText(aux.filter.indented_post_query_string(m.post_components))
end
+4 -4
View File
@@ -258,7 +258,7 @@ aux.search_tab.FRAMES(function(m, public, private)
aux.gui.horizontal_line(m.frame, -40)
end
do
local btn = aux.gui.button(m.frame, aux.gui.config.large_font_size)
local btn = aux.gui.button(m.frame, aux.gui.config.large_font_size2)
btn:SetPoint('BOTTOMLEFT', AuxFrameContent, 'TOPLEFT', 10, 8)
btn:SetWidth(243)
btn:SetHeight(22)
@@ -267,7 +267,7 @@ aux.search_tab.FRAMES(function(m, public, private)
private.search_results_button = btn
end
do
local btn = aux.gui.button(m.frame, aux.gui.config.large_font_size)
local btn = aux.gui.button(m.frame, aux.gui.config.large_font_size2)
btn:SetPoint('TOPLEFT', m.search_results_button, 'TOPRIGHT', 5, 0)
btn:SetWidth(243)
btn:SetHeight(22)
@@ -276,7 +276,7 @@ aux.search_tab.FRAMES(function(m, public, private)
private.saved_searches_button = btn
end
do
local btn = aux.gui.button(m.frame, aux.gui.config.large_font_size)
local btn = aux.gui.button(m.frame, aux.gui.config.large_font_size2)
btn:SetPoint('TOPLEFT', m.saved_searches_button, 'TOPRIGHT', 5, 0)
btn:SetWidth(243)
btn:SetHeight(22)
@@ -541,7 +541,7 @@ aux.search_tab.FRAMES(function(m, public, private)
aux.gui.set_content_style(frame)
local scale_frame = CreateFrame('Frame', nil, frame)
scale_frame:SetAllPoints()
local display = aux.gui.label(scale_frame, aux.gui.config.large_font_size)
local display = aux.gui.label(scale_frame, aux.gui.config.large_font_size2)
display:SetAllPoints()
display:SetJustifyH('LEFT')
display:SetJustifyV('TOP')