Gui frame flow spacing
Posted: Wed Jun 14, 2017 3:04 pm
I'm trying to make a little color picker for my title bar but I cannot get the spacing on the color buttons right.
Here is what it looks like right now:

As you can see the spacing between the colored buttons is a bit too wide so the surrounding frame doesn't fit in the desired width.
This is the style I use for the frame around the color buttons:
Changing the padding works as expected but I cannot find a way to change the spacing.
horizontal_spacing and cell_spacing don't seem to do anything.
Thanks for any help
Here is what it looks like right now:

As you can see the spacing between the colored buttons is a bit too wide so the surrounding frame doesn't fit in the desired width.
This is the style I use for the frame around the color buttons:
Code: Select all
data.raw["gui-style"].default["color_picker_frame_style"] =
{
type = "frame_style",
parent = "frame_style",
left_padding = 0,
right_padding = 0,
top_padding = 2,
bottom_padding = 0,
horizontal_spacing = 0,
vertical_spacing = 0,
cell_spacing = 0,
flow_style = {
horizontal_spacing = 0,
vertical_spacing = 0,
cell_spacing = 0,
}
}
horizontal_spacing and cell_spacing don't seem to do anything.
Thanks for any help
