From 132935c04e0dbed0fa96fa2c88f681e4ec6b1b49 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 19 Feb 2014 22:52:49 -0500 Subject: [PATCH] Themes - New themes: dark-default-16.theme, dark-gray-blue-256.theme --- AUTHORS | 2 +- ChangeLog | 1 + NEWS | 2 +- doc/rc/dark-default-16.theme | 68 +++++++++++++++++++++++++++++ doc/rc/dark-gray-blue-256.theme | 77 +++++++++++++++++++++++++++++++++ src/Config.cpp | 2 + 6 files changed, 150 insertions(+), 2 deletions(-) create mode 100644 doc/rc/dark-default-16.theme create mode 100644 doc/rc/dark-gray-blue-256.theme diff --git a/AUTHORS b/AUTHORS index df355e3f4..a85fd1d20 100644 --- a/AUTHORS +++ b/AUTHORS @@ -12,6 +12,7 @@ contributions of the following people: Owen Clarke (Contributing Author) Louis-Claude Canon (Contributing Author) Scott Kostyshak (Contributing Author) + Renato Alves (Contributing Author) The following submitted code, packages or analysis, and deserve special thanks: @@ -96,7 +97,6 @@ The following submitted code, packages or analysis, and deserve special thanks: Jeroen Budts Zed Jorarard Elias Probst - Renato Alves Natanael Copa Marton Suranyi Nicolas Appriou diff --git a/ChangeLog b/ChangeLog index e36af0413..0edb3c7e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,7 @@ Features + Removed version 1.x sort column support. + Old-style color names including underscores are no longer supported. + Removed priority counts from the 'projects' report. + + New themes: dark-default-16.theme, dark-gray-blue-256.theme Bugs + #1511 sync init crashes if client certification file is empty or invalid diff --git a/NEWS b/NEWS index 1bd5ef4f4..8cc9372f1 100644 --- a/NEWS +++ b/NEWS @@ -13,7 +13,7 @@ New commands in taskwarrior 2.4.0 New configuration options in taskwarrior 2.4.0 - - + - New themes: dark-default-16.theme, dark-gray-blue-256.theme Newly deprecated features in taskwarrior 2.4.0 diff --git a/doc/rc/dark-default-16.theme b/doc/rc/dark-default-16.theme new file mode 100644 index 000000000..a04730009 --- /dev/null +++ b/doc/rc/dark-default-16.theme @@ -0,0 +1,68 @@ +############################################################################### +# Sample taskwarrior 1.9 (or later) dark 256-color theme, featuring green. +# +# Copyright 2006 - 2014, Paul Beckingham, Federico Hernandez. +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# +# http://www.opensource.org/licenses/mit-license.php +# +############################################################################### + +color=on +color.active=on color3 +color.alternate=on color8 +color.blocked=on color4 +color.blocking=on color6 +color.burndown.done=on color10 +color.burndown.pending=on color2 +color.burndown.started=on color3 +color.calendar.due.today=color3 +color.calendar.due=on color2 +color.calendar.holiday=on color3 +color.calendar.overdue=on color5 +color.calendar.today=color14 +color.calendar.weekend=color13 +color.calendar.weeknumber=color4 +color.debug=color7 on color1 +color.due.today=color11 +color.due=on color2 +color.error=color1 on color7 +color.footnote=color3 on color0 +color.header=color3 on color0 +color.history.add=on color2 +color.history.done=color8 on color10 +color.history.delete=on color1 +color.overdue=on color5 +color.pri.H=bold white +color.pri.L=color13 +color.pri.M=color7 +color.pri.none=color7 +color.project.none= +color.recurring=color14 +color.scheduled=color11 +color.summary.background=on color6 +color.summary.bar=on color2 +color.sync.added=color11 +color.sync.changed=color10 +color.sync.rejected=color9 +color.tag.none= +color.tagged= +color.undo.after=color9 +color.undo.before=color10 diff --git a/doc/rc/dark-gray-blue-256.theme b/doc/rc/dark-gray-blue-256.theme new file mode 100644 index 000000000..40b3e6248 --- /dev/null +++ b/doc/rc/dark-gray-blue-256.theme @@ -0,0 +1,77 @@ +############################################################################### +# Sample taskwarrior 1.9 (or later) dark 256-color theme, featuring blue. +# +# taskwarrior - a command line task list manager. +# +# Copyright 2006-2014, Paul Beckingham, Federico Hernandez. +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# +# http://www.opensource.org/licenses/mit-license.php +# +############################################################################### + +color=on +color.header=gray10 +color.footnote=gray10 +color.error=rgb500 +color.debug=rgb500 + +color.summary.bar=white on gray9 +color.summary.background=white on color0 + +color.history.add=on gray9 +color.history.done=black on gray16 +color.history.delete=black on gray23 + +color.burndown.pending=on gray9 +color.burndown.started=on gray16 +color.burndown.done=on gray23 + +color.sync.added=gray10 +color.sync.changed=gray15 +color.sync.rejected=gray23 + +color.undo.before=green +color.undo.after=red + +color.calendar.today=underline black on color15 +color.calendar.due=color0 on gray10 +color.calendar.due.today=color0 on gray15 +color.calendar.overdue=color0 on gray20 +color.calendar.weekend=on gray4 +color.calendar.holiday=color15 on rgb005 +color.calendar.weeknumber=gray10 + +color.recurring= +color.overdue=underline rgb300 on gray15 +color.due.today=rgb300 on gray15 +color.due= +color.active=gray0 on gray23 +# No color for being prioritized (Pri column will show up if needed) +color.pri.none= +color.pri.H= +color.pri.M= +color.pri.L= +color.tagged= +color.blocked=bold gray10 on gray4 +color.blocking=bold gray18 on gray6 +color.project.none= +color.tag.none= +color.alternate=on gray0 diff --git a/src/Config.cpp b/src/Config.cpp index 0858cf59f..b0f18eae8 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -548,6 +548,8 @@ void Config::createDefaultRC (const std::string& rc, const std::string& data) << "#include " << TASK_RCDIR << "/dark-violets-256.theme\n" << "#include " << TASK_RCDIR << "/dark-yellow-green.theme\n" << "#include " << TASK_RCDIR << "/dark-gray-256.theme\n" + << "#include " << TASK_RCDIR << "/dark-default-16.theme\n" + << "#include " << TASK_RCDIR << "/dark-gray-blue-256.theme\n" << "\n"; // Write out the new file.