New search icon

This commit is contained in:
Jean-Patrick Guerrero 2020-12-25 19:21:19 +01:00
parent 24fdd07f56
commit a5e913f3a4
4 changed files with 5 additions and 5 deletions

@ -78,7 +78,7 @@ local MIN_FORMSPEC_VERSION = 4
local PNG = { local PNG = {
bg = "craftguide_bg.png", bg = "craftguide_bg.png",
bg_full = "craftguide_bg_full.png", bg_full = "craftguide_bg_full.png",
search = "craftguide_search_icon.png", search = "craftguide_search.png",
prev = "craftguide_next_icon.png^\\[transformFX", prev = "craftguide_next_icon.png^\\[transformFX",
next = "craftguide_next_icon.png", next = "craftguide_next_icon.png",
arrow = "craftguide_arrow.png", arrow = "craftguide_arrow.png",
@ -91,7 +91,7 @@ local PNG = {
furnace_anim = "craftguide_furnace_anim.png", furnace_anim = "craftguide_furnace_anim.png",
cancel_hover = "craftguide_cancel.png^\\[brighten", cancel_hover = "craftguide_cancel.png^\\[brighten",
search_hover = "craftguide_search_icon_hover.png", search_hover = "craftguide_search.png^\\[brighten",
prev_hover = "craftguide_next_icon_hover.png^\\[transformFX", prev_hover = "craftguide_next_icon_hover.png^\\[transformFX",
next_hover = "craftguide_next_icon_hover.png", next_hover = "craftguide_next_icon_hover.png",
} }
@ -119,7 +119,7 @@ local styles = sprintf([[
style[filter;border=false] style[filter;border=false]
style[cancel;fgimg=%s;fgimg_hovered=%s;content_offset=0] style[cancel;fgimg=%s;fgimg_hovered=%s;content_offset=0]
style[search;fgimg=%s;fgimg_hovered=%s] style[search;fgimg=%s;fgimg_hovered=%s;content_offset=0]
style[prev_page;fgimg=%s;fgimg_hovered=%s] style[prev_page;fgimg=%s;fgimg_hovered=%s]
style[next_page;fgimg=%s;fgimg_hovered=%s] style[next_page;fgimg=%s;fgimg_hovered=%s]
style[prev_recipe;fgimg=%s;fgimg_hovered=%s] style[prev_recipe;fgimg=%s;fgimg_hovered=%s]
@ -1533,12 +1533,12 @@ local function make_fs(data)
fs(fmt("bg9", 0, 0, data.xoffset, LINES + 1.7, PNG.bg_full, 10)) fs(fmt("bg9", 0, 0, data.xoffset, LINES + 1.7, PNG.bg_full, 10))
fs(sprintf([[ fs(sprintf([[
box[0.2,0.2;4,0.6;#bababa25] box[0.2,0.2;4.55,0.6;#bababa25]
set_focus[filter] set_focus[filter]
field[0.3,0.2;3.4,0.6;filter;;%s] field[0.3,0.2;3.4,0.6;filter;;%s]
field_close_on_enter[filter;false] field_close_on_enter[filter;false]
]], ESC(data.filter)), ]], ESC(data.filter)),
fmt("image_button", 4.25, 0.14, 0.7, 0.7, "", "search", "")) fmt("image_button", 4.25, 0.32, 0.35, 0.35, "", "search", ""))
if data.filter ~= "" then if data.filter ~= "" then
fs(fmt("image_button", 3.75, 0.35, 0.3, 0.3, "", "cancel", "")) fs(fmt("image_button", 3.75, 0.35, 0.3, 0.3, "", "cancel", ""))

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB