projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2359c27
)
last test
author
Vu Nhat Minh
<vunhat_minh@dwango.co.jp>
Thu, 3 Jul 2014 09:21:39 +0000
(18:21 +0900)
committer
Vu Nhat Minh
<vunhat_minh@dwango.co.jp>
Thu, 3 Jul 2014 09:21:39 +0000
(18:21 +0900)
rainbowstream/rainbow.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index d69f6026f3c11a183d2d6f2d32ff79ae4a3625d5..6b88c501c8dcd109c7ac000516f62f6751c91c97 100644
(file)
--- a/
rainbowstream/rainbow.py
+++ b/
rainbowstream/rainbow.py
@@
-794,7
+794,6
@@
def theme():
# Change theme
try:
# Load new config
# Change theme
try:
# Load new config
- c['theme'] = g['stuff']
if g['stuff'] != 'custom':
new_config = 'rainbowstream/colorset/' + g['stuff'] + '.json'
else:
if g['stuff'] != 'custom':
new_config = 'rainbowstream/colorset/' + g['stuff'] + '.json'
else:
@@
-808,6
+807,7
@@
def theme():
c[nc] = new_config[nc]
# Update db and reset colors
db.theme_update(g['stuff'])
c[nc] = new_config[nc]
# Update db and reset colors
db.theme_update(g['stuff'])
+ c['theme'] = g['stuff']
notify_cycle()
g['decorated_name'] = color_func(
c['DECORATED_NAME'])(
notify_cycle()
g['decorated_name'] = color_func(
c['DECORATED_NAME'])(
@@
-815,7
+815,7
@@
def theme():
printNicely(green('Theme changed.'))
except:
if g['stuff'] == 'custom':
printNicely(green('Theme changed.'))
except:
if g['stuff'] == 'custom':
- printNicely(
light_magenta
('~/.rainbow_config.json is not exists!'))
+ printNicely(
red
('~/.rainbow_config.json is not exists!'))
else:
printNicely(red('No such theme exists.'))
else:
printNicely(red('No such theme exists.'))