Unclutter Inkscape UI

Remove "Settings" from the name of the parameter groups tabs
This commit is contained in:
Florian Festi 2018-11-25 23:20:59 +01:00
parent e4b85b2fc8
commit fdc90ba20d
1 changed files with 6 additions and 1 deletions

View File

@ -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("""
<page name="%s" _gui-text="%s">
""" % (groupid, group.title))
""" % (groupid, title))
for a in group._group_actions:
if a.dest in ("input", "output", "format"):
continue