diff options
author | hut <hut@lavabit.com> | 2011-10-10 23:15:35 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-10 23:15:35 +0200 |
commit | 28af9c88ecd6a2372a18bc7b8a5040f5a42d2f27 (patch) | |
tree | 88868ece8daae52bacd3e46493ac5bb3ea8d81d1 /ranger | |
parent | 6538ecf8693f1c67721e070786be768e452bdcf8 (diff) | |
download | ranger-28af9c88ecd6a2372a18bc7b8a5040f5a42d2f27.tar.gz |
removed completely retarded colorscheme "texas"
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/colorschemes/texas.py | 71 | ||||
-rw-r--r-- | ranger/defaults/options.py | 4 |
2 files changed, 2 insertions, 73 deletions
diff --git a/ranger/colorschemes/texas.py b/ranger/colorschemes/texas.py deleted file mode 100644 index 26e8916d..00000000 --- a/ranger/colorschemes/texas.py +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com> -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -""" -Some experimental colorscheme. -""" - -from ranger.gui.color import * -from ranger.colorschemes.default import Default -import curses - -class Scheme(Default): - def use(self, context): - fg, bg, attr = Default.use(self, context) - - if curses.COLORS < 88: - return fg, bg, attr - - dircolor = 77 - dircolor_selected = {True: 79, False: 78} - linkcolor = {True: 21, False: 48} - - if context.in_browser: - if context.media: - if context.image: - fg = 20 - elif context.video: - fg = 22 - elif context.audio: - fg = 23 - - if context.container: - fg = 32 - if context.directory: - fg = dircolor - if context.selected: - fg = dircolor_selected[context.main_column] - elif context.executable and not \ - any((context.media, context.container)): - fg = 82 - if context.link: - fg = linkcolor[context.good] - - if context.main_column: - if context.selected: - attr |= bold - if context.marked: - attr |= bold - fg = 53 - - if context.in_titlebar: - if context.hostname: - fg = context.bad and 48 or 82 - elif context.directory: - fg = dircolor - elif context.link: - fg = linkcolor[True] - - return fg, bg, attr diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py index f4025a7c..996d83f5 100644 --- a/ranger/defaults/options.py +++ b/ranger/defaults/options.py @@ -61,8 +61,8 @@ unicode_ellipsis = False show_hidden_bookmarks = True # Which colorscheme to use? These colorschemes are available by default: -# default, default88, texas, jungle, snow -# Snow is monochrome, texas and default88 use 88 colors. +# default, default88, jungle, snow +# Snow is monochrome and default88 uses 88 colors. colorscheme = 'default' # Preview files on the rightmost column? |