summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-31 20:19:30 +0100
committerhut <hut@lavabit.com>2009-12-31 20:19:30 +0100
commit77f59786a39d86680533c9b5709170f008e91ac4 (patch)
tree1b78c5536a802ad9ec35b49d99ea5272287cb292 /ranger
parentb5393406cbe86bce437a32787181fb0515dd0d21 (diff)
downloadranger-77f59786a39d86680533c9b5709170f008e91ac4.tar.gz
changed a few names
in colorschemes:
in_display -> in_browser
in BrowserColumn
self.main_display -> self.main_column
Diffstat (limited to 'ranger')
-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)
f='#n469'>469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674