From ed38e895acee66d2685f0d7210f6eefd6fb81576 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 8 May 2018 10:59:45 +0200 Subject: Increase indent for implicit submenus to 4 Makes it easier to see the menu structure. Make the indent configurable via a _SUBMENU_INDENT configuration variable. --- menuconfig.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'menuconfig.py') diff --git a/menuconfig.py b/menuconfig.py index 760839d..63c248e 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -102,6 +102,11 @@ from kconfiglib import Kconfig, \ # Configuration variables # +# How many steps an implicit submenu will be indented. Implicit submenus are +# created when an item depends on the symbol before it. Note that symbols +# defined with 'menuconfig' create a separate menu instead of indenting. +_SUBMENU_INDENT = 4 + # Number of steps for Page Up/Down to jump _PG_JUMP = 6 @@ -2022,7 +2027,7 @@ def _node_str(node): indent = 0 parent = node.parent while not parent.is_menuconfig: - indent += 2 + indent += _SUBMENU_INDENT parent = parent.parent # This approach gives nice alignment for empty string symbols ("() Foo") -- cgit v1.2.3