From fdc90ba20d06d68978502061f34cf1109ff310fc Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 25 Nov 2018 23:20:59 +0100 Subject: [PATCH] Unclutter Inkscape UI Remove "Settings" from the name of the parameter groups tabs --- scripts/boxes2inkscape | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/boxes2inkscape b/scripts/boxes2inkscape index 1f56090..b3ffd87 100755 --- a/scripts/boxes2inkscape +++ b/scripts/boxes2inkscape @@ -91,9 +91,14 @@ class Boxes2INX: if not group._group_actions: continue prefix = getattr(group, "prefix", None) + title = group.title + if title.startswith("Settings for "): + title = title[len("Settings for "):] + if title.endswith(" Settings"): + title = title[:-len(" Settings")] result.append(""" -""" % (groupid, group.title)) +""" % (groupid, title)) for a in group._group_actions: if a.dest in ("input", "output", "format"): continue