Theme Samples

- Updated scripts for generating theme swatches.
This commit is contained in:
Paul Beckingham 2015-01-01 14:45:08 -05:00
parent 34c4b61e3d
commit c8e013ca31
8 changed files with 164 additions and 49 deletions

View file

@ -6,7 +6,7 @@ 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.
Then run 'per' to run a few commands for each theme.
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.

View file

@ -1,8 +0,0 @@
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

View file

@ -1,47 +1,23 @@
rm pending.data completed.data undo.data rc
cat <<EOF >>rc
for theme in $PWD/../../rc/*.theme
do
cat <<EOF >>x
data.location=.
confirmation=off
_forcecolor=on
#include $PWD/../../rc/light-16.theme
#include $PWD/../../rc/dark-16.theme
#include $PWD/../../rc/light-256.theme
#include $PWD/../../rc/dark-256.theme
#include $PWD/../../rc/dark-gray-256.theme
#include $PWD/../../rc/dark-red-256.theme
#include $PWD/../../rc/dark-green-256.theme
#include $PWD/../../rc/dark-blue-256.theme
include $PWD/../../rc/dark-violets-256.theme
#include $PWD/../../rc/dark-yellow-green.theme
#include $PWD/../../rc/solarized-dark-256.theme
#include $PWD/../../rc/solarized-light-256.theme
include $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:eom
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
echo "--- $theme -----------------------------------------------------"
echo '$ task list'
task rc:x list
echo '$ task summary'
task rc:x summary
echo '$ task ghistory'
task rc:x ghistory
echo '$ task calendar'
task rc:x calendar
echo '$ task burndown.daily'
task rc:x burndown.daily
done

35
doc/misc/themes/run.dark Executable file
View file

@ -0,0 +1,35 @@
#!/bin/bash
for theme in $PWD/../../rc/dark-16.theme \
$PWD/../../rc/dark-256.theme \
$PWD/../../rc/dark-blue-256.theme \
$PWD/../../rc/dark-default-16.theme \
$PWD/../../rc/dark-gray-256.theme \
$PWD/../../rc/dark-gray-blue-256.theme \
$PWD/../../rc/dark-green-256.theme \
$PWD/../../rc/dark-red-256.theme \
$PWD/../../rc/dark-violets-256.theme \
$PWD/../../rc/dark-yellow-green.theme
do
cat <<EOF >x
data.location=.
confirmation=off
detection=off
_forcecolor=on
default.height=24
verbose=off
include $theme
EOF
echo "--- $theme -----------------------------------------------------"
echo '$ task list'
task rc:x list
echo '$ task summary'
task rc:x summary
echo '$ task ghistory'
task rc:x ghistory
echo '$ task calendar'
task rc:x calendar
echo '$ task burndown.daily'
task rc:x burndown.daily
done

27
doc/misc/themes/run.light Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash
for theme in $PWD/../../rc/light-16.theme \
$PWD/../../rc/light-256.theme
do
cat <<EOF >x
data.location=.
confirmation=off
detection=off
_forcecolor=on
default.height=24
verbose=off
include $theme
EOF
echo "--- $theme -----------------------------------------------------"
echo '$ task list'
task rc:x list
echo '$ task summary'
task rc:x summary
echo '$ task ghistory'
task rc:x ghistory
echo '$ task calendar'
task rc:x calendar
echo '$ task burndown.daily'
task rc:x burndown.daily
done

26
doc/misc/themes/run.solar.dark Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
for theme in $PWD/../../rc/solarized-dark-256.theme
do
cat <<EOF >x
data.location=.
confirmation=off
detection=off
_forcecolor=on
default.height=24
verbose=off
include $theme
EOF
echo "--- $theme -----------------------------------------------------"
echo '$ task list'
task rc:x list
echo '$ task summary'
task rc:x summary
echo '$ task ghistory'
task rc:x ghistory
echo '$ task calendar'
task rc:x calendar
echo '$ task burndown.daily'
task rc:x burndown.daily
done

26
doc/misc/themes/run.solar.light Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
for theme in $PWD/../../rc/solarized-light-256.theme
do
cat <<EOF >x
data.location=.
confirmation=off
detection=off
_forcecolor=on
default.height=24
verbose=off
include $theme
EOF
echo "--- $theme -----------------------------------------------------"
echo '$ task list'
task rc:x list
echo '$ task summary'
task rc:x summary
echo '$ task ghistory'
task rc:x ghistory
echo '$ task calendar'
task rc:x calendar
echo '$ task burndown.daily'
task rc:x burndown.daily
done

33
doc/misc/themes/setup Executable file
View file

@ -0,0 +1,33 @@
rm pending.data completed.data undo.data x
cat <<EOF >>x
data.location=.
confirmation=off
_forcecolor=on
EOF
task rc:x add Ordinary task
task rc:x add Started task
task rc:x 2 start
task rc:x add High priority task pri:H
task rc:x add Medium priority task pri:M
task rc:x add Low priority task pri:L
task rc:x add Household task project:Home
task rc:x add Outdoor task project:Garden
task rc:x add Overdue task due:yesterday
task rc:x add Due task due:tomorrow
task rc:x add Not yet due tasks due:eom
task rc:x add Recurring task due:eom recur:monthly
task rc:x add Tagged task +tag1
task rc:x add Blocking task
task rc:x add Dependent task
task rc:x log Completed_1 project:Garden
task rc:x log Completed_2 project:Garden
task rc:x log Completed_3 project:Home
task rc:x add Deleted_1
task rc:x 14 mod depends:13
task rc:x 15 delete