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
899fa9b2
Commit
899fa9b2
authored
Apr 15, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PaletteItem for mapping the abstract colors
parent
ad781585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
topydo/ui/ConsoleWidget.py
topydo/ui/ConsoleWidget.py
+5
-4
No files found.
topydo/ui/ConsoleWidget.py
View file @
899fa9b2
...
...
@@ -19,14 +19,15 @@ import urwid
from
topydo.lib.Color
import
AbstractColor
from
topydo.lib.Todo
import
Todo
from
topydo.lib.TopydoString
import
TopydoString
from
topydo.ui.Utils
import
PaletteItem
PALETTE_LOOKUP
=
{
# omitting AbstractColor.NEUTRAL on purpose, so a text without any
# attribute will be added to the markup
AbstractColor
.
PROJECT
:
'project'
,
AbstractColor
.
CONTEXT
:
'context'
,
AbstractColor
.
META
:
'metadata'
,
AbstractColor
.
LINK
:
'link'
,
AbstractColor
.
PROJECT
:
PaletteItem
.
PROJECT
,
AbstractColor
.
CONTEXT
:
PaletteItem
.
CONTEXT
,
AbstractColor
.
META
:
PaletteItem
.
METADATA
,
AbstractColor
.
LINK
:
PaletteItem
.
LINK
,
}
def
topydostringToMarkup
(
p_string
):
...
...
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