kopia lustrzana https://github.com/inkstitch/inkstitch
make line thickness value less magical
rodzic
7637848ad8
commit
7319937ea6
|
@ -4,7 +4,7 @@ from wx.lib.intctrl import IntCtrl
|
|||
import time
|
||||
from itertools import izip
|
||||
|
||||
from .svg import color_block_to_point_lists
|
||||
from .svg import color_block_to_point_lists, PIXELS_PER_MM
|
||||
from .i18n import _
|
||||
|
||||
class ControlPanel(wx.Panel):
|
||||
|
@ -369,7 +369,10 @@ class DrawingPanel(wx.Panel):
|
|||
self.control_panel.on_start()
|
||||
|
||||
def color_to_pen(self, color):
|
||||
return wx.Pen(color.visible_on_white.rgb, width=int(0.4 * self.PIXEL_DENSITY))
|
||||
# We draw the thread with a thickness of 0.1mm. Real thread has a
|
||||
# thickness of ~0.4mm, but if we did that, we wouldn't be able to
|
||||
# see the individual stitches.
|
||||
return wx.Pen(color.visible_on_white.rgb, width=int(0.1 * PIXELS_PER_MM * self.PIXEL_DENSITY))
|
||||
|
||||
def parse_stitch_plan(self, stitch_plan):
|
||||
self.pens = []
|
||||
|
|
40
messages.po
40
messages.po
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2018-08-26 23:34-0400\n"
|
||||
"POT-Creation-Date: 2018-08-26 23:50-0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -674,79 +674,79 @@ msgstr ""
|
|||
msgid "Generate INX files"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:608
|
||||
#: lib/simulator.py:611
|
||||
msgid "<<"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:608
|
||||
#: lib/simulator.py:611
|
||||
msgid "Play reverse (arrow left)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:609
|
||||
#: lib/simulator.py:612
|
||||
msgid "-"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:609
|
||||
#: lib/simulator.py:612
|
||||
msgid "Play one frame backward (+)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:610
|
||||
#: lib/simulator.py:613
|
||||
msgid "+"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:610
|
||||
#: lib/simulator.py:613
|
||||
msgid "Play one frame forward (+)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:611
|
||||
#: lib/simulator.py:614
|
||||
msgid ">>"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:611
|
||||
#: lib/simulator.py:614
|
||||
msgid "Play forward (arrow right)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:612
|
||||
#: lib/simulator.py:615
|
||||
msgid "^"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:612
|
||||
#: lib/simulator.py:615
|
||||
msgid "Speed up (arrow up)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:613
|
||||
#: lib/simulator.py:616
|
||||
msgid "v"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:613
|
||||
#: lib/simulator.py:616
|
||||
msgid "Slow down (arrow down)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:614
|
||||
#: lib/simulator.py:617
|
||||
msgid "Pause"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:614
|
||||
#: lib/simulator.py:617
|
||||
msgid "Pause (P)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:615
|
||||
#: lib/simulator.py:618
|
||||
msgid "Restart"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:615
|
||||
#: lib/simulator.py:618
|
||||
msgid "Restart (R)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:616
|
||||
#: lib/simulator.py:619
|
||||
msgid "Quit"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:616
|
||||
#: lib/simulator.py:619
|
||||
msgid "Close (Q)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/simulator.py:794
|
||||
#: lib/simulator.py:797
|
||||
msgid "Stitch # "
|
||||
msgstr ""
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue