summary refs log tree commit diff stats
path: root/ranger/gui
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-03 20:25:01 +0100
committerhut <hut@lavabit.com>2009-12-03 20:25:01 +0100
commitb810fe28876d750495ac05d9993ce02afb561c01 (patch)
tree8efbd9f7b4a0f795b7926ccaaa2ce870df4b4bed /ranger/gui
parent4cb54d3819d8a58d0bd07b8da0c4a978807c44ec (diff)
downloadranger-b810fe28876d750495ac05d9993ce02afb561c01.tar.gz
mime type support, integrated into colorschemes
Diffstat (limited to 'ranger/gui')
-rw-r--r--ranger/gui/colorscheme.py1
-rw-r--r--ranger/gui/wdisplay.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index 282a08ba..d7833016 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -2,6 +2,7 @@ CONTEXT_KEYS = [ 'reset', 'error',
 		'in_display', 'in_statusbar', 'in_titlebar', 'in_console',
 		'directory', 'file', 'hostname',
 		'executable', 'media', 'link',
+		'video', 'audio', 'image', 'media', 'document', 'container',
 		'broken', 'selected', 'empty', 'maindisplay']
 
 class ColorSchemeContext():
diff --git a/ranger/gui/wdisplay.py b/ranger/gui/wdisplay.py
index a1953001..07111437 100644
--- a/ranger/gui/wdisplay.py
+++ b/ranger/gui/wdisplay.py
@@ -107,7 +107,7 @@ class WDisplay(SuperClass):
 			except IndexError:
 				break
 
-			this_color = base_color[:]
+			this_color = base_color + list(drawed.mimetype_tuple)
 
 			if i == selected_i:
 				this_color.append('selected')