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
58079b25
Commit
58079b25
authored
Apr 11, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #124 from mruwek/marked_palette_entry
Use special color-palette entry for 'marked' items
parents
b7059d7f
f9e1606d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
topydo/ui/Main.py
topydo/ui/Main.py
+1
-0
topydo/ui/TodoWidget.py
topydo/ui/TodoWidget.py
+9
-2
No files found.
topydo/ui/Main.py
View file @
58079b25
...
@@ -179,6 +179,7 @@ class UIApplication(CLIApplicationBase):
...
@@ -179,6 +179,7 @@ class UIApplication(CLIApplicationBase):
(
'link'
,
''
,
''
,
''
,
link_color
,
''
),
(
'link'
,
''
,
''
,
''
,
link_color
,
''
),
(
'link_focus'
,
''
,
'light gray'
,
''
,
link_color
,
None
),
(
'link_focus'
,
''
,
'light gray'
,
''
,
link_color
,
None
),
(
'default_focus'
,
'black'
,
'light gray'
),
(
'default_focus'
,
'black'
,
'light gray'
),
(
'marked'
,
''
,
'light blue'
),
]
]
for
C
in
ascii_uppercase
:
for
C
in
ascii_uppercase
:
...
...
topydo/ui/TodoWidget.py
View file @
58079b25
...
@@ -135,7 +135,14 @@ class TodoWidget(urwid.WidgetWrap):
...
@@ -135,7 +135,14 @@ class TodoWidget(urwid.WidgetWrap):
return True
return True
def mark(self):
def mark(self):
self.widget.set_attr_map({None: _markup(self.todo, True)})
attr_map = {
None: '
marked
',
'
link
': '
marked
',
'
context
': '
marked
',
'
project
': '
marked
',
'
metadata
': '
marked
',
}
self.widget.set_attr_map(attr_map)
def unmark(self):
def unmark(self):
self.widget.set_attr_map(
{None: _markup(self.todo, False)}
)
self.widget.set_attr_map(
_markup(self.todo, False)
)
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