2019-05-05 21:20:45 +08:00
|
|
|
# Themes Manager
|
|
|
|
import sys
|
|
|
|
from Defs.Configurations import readConfig, ifSettingsNotExists
|
|
|
|
|
|
|
|
color = [0, 0, 0, 0, 0]
|
|
|
|
config = readConfig()
|
|
|
|
|
|
|
|
|
|
|
|
def colorSelector():
|
|
|
|
ifSettingsNotExists()
|
|
|
|
for arg in sys.argv:
|
|
|
|
if arg in ['--theme']:
|
|
|
|
for arg in sys.argv:
|
|
|
|
if arg in ['anaglyph', '3danaglyph', '3Danaglyph', '3DAnaglyph']:
|
2019-11-17 00:19:44 +08:00
|
|
|
# LightRed, BackgroundCyan, Cyan, Green, ResetAll
|
|
|
|
color = ['\033[91m', '\033[46m',
|
|
|
|
'\033[36m', '\033[32m', '\033[0m']
|
2019-05-05 21:20:45 +08:00
|
|
|
if arg in ['--default']:
|
|
|
|
config.set("Defaults", "theme", "anaglyph")
|
|
|
|
return color
|
|
|
|
if arg in ['ocean', 'breeze', 'blue']:
|
2019-11-17 00:19:44 +08:00
|
|
|
# Cyan, BackgroundCyan, BrightBlue, DarkGray, ResetAll
|
|
|
|
color = ['\033[36m', '\033[46m',
|
|
|
|
'\033[34m', '\033[30m', '\033[0m']
|
2019-05-05 21:20:45 +08:00
|
|
|
if arg in ['--default']:
|
|
|
|
config.set("Defaults", "theme", "ocean")
|
|
|
|
return color
|
|
|
|
if config.get("Defaults", "theme") == "anaglyph":
|
2019-11-17 00:19:44 +08:00
|
|
|
color = ['\033[91m', '\033[46m', '\033[36m', '\033[32m',
|
|
|
|
'\033[0m'] # LightRed, BackgroundCyan, Cyan, Green, ResetAll
|
2019-05-05 21:20:45 +08:00
|
|
|
return color
|
|
|
|
elif config.get("Defaults", "theme") == "ocean":
|
2019-11-17 00:19:44 +08:00
|
|
|
# Cyan, BackgroundCyan, BrightBlue, DarkGray, ResetAll
|
|
|
|
color = ['\033[36m', '\033[46m', '\033[34m', '\033[30m', '\033[0m']
|
2019-05-05 21:20:45 +08:00
|
|
|
return color
|