From 80b927de1cd8ab742cf3f113059c7b84a670aa29 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Wed, 1 Feb 2023 16:15:37 +0100 Subject: [PATCH] Improve set home button look --- src/gui.lua | 4 +++- src/styles.lua | 2 ++ textures/i3_home_px.png | Bin 0 -> 5273 bytes textures/i3_home_px_hover.png | Bin 0 -> 5261 bytes 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 textures/i3_home_px.png create mode 100644 textures/i3_home_px_hover.png diff --git a/src/gui.lua b/src/gui.lua index e51ee89..b7bddfb 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -599,7 +599,9 @@ local function show_settings(fs, data) end hypertext(2.2, 9.9, 6, 0.6, "home_pos", fmt("
%s
", str)) - image_button(4.3, 10.4, 1.8, 0.7, "", "set_home", "Set home") + fs("style[set_home;padding=20,10,-210,-10;fgimg=%s;fgimg_hovered=%s]", PNG.home_px, PNG.home_px_hover) + image_button(4.1, 10.4, 2.2, 0.7, "", "set_home", "") + label(4.9, 10.75, "Set home") elseif show_style then checkbox(2.6, 9.95, "cb_hide_tabs", "Hide tabs", tostring(data.hide_tabs)) diff --git a/src/styles.lua b/src/styles.lua index 1ec1f70..a7806e9 100644 --- a/src/styles.lua +++ b/src/styles.lua @@ -54,6 +54,8 @@ local PNG = { node = "i3_node.png", item = "i3_item.png", cube = "i3_cube.png", + home_px = "i3_home_px.png", + home_px_hover = "i3_home_px_hover.png", cancel_hover = "i3_cancel.png^\\[brighten", search_hover = "i3_search.png^\\[brighten", diff --git a/textures/i3_home_px.png b/textures/i3_home_px.png new file mode 100644 index 0000000000000000000000000000000000000000..b59d1e8486bdd0d710e3b8b5d394b467dd210851 GIT binary patch literal 5273 zcmeHLc~leU77vwOc4$G0n#O`y&AyOC!eYV_ArcnZL|`(RK!hZa1PCZrtH>gvBCa5U z_=<{RRYVjEDhe(rBE=REwa^Mx%Tins^?eDbc-nK`@toKHoSaE!?()0${=WO&WRlHa zI^O9s>ZM;7)T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