Skip to content

Commit

Permalink
colors need to be lists
Browse files Browse the repository at this point in the history
  • Loading branch information
erodozer committed Apr 5, 2011
1 parent 7122fed commit ce54a79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Rockmeter.py
Expand Up @@ -524,15 +524,15 @@ def __init__(self, layer, section):
color = self.engine.theme.hexToColor(self.get("color", str, "#FFFFFF"))

#the current color of the image
self.currentColor = color
self.currentColor = list(color)
if len(self.currentColor) == 3:
self.currentColor = list(self.currentColor).append(255.0)
self.currentColor.append(255.0)

#the color to fade to
color = self.engine.theme.hexToColor(self.get("fadeTo", str, "#FFFFFF"))
color = list(self.engine.theme.hexToColor(self.get("fadeTo", str, "#FFFFFF")))
#makes sure alpha is added
if len(color) == 3:
color = list(color).append(255.0)
color.append(255.0)

#the colors to alternate between
self.colors = [color, self.currentColor]
Expand Down

0 comments on commit ce54a79

Please sign in to comment.