I made some adjustments to the progress-bar style (in data.lua):
styles.inv_bar_segment = {
type = "progressbar_style",
padding = 0,
bar_width = 20,
bar = {
base = {
draw_type = "outer",
type = "composition",
position = {200, 80},
corner_size = 1,
}
}
}
This will cause the bar to look a bit flatter without the gaps like you had it before.
Also, you can make your overlay text non-interactable like this (control.lua, line 342):
local overlay = container.add{ type = "label", name = "inventory_segments_label", caption = overlay_caption, style = "inv_bar_text", ignored_by_interaction = true }
This will cause your segment tooltips to show.
Obviously test all of this first, don't just take my word for it!