Skip to content

Commit

Permalink
added solarized-dark theme, removed two unused color definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyDiGirolamo committed Aug 28, 2014
1 parent f388915 commit 43d581f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 25 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ Here is an example config file with a complete colorscheme definition:
header_todo_count=h39,h235
header_todo_pending_count=h228,h235
header_todo_done_count=h156,h235
header_sorting=h235,h39
header_file=h48,h235
dialog_button=h255,h242
dialog_background=,h248
dialog_color=,h240
dialog_shadow=,h238
Expand Down
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ Here is an example config file with a complete colorscheme definition:
header_todo_count=h39,h235
header_todo_pending_count=h228,h235
header_todo_done_count=h156,h235
header_sorting=h235,h39
header_file=h48,h235
dialog_button=h255,h242
dialog_background=,h248
dialog_color=,h240
dialog_shadow=,h238
Expand Down
2 changes: 0 additions & 2 deletions todotxt_machine/colors/default
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ header=h250,h235
header_todo_count=h39,h235
header_todo_pending_count=h228,h235
header_todo_done_count=h156,h235
header_sorting=h235,h39
header_file=h48,h235
dialog_button=h255,h242
dialog_background=,h248
dialog_color=,h240
dialog_shadow=,h238
Expand Down
25 changes: 25 additions & 0 deletions todotxt_machine/colors/solarized-dark
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[colorscheme-solarized-dark]
plain=h12
selected=,h0
header=h12,h0
header_todo_count=h4,h0
header_todo_pending_count=h3,h0
header_todo_done_count=h2,h0
header_file=h4,h0
dialog_background=,h0
dialog_color=h12,h15
dialog_shadow=,h10
footer=h12,h0
search_match=h3
completed=h10
context=h4
project=h3
creation_date=h13
due_date=h1
priority_a=h1
priority_b=h9
priority_c=h3
priority_d=h2
priority_e=h4
priority_f=h13

20 changes: 1 addition & 19 deletions todotxt_machine/urwid_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,12 +729,9 @@ def create_help_panel(self):

def create_filter_panel(self):
w = urwid.AttrMap(
# urwid.LineBox(
urwid.Padding(
urwid.ListBox(
# [ urwid.Divider() ] +
[
# urwid.LineBox(
ViPile(
[ urwid.Text('Contexts & Projects', align='center') ] +
[ urwid.Divider(u'─') ] +
Expand All @@ -743,23 +740,8 @@ def create_filter_panel(self):
[urwid.AttrWrap(urwid.CheckBox(p, state=(p in self.active_projects), on_state_change=self.checkbox_clicked, user_data=['project', p]), 'project_dialog_color', 'project_selected') for p in self.todos.all_projects()] +
[ urwid.Divider(u'─') ] +
[ urwid.AttrMap(urwid.Button(['Clear ', ('header_file_dialog_color','F'), 'ilters'], on_press=self.clear_filters), 'dialog_color', 'plain_selected') ]
)#, title='Contexts & Projects')
)
] +
# [ urwid.Divider() ] +
# [
# # urwid.LineBox(
# urwid.Pile(
# [ urwid.Text('Options', align='center') ] +
# [ urwid.AttrMap(urwid.CheckBox('[w] Word Wrap', state=(self.wrapping[0] == 'space'), on_state_change=self.toggle_wrapping), 'dialog_button', 'plain_selected') ] +
# [ urwid.AttrMap(urwid.CheckBox('[b] Borders', state=(self.border[0] == 'bordered'), on_state_change=self.toggle_border), 'dialog_button', 'plain_selected') ] +
# [ urwid.Divider() ] +
# [ urwid.AttrMap(urwid.Button('[R] Reload Todo.txt File', on_press=self.reload_todos_from_file), 'dialog_button', 'plain_selected') ] +
# [ urwid.Divider() ] +
# [ urwid.AttrMap(urwid.Button('[S] Save Todo.txt File', on_press=self.save_todos), 'dialog_button', 'plain_selected') ]
# )#, title='Options')
# ] +
# [ urwid.Divider() ] +
# [ urwid.AttrMap(urwid.Button('[f] Close', on_press=self.toggle_filter_panel), 'dialog_button', 'plain_selected') ] +
[ urwid.Divider() ],
),
left=1, right=1, min_width=10 )
Expand Down

0 comments on commit 43d581f

Please sign in to comment.