diff options
Diffstat (limited to 'design/mock/context.py')
| -rw-r--r-- | design/mock/context.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/design/mock/context.py b/design/mock/context.py index d58683c..31a54f6 100644 --- a/design/mock/context.py +++ b/design/mock/context.py @@ -98,8 +98,13 @@ def held_cell(g, x, y, w, h, k=1): g.rect(x, y + h - 3 * k, w, 3 * k, mix(VERM, PAGE, 0.6)) +MINIMAP = 0 # a pane with its own minimap: the frame this much wider than its content + + def tag(g, x, y, w, h, title, focus=False, note=None): - """A panel's frame and its one-row tag. note: a string, or runs (text, ink, underlined) for a legend.""" + """A panel's frame and its one-row tag. note: a string, or runs (text, ink, underlined) for a legend. The frame + is MINIMAP wider than w: the pane's minimap strip is drawn in it, right of the content (map.py).""" + w += MINIMAP g.rect(x, y, w, TAG, RAISED) g.frame(x, y, w, h, DIM if focus else RULE, 2) if focus: |
