Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Etienne Nadji
PyScribus
Commits
a35678b7
Commit
a35678b7
authored
Nov 29, 2020
by
Etienne Nadji
Browse files
Colors : import : fix shade
modifié : pyscribus/colors.py
parent
8cc22ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/pyscribus/colors.py
View file @
a35678b7
...
...
@@ -539,7 +539,7 @@ class GradientColorStop(xmlc.PyScribusElement):
self
.
color
=
color
if
(
shade
:
=
xml
.
get
(
"SHADE"
))
is
not
None
:
self
.
shade
=
dimensions
.
Dim
(
float
(
opacity
),
"pc"
)
self
.
shade
=
dimensions
.
Dim
(
float
(
shade
),
"pc"
)
if
(
ramp
:
=
xml
.
get
(
"RAMP"
))
is
not
None
:
self
.
position
=
dimensions
.
Dim
(
float
(
ramp
),
"pcdecim"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment