Theme Sample generation

- Generating snapshots of themes now automated.
This commit is contained in:
Paul Beckingham 2012-01-30 20:27:17 -05:00
parent bff868145d
commit 1619441f87
3 changed files with 71 additions and 0 deletions

16
doc/misc/themes/README Normal file
View file

@ -0,0 +1,16 @@
Themes
To generate samples of themes, first execute the 'run' script to generate the
sample data. Note that this data may need to be tweaked to include qualities
that need to be illustrated in theme sample.
Then edit the 'rc' file to include the desired theme file.
Then run 'per' once per theme, and capture the display.
Note that this will require that the terminal window be switched between a black
and white background to properly show the light and dark themes.
Note that for the solarized themes, the terminal color palette needs to be set
to specific colors.

8
doc/misc/themes/per Executable file
View file

@ -0,0 +1,8 @@
echo '$ task list'
task rc:rc list | grep -v alternate
echo '$ task summary'
task rc:rc summary | grep -v alternate
echo '$ task ghistory'
task rc:rc ghistory | grep -v alternate
echo '$ task calendar'
task rc:rc calendar | grep -v alternate

47
doc/misc/themes/run Executable file
View file

@ -0,0 +1,47 @@
rm pending.data completed.data undo.data rc
cat <<EOF >>rc
data.location=.
confirmation=off
_forcecolor=on
#include ~/task-2.0.0.git/doc/rc/light-16.theme
#include ~/task-2.0.0.git/doc/rc/dark-16.theme
#include ~/task-2.0.0.git/doc/rc/light-256.theme
#include ~/task-2.0.0.git/doc/rc/dark-256.theme
#include ~/task-2.0.0.git/doc/rc/dark-gray-256.theme
#include ~/task-2.0.0.git/doc/rc/dark-red-256.theme
#include ~/task-2.0.0.git/doc/rc/dark-green-256.theme
#include ~/task-2.0.0.git/doc/rc/dark-blue-256.theme
include ~/task-2.0.0.git/doc/rc/dark-violets-256.theme
#include ~/task-2.0.0.git/doc/rc/dark-yellow-green.theme
#include ~/task-2.0.0.git/doc/rc/solarized-dark-256.theme
#include ~/task-2.0.0.git/doc/rc/solarized-light-256.theme
EOF
task rc:rc add Ordinary task
task rc:rc add Started task
task rc:rc 2 start
task rc:rc add High priority task pri:H
task rc:rc add Medium priority task pri:M
task rc:rc add Low priority task pri:L
task rc:rc add Household task project:Home
task rc:rc add Outdoor task project:Garden
task rc:rc add Overdue task due:yesterday
task rc:rc add Due task due:tomorrow
task rc:rc add Not yet due tasks due:2/14/2012
task rc:rc add Recurring task due:eom recur:monthly
task rc:rc add Tagged task +tag1
task rc:rc add Blocking task
task rc:rc add Dependent task
task rc:rc log Completed_1 project:Garden
task rc:rc log Completed_2 project:Garden
task rc:rc log Completed_3 project:Home
task rc:rc add Deleted_1
task rc:rc 14 mod depends:13
task rc:rc 15 delete