Or with colored pixels for better margin visibility:
4 from the right and top as the inventory slots generally have a 4 pixel margin around before the highlights/shadows, then there's 6 pixels from the crafting result and 2 from the button below to group the button together with the quickcraft slots while the button itself has 4 pixels from below
Or with colored pixels for better margin visibility: 4 from the right and top as the inventory slots generally have a 4 pixel margin around before the highlights/shadows, then there's 6 pixels from the crafting result and 2 from the button below to group the button together with the quickcraft slots while the button itself has 4 pixels from below