summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-10 02:40:33 +0200
committerhut <hut@lavabit.com>2010-10-10 02:40:33 +0200
commit54c8375ab74309279f5ba114a003b3af1b6cc78f (patch)
tree6e22ea0aa1854965b02ba0c275d4ca63784c202c
parent2e74a4d016849eede5b3cb9200aa93bf930d5298 (diff)
downloadranger-54c8375ab74309279f5ba114a003b3af1b6cc78f.tar.gz
gui.colorscheme: removed fallback scheme, should never be used anyway
-rw-r--r--ranger/gui/colorscheme.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index 1fa23656..5a2a97ef 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -100,22 +100,11 @@ class ColorScheme(SettingsAware):
 		return attr | color_pair(get_color(fg, bg))
 
 	def use(self, context):
-		"""
-		Use the colorscheme to determine the (fg, bg, attr) tuple.
-
-		When no colorscheme is found, ranger will fall back to this very
-		basic colorscheme where directories are blue and bold, and
-		selected files have the color inverted.
+		"""Use the colorscheme to determine the (fg, bg, attr) tuple.
 
 		Override this method in your own colorscheme.
 		"""
-		fg, attr = -1, 0
-		if context.highlight or context.selected:
-			attr = 262144
-		if context.directory:
-			attr |= 2097152
-			fg = 4
-		return fg, -1, attr
+		return (-1, -1, 0)
 
 def _colorscheme_name_to_class(signal):
 	# Find the colorscheme.  First look in ~/.config/ranger/colorschemes,
ision' href='/acidbong/suckless/dwm/blame/util.c?h=3.8&id=8a34fa50f75f4d6d8af234ac0c4f6d40b988d700'>^
39677ec ^





439e15d ^

c47da14 ^
439e15d ^
c47da14 ^
586f663 ^
439e15d ^




16c67f3 ^
586f663 ^
650a1fb ^
439e15d ^





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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95







                                                              
                   



                      
                

    
                                






                                     





































                                                               
                                





                                        





                          

    
               
 
                                         
                             




                                                             
                                 
                                              
                                                                   





                                          
470'>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