mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-25 12:01:48 +02:00
general: Remove -a
This commit is contained in:
parent
5c30ffb436
commit
fce0612cf9
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user