From aeeac6ac1b31f3b336846a4183f8a4b0b6589ea7 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 14 Aug 2022 19:32:16 +0200 Subject: [PATCH] New highlight look --- src/gui.lua | 2 +- src/styles.lua | 1 + textures/i3_bg_goto.png | Bin 2298 -> 1858 bytes textures/i3_highlight.png | Bin 0 -> 70 bytes textures/i3_search_outline_trim.png | Bin 4912 -> 304 bytes 5 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 textures/i3_highlight.png diff --git a/src/gui.lua b/src/gui.lua index 75410d0..6a1d03d 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -462,7 +462,7 @@ local function get_container(fs, data, player, yoffset, ctn_len, award_list, awa end box(0, yextra + 0.45, ctn_len, 0.045, "#bababa50") - box((data.subcat - 1) * 1.18, yextra + 0.45, 1, 0.045, "#f9826c") + image((data.subcat - 1) * 1.18, yextra + 0.45, 1, 0.045, PNG.highlight) local function not_installed(modname) hypertext(0, yextra + 0.9, ctn_len, 0.6, "not_installed", diff --git a/src/styles.lua b/src/styles.lua index 66fab38..d09fd5b 100644 --- a/src/styles.lua +++ b/src/styles.lua @@ -8,6 +8,7 @@ local PNG = { bg_content = "i3_bg_content.png", bar = "i3_bar.png", hotbar = "i3_hotbar.png", + highlight = "i3_highlight.png", search = "i3_search.png", heart = "i3_heart.png", heart_half = "i3_heart_half.png", diff --git a/textures/i3_bg_goto.png b/textures/i3_bg_goto.png index f7b6acd8e5e0aa962ad7b5b6874f578f33b48fbf..6f69b91c7575bc6129c6b04c41c37b2539c6d47e 100644 GIT binary patch delta 11 Scmew*c!+O;^5)x&^6UT}ssuy; delta 452 zcmV;#0XzP}4*C(0BYy#eX+uL$Nkc;*aB^>EX>4Tx04R}tkv&MmKpe$iQ>CR;1nnT= zkfAzRC@SKpRVYG*P%E_RU~=gfG-*g$TpR`0f`cE6RR|&*hS;^Fhr--Afrc=INqOOPN! zK^&@IM1rddFXF0yCeaH#%DM2VYx+aU}9 u000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2j&P45G@srw{y9%At48I&B2}k diff --git a/textures/i3_highlight.png b/textures/i3_highlight.png new file mode 100644 index 0000000000000000000000000000000000000000..c55dc7252287eb490569525b9ea933b9bbe3f492 GIT binary patch literal 70 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k92}1TpU9FVdQ&MBb@0H;w7!2kdN literal 0 HcmV?d00001 diff --git a/textures/i3_search_outline_trim.png b/textures/i3_search_outline_trim.png index 7dd1a8bfaf957e4dc43f431ce32e67311a1e099a..9dae2365d2966e39a820a80dbc8f34d47b84abfa 100644 GIT binary patch delta 278 zcmV+x0qOp*Ca?mKBYyz*NklAd&!o^076y>9+@o#khJv&&X&G5kf?ElghSLc~`GKNCNy zy?|PK&@5)zh)s+%=FZsVnpJ?2taP-R;JDJAXbAcE)!jYmo6@hno7o}#=FM)amIIHeP~1Rr(%D24d65%DsF!szwDV91d0N;*Pf`L{k1Suwq0 zhA%VhP@YV#s8133pM1j*YV_&u>NBLt-eri+B8O-QoXX=wp4nIkbDM)PJ77=riK)3q c;y<<@Qb%8upbrXf)Bpeg07*qoM6N<$f^Mpb9smFU literal 4912 zcmeHKX;f3!77idn5fBkj5irE5DoJieNF+ri0ip&FqM(9!b8`b%$iPhk0gEDt1Jntn zAmxbzl%YkOD&mYtEzSapC>E=zR4t$)@Km%X0TtKlAJ=;QXI668x##Tt?Y+PAoxO6_ z2m1S3SvXn{2m~vkA3umdFp33ZWAmZlx!33EN-%Cq6o+bp;CP}6SIV#$l&DEip+r=N z$p{49t-`FunQl|e*R+J!xVajQ2;11W?qKS|w{LP6h(ffd8n6xGt>PKqFspleu2{a? zd3B=G?%blhx-?t$#W1Mz2?edt)ZA&8XneY+4j+{-u-vjU`}OtuJN4cx96S@Jj{b9$ z;P=aGU%hfYx2L7W&bj)4=c4;7>>lj#>wP=JcV=aUw(x1Uc9^!gZ{fgnK z-#+G=7!Ld9tlb?kz{NTU>OA&faoB{}zuQh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