sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 340de805f7a98b48d5db3db66bbed0d9e822d531
parent ad1f418ae38b3b9be87536cef68bbcee963e1134
Author: Matías Aguirre <matiasaguirre@gmail.com>
Date:   Tue, 25 Jan 2011 00:59:56 -0200

Index extra colors

Diffstat:
M lib/sup/colormap.rb | 1 +
M lib/sup/modes/thread-index-mode.rb | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/sup/colormap.rb b/lib/sup/colormap.rb
@@ -64,6 +64,7 @@ class Colormap
     :regular_buf => { :fg => "white", :bg => "default" },
     :modified_buffer => { :fg => "yellow", :bg => "default", :attrs => ["bold"] },
     :date => { :fg => "white", :bg => "default"},
+    :size_widget => { :fg => "white", :bg => "default"},
   }
 
   def initialize
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -872,6 +872,8 @@ protected
         :index_new_color
       elsif starred
         :index_starred_color
+      elsif Colormap.sym_is_defined(:index_subject_color)
+        :index_subject_color
       else
         :index_old_color
       end
@@ -889,7 +891,7 @@ protected
     ] +
       from +
       [
-      [subj_color, size_widget_text],
+      [:size_widget_color, size_widget_text],
       [:to_me_color, t.labels.member?(:attachment) ? "@" : " "],
       [:to_me_color, dp ? ">" : (p ? '+' : " ")],
     ] +