INNER CODE UNIT · Python
_set_active_nav
HaxL0p4/L0p4Map · ui/app.py:611
def _set_active_nav(self, index):
for i, (btn, path) in enumerate(self.nav_btns):
color = "#00ff99" if i == index else "#666666"
btn.setIcon(load_colored_svg(path, color))
def _build_toolbar(self):
toolbar = QWidget()
toolbar.setFixedHeight(56)
layout = QHBoxLayout(toolbar)
layout.setContentsMargins(16, 0, 16, 0)
title = QLabel("L0p4Map")
title.setObjectName("title_label")
self.subnet_label = QLineEdit()
self.subnet_label.setObjectName("subnet_label")
self.subnet_label.setPlaceholderText("subnet, IP or range")
self.subnet_label.setFixedWidth(210)