Add in timewarrior theme.

This commit is contained in:
Michael Welford 2018-05-30 09:19:18 +09:30
parent d0dcc1e74c
commit 372e13a8e9
2 changed files with 76 additions and 2 deletions

View File

@ -57,7 +57,7 @@ Coverage:
* [exa](#exa)
* [git](#git)
* [PrismJS](#prismjs)
* [Taskwarrior](#taskwarrior)
* [Taskwarrior](#taskwarrior) and Timewarrior
Vim colour scheme built with [estilo](https://github.com/jacoborus/estilo). *Kudos!*
@ -214,7 +214,7 @@ and:
Currently only PHP has some extra love, will add in more as I need them.
### Taskwarrior<a name="taskwarrior"></a>
### Taskwarrior and timewarrior<a name="taskwarrior"></a>
[Taskwarrior home page](https://taskwarrior.org)
@ -224,6 +224,14 @@ Simply include the `taskwarrior/falcon.theme` file in your `.taskrc` e.g.
include ~/Documents/falcon/taskwarrior/falcon.theme
```
Also included is a timewarrior theme, simply include it in your `.timewarrior/timewarrior.cfg`:
```
import /Users/me/Documents/falcon/timewarrior/falcon.theme
```
**Note** that the full path seems to be required.
## Palette
![swatches](https://raw.githubusercontent.com/fenetikm/falcon/master/support/swatches.png)
@ -266,6 +274,28 @@ Screenshots taken on macOS running iTerm2, tmux and Neovim (where applicable). F
**Note:** Some syntax colour highlighting choices will depend on which syntax highlighting plugins you use. The above was created using the polyglot syntax vim plugin (except for Yaml).
## List of terminal colours by name
In lieu of updating the palette image which I have realised is not super helpful for when you want to know what the default terminal colours are by name, here is a list:
* colour 0: black
* colour 1: red
* colour 2: green
* colour 3: yellow
* colour 4: blue
* colour 5: orange
* colour 6: cyan
* colour 7: light gray
* colour 8: bright black / bg colour
* colour 9: bright red
* colour 10: bright green
* colour 11: bright yellow
* colour 12: bright blue / blue gray
* colour 13: bright orange
* colour 14: bright cyan
* colour 15: white
## Similar default terminal colours
Sometimes you want to use a colour from the main Falcon palette in the terminal. Sadly that isn't always easy and so what **_is_** easy, is to use a close match from the ANSI 256 palette.

44
timewarrior/falcon.theme Normal file
View File

@ -0,0 +1,44 @@
###############################################################################
#
# Copyright 2015 - 2016, 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.
#
# https://www.opensource.org/licenses/mit-license.php
#
###############################################################################
define theme:
description = "falcon.theme"
colors:
# General UI color.
exclusion = "gray8 on gray4"
today = "color3"
holiday = "gray4"
label = "color249"
ids = "color12"
debug = "blue"
# Rotating Color Palette for tags. The leading zeroes allow the order to be
# preserved.
palette:
color01 = "color7 on color3"
color02 = "color7 on color4"
color03 = "color7 on color5"
color04 = "color7 on color6"