diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2024-04-30 14:21:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-30 20:21:32 +0200 |
| commit | 3f0f04abec4ef1d12c670bca866db76a5a7d4d6a (patch) | |
| tree | 1a485e0a126d0a3d0619f2b7521081d9edcfe299 /lib/extensions/lettering.py | |
| parent | 7af665806adc3194ff37393622b088043fec77c7 (diff) | |
simulator fixes (#2844)
* fix slide and control panel rendering bugs
* clear marker lists when clearing stitch plan
* switch simulator back to wx
* remove unused function
* fix off-by-one error in color bar
* avoid overlapping command symbols of different types
* don't maximize simulator
* adjust alignment
* remove unused API server
* bugfix
* focus entire simulator panel
* rename simulator/realistic preview -> simulator
* experimental: background color picker
* set pagecolor to background color by default
* satisfy macos
* toggle jumps on drawing canvas
* clear frog family
---------
Co-authored-by: Kaalleen
Diffstat (limited to 'lib/extensions/lettering.py')
| -rw-r--r-- | lib/extensions/lettering.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/extensions/lettering.py b/lib/extensions/lettering.py index 43ff424d..76821902 100644 --- a/lib/extensions/lettering.py +++ b/lib/extensions/lettering.py @@ -14,6 +14,7 @@ from ..gui.simulator import SplitSimulatorWindow from ..i18n import _ from ..svg import get_correction_transform from ..svg.tags import INKSCAPE_LABEL, INKSTITCH_LETTERING, SVG_GROUP_TAG +from ..utils.svg_data import get_pagecolor from .commands import CommandsExtension @@ -59,6 +60,7 @@ class Lettering(CommandsExtension): def effect(self): metadata = self.get_inkstitch_metadata() + background_color = get_pagecolor(self.svg.namedview) app = wx.App() frame = SplitSimulatorWindow( title=_("Ink/Stitch Lettering"), @@ -66,6 +68,7 @@ class Lettering(CommandsExtension): group=self.get_or_create_group(), on_cancel=self.cancel, metadata=metadata, + background_color=background_color, target_duration=1 ) |
