fix(gui): Add push_id to _render_selectable_label for proper ID stack
This commit is contained in:
@@ -346,10 +346,9 @@ class App:
|
||||
imgui.push_style_color(imgui.Col_.frame_bg_hovered, vec4(0, 0, 0, 0))
|
||||
imgui.push_style_color(imgui.Col_.frame_bg_active, vec4(0, 0, 0, 0))
|
||||
imgui.push_style_color(imgui.Col_.border, vec4(0, 0, 0, 0))
|
||||
if color:
|
||||
imgui.push_style_color(imgui.Col_.text, color)
|
||||
pops += 1
|
||||
imgui.push_style_var(imgui.StyleVar_.frame_border_size, 0.0)
|
||||
def _render_selectable_label(self, label: str, value: str, width: float = 0.0, multiline: bool = False, height: float = 0.0, color: Optional[imgui.ImVec4] = None) -> None:
|
||||
imgui.push_id(label)
|
||||
pops = 4
|
||||
imgui.push_style_var(imgui.StyleVar_.frame_padding, imgui.ImVec2(0, 0))
|
||||
if multiline:
|
||||
imgui.input_text_multiline("##" + label, value, imgui.ImVec2(width, height), imgui.InputTextFlags_.read_only)
|
||||
|
||||
Reference in New Issue
Block a user