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 0000000..b59d1e8 Binary files /dev/null and b/textures/i3_home_px.png differ diff --git a/textures/i3_home_px_hover.png b/textures/i3_home_px_hover.png new file mode 100644 index 0000000..7509d72 Binary files /dev/null and b/textures/i3_home_px_hover.png differ