Skip to content

Commit

Permalink
feat: Add color generator
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed Nov 30, 2019
1 parent ccaf7eb commit 00dd313
Show file tree
Hide file tree
Showing 14 changed files with 1,672 additions and 283 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: [push]
name: CI
jobs:
build_and_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path=generator/Cargo.toml --release --all-features
- uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path=generator/Cargo.toml
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MIT License

Copyright (c) 2019 wadackel

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.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vim-dogrun

> _WIP_
> Take a sweet dog with you.
## Installation

Expand All @@ -13,3 +13,7 @@ Plug 'wadackel/vim-dogrun'
```vim
colorscheme dogrun
```

## License

[MIT License © wadackel](./LICENSE)
56 changes: 26 additions & 30 deletions autoload/lightline/colorscheme/dogrun.vim
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
" lightline
" https://github.com/itchyny/lightline.vim
let s:gray = [s:gray900.gui, s:gray900.cterm]
let s:white = [s:gray500.gui, s:gray500.cterm]
let s:blue = [s:purple300.gui, s:purple300.cterm]
let s:green = [s:green300.gui, s:green300.cterm]
let s:purple = [s:purple400.gui, s:purple400.cterm]
let s:red = [s:pink600.gui, s:pink600.cterm]
let s:pink = [s:pink400.gui, s:pink400.cterm]
let s:yellow = [s:yellow500.gui, s:yellow500.cterm]
" dogrun lightline theme
"
" Author: wadackel
" License: MIT
" Copyright (c) 2019 wadackel

let s:lightline = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
let s:lightline.normal.left = [[s:gray, s:purple], [s:purple, s:gray]]
let s:lightline.normal.right = [[s:gray, s:purple], [s:purple, s:gray]]
let s:lightline.inactive.left = [[s:gray, s:blue], [s:blue, s:gray]]
let s:lightline.inactive.right = [[s:gray, s:blue], [s:blue, s:gray]]
let s:lightline.insert.left = [[s:gray, s:green], [s:green, s:gray]]
let s:lightline.insert.right = [[s:gray, s:green], [s:green, s:gray]]
let s:lightline.replace.left = [[s:gray, s:red], [s:red, s:gray]]
let s:lightline.replace.right = [[s:gray, s:red], [s:red, s:gray]]
let s:lightline.visual.left = [[s:gray, s:pink], [s:pink, s:gray]]
let s:lightline.visual.right = [[s:gray, s:pink], [s:pink, s:gray]]
let s:lightline.normal.middle = [[s:white, s:gray]]
let s:lightline.inactive.middle = [[s:white, s:gray]]
let s:lightline.tabline.left = [[s:purple, s:gray]]
let s:lightline.tabline.tabsel = [[s:gray, s:purple]]
let s:lightline.tabline.middle = [[s:purple, s:gray]]
let s:lightline.tabline.right = [[s:gray, s:purple]]
let s:lightline.normal.error = [[s:red, s:gray]]
let s:lightline.normal.warning = [[s:yellow, s:gray]]
let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}

let g:lightline#colorscheme#dogrun#palette = lightline#colorscheme#flatten(s:lightline)
let s:p.normal.left = [[['#222433', 235], ['#929be5', 104]], [['#929be5', 104], ['#282a3a', 235]]]
let s:p.normal.middle = [[['#4b4e6d', 60], ['#282a3a', 235]]]
let s:p.normal.right = [[['#222433', 235], ['#929be5', 104]], [['#929be5', 104], ['#282a3a', 235]]]
let s:p.normal.error = [[['#222433', 235], ['#f56574', 204]]]
let s:p.normal.warning = [[['#222433', 235], ['#c2968c', 138]]]
let s:p.inactive.left = [[['#4b4e6d', 60], ['#282a3a', 235]], [['#4b4e6d', 60], ['#282a3a', 235]]]
let s:p.inactive.middle = [[['#4b4e6d', 60], ['#282a3a', 235]]]
let s:p.inactive.right = [[['#4b4e6d', 60], ['#282a3a', 235]], [['#4b4e6d', 60], ['#282a3a', 235]]]
let s:p.insert.left = [[['#222433', 235], ['#73c1a9', 79]], [['#73c1a9', 79], ['#282a3a', 235]]]
let s:p.insert.right = [[['#222433', 235], ['#73c1a9', 79]], [['#73c1a9', 79], ['#282a3a', 235]]]
let s:p.visual.left = [[['#222433', 235], ['#c173c1', 170]], [['#c173c1', 170], ['#282a3a', 235]]]
let s:p.visual.right = [[['#222433', 235], ['#c173c1', 170]], [['#c173c1', 170], ['#282a3a', 235]]]
let s:p.replace.left = [[['#222433', 235], ['#f56574', 204]], [['#f56574', 204], ['#282a3a', 235]]]
let s:p.replace.right = [[['#222433', 235], ['#f56574', 204]], [['#f56574', 204], ['#282a3a', 235]]]
let s:p.tabline.left = [[['#4b4e6d', 60], ['#282a3a', 235]]]
let s:p.tabline.tabsel = [[['#222433', 235], ['#929be5', 104]]]
let s:p.tabline.middle = [[['#4b4e6d', 60], ['#282a3a', 235]]]
let s:p.tabline.right = [[['#4b4e6d', 60], ['#282a3a', 235]]]

let g:lightline#colorscheme#dogrun#palette = lightline#colorscheme#flatten(s:p)
Loading

0 comments on commit 00dd313

Please sign in to comment.