Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
73dcca57
Commit
73dcca57
authored
Nov 17, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only retrieve colors when topydo was configured to use colors
parent
eb240558
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
topydo/lib/prettyprinters/Colors.py
topydo/lib/prettyprinters/Colors.py
+7
-7
No files found.
topydo/lib/prettyprinters/Colors.py
View file @
73dcca57
...
...
@@ -32,15 +32,15 @@ class PrettyPrinterColorFilter(PrettyPrinterFilter):
def
filter
(
self
,
p_todo_str
,
p_todo
):
""" Applies the colors. """
colorscheme
=
Colors
()
priority_colors
=
colorscheme
.
get_priority_colors
()
project_color
=
colorscheme
.
get_project_color
()
context_color
=
colorscheme
.
get_context_color
()
metadata_color
=
colorscheme
.
get_metadata_color
()
link_color
=
colorscheme
.
get_link_color
()
if
config
().
colors
():
color
=
NEUTRAL_COLOR
colorscheme
=
Colors
()
priority_colors
=
colorscheme
.
get_priority_colors
()
project_color
=
colorscheme
.
get_project_color
()
context_color
=
colorscheme
.
get_context_color
()
metadata_color
=
colorscheme
.
get_metadata_color
()
link_color
=
colorscheme
.
get_link_color
()
try
:
color
=
priority_colors
[
p_todo
.
priority
()]
except
KeyError
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment