general: Remove -a

This commit is contained in:
Dylan Araps 2017-12-29 07:40:20 +11:00
parent 5c30ffb436
commit fce0612cf9
2 changed files with 0 additions and 7 deletions

View File

@ -10,14 +10,9 @@ from . import util
def set_special(index, color, iterm_name="h"): def set_special(index, color, iterm_name="h"):
"""Convert a hex color to a special sequence.""" """Convert a hex color to a special sequence."""
alpha = util.Color.alpha_num
if OS == "Darwin": if OS == "Darwin":
return "\033]P%s%s\033\\" % (iterm_name, color.strip("#")) return "\033]P%s%s\033\\" % (iterm_name, color.strip("#"))
if index in [11, 708] and alpha != 100:
return "\033]%s;[%s]%s\033\\" % (index, alpha, color)
return "\033]%s;%s\033\\" % (index, color) return "\033]%s;%s\033\\" % (index, color)

View File

@ -9,8 +9,6 @@ import subprocess
class Color: class Color:
"""Color formats.""" """Color formats."""
alpha_num = 100
def __init__(self, hex_color): def __init__(self, hex_color):
self.hex_color = hex_color self.hex_color = hex_color