about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/colorschemes/default.py4
-rw-r--r--ranger/colorschemes/jungle.py4
-rw-r--r--ranger/colorschemes/snow.py2
-rw-r--r--ranger/gui/colorscheme.py4
-rw-r--r--ranger/gui/widgets/browsercolumn.py14
-rw-r--r--ranger/gui/widgets/browserview.py2
6 files changed, 15 insertions, 15 deletions
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py
index c92e1635..ca799595 100644
--- a/ranger/colorschemes/default.py
+++ b/ranger/colorschemes/default.py
@@ -8,7 +8,7 @@ class Default(ColorScheme):
 		if context.reset:
 			pass
 
-		elif context.in_display:
+		elif context.in_browser:
 			if context.selected:
 				attr = reverse
 			else:
@@ -47,7 +47,7 @@ class Default(ColorScheme):
 				else:
 					fg = red
 
-			if context.maindisplay:
+			if context.main_column:
 				if context.selected:
 					attr |= bold
 				if context.marked:
diff --git a/ranger/colorschemes/jungle.py b/ranger/colorschemes/jungle.py
index c70d95c7..5b7c5a8b 100644
--- a/ranger/colorschemes/jungle.py
+++ b/ranger/colorschemes/jungle.py
@@ -8,7 +8,7 @@ class Default(ColorScheme):
 		if context.reset:
 			pass
 
-		elif context.in_display:
+		elif context.in_browser:
 			if context.selected:
 				attr = reverse
 			else:
@@ -33,7 +33,7 @@ class Default(ColorScheme):
 			if context.link:
 				fg = context.good and cyan or magenta
 
-			if context.maindisplay and context.selected:
+			if context.main_column and context.selected:
 				attr |= bold
 
 		elif context.in_titlebar:
diff --git a/ranger/colorschemes/snow.py b/ranger/colorschemes/snow.py
index 8e7da043..13d6f413 100644
--- a/ranger/colorschemes/snow.py
+++ b/ranger/colorschemes/snow.py
@@ -8,7 +8,7 @@ class Snow(ColorScheme):
 		if context.reset:
 			pass
 
-		elif context.in_display:
+		elif context.in_browser:
 			if context.selected:
 				attr = reverse
 			else:
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index 7db72d0a..54d9571e 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -1,10 +1,10 @@
 CONTEXT_KEYS = [ 'reset', 'error',
-		'in_display', 'in_statusbar', 'in_titlebar', 'in_console',
+		'in_browser', 'in_statusbar', 'in_titlebar', 'in_console',
 		'in_notify', 'in_taskview',
 		'directory', 'file', 'hostname',
 		'executable', 'media', 'link',
 		'video', 'audio', 'image', 'media', 'document', 'container',
-		'selected', 'empty', 'maindisplay', 'message', 'background',
+		'selected', 'empty', 'main_column', 'message', 'background',
 		'good', 'bad',
 		'space', 'permissions', 'owner', 'group', 'mtime', 'nlink',
 		'scroll', 'all', 'bot', 'top', 'percentage',
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 5427d958..c05473e2 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -4,7 +4,7 @@ from .pager import Pager
 from ranger import log
 
 class BrowserColumn(Pager, Widget):
-	main_display = False
+	main_column = False
 	display_infostring = False
 	scroll_begin = 0
 	target = None
@@ -36,7 +36,7 @@ class BrowserColumn(Pager, Widget):
 			index = self.scroll_begin + event.y - self.y
 
 			if event.pressed(1):
-				if not self.main_display:
+				if not self.main_column:
 					self.fm.enter_dir(self.target.path)
 
 				if index < len(self.target):
@@ -125,7 +125,7 @@ class BrowserColumn(Pager, Widget):
 		from ranger.fsobject.directory import Directory
 		import stat
 
-		base_color = ['in_display']
+		base_color = ['in_browser']
 
 		self.target.use()
 
@@ -156,7 +156,7 @@ class BrowserColumn(Pager, Widget):
 				self.color_reset()
 				return
 
-		if self.main_display:
+		if self.main_column:
 			base_color.append('maindisplay')
 
 		if not self.target.accessible:
@@ -194,7 +194,7 @@ class BrowserColumn(Pager, Widget):
 
 			if tagged:
 				this_color.append('tagged')
-				if self.main_display:
+				if self.main_column:
 					text = self.tagged_marker + text
 
 			if isinstance(drawed, Directory):
@@ -211,7 +211,7 @@ class BrowserColumn(Pager, Widget):
 
 			string = drawed.basename
 			try:
-				if self.main_display:
+				if self.main_column:
 					if tagged:
 						self.win.addnstr(line, 0, text, self.wid - 2)
 					elif self.wid > 1:
@@ -231,7 +231,7 @@ class BrowserColumn(Pager, Widget):
 
 			self.color_at(line, 0, self.wid, this_color)
 
-			if self.main_display and tagged and self.wid > 2:
+			if self.main_column and tagged and self.wid > 2:
 				this_color.append('tag_marker')
 				self.color_at(line, 0, len(self.tagged_marker), this_color)
 
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py
index ff0854f9..ffca34c6 100644
--- a/ranger/gui/widgets/browserview.py
+++ b/ranger/gui/widgets/browserview.py
@@ -38,7 +38,7 @@ class BrowserView(Widget, DisplayableContainer):
 			self.main_column = None
 		else:
 			self.main_column.display_infostring = True
-			self.main_column.main_display = True
+			self.main_column.main_column = True
 
 		self.pager = Pager(self.win, embedded=True)
 		self.add_child(self.pager)
tomatic uninstall' href='/akspecs/ranger/commit/Makefile?h=v1.5.2&id=b0a216f59a7770f5ce35f4a56b5055c51ceec284'>b0a216f5 ^
e9e4b4ff ^





636d9393 ^
e9e4b4ff ^
e9e4b4ff ^
50a0cb1c ^
e9e4b4ff ^
fde932f2 ^
85fd5288 ^
4ade06a6 ^

85fd5288 ^
0c2c782d ^

636d9393 ^
b0a216f5 ^
b06433bc ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78