Skip to content

Commit

Permalink
Added Transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
FrenzyExists committed Oct 24, 2021
1 parent ffc3007 commit 206dd24
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ The vimscript version currently have some support for a few plugins, bellow a li
- [vim-airline](https://github.com/vim-airline/vim-airline)

### Variables n Stuff

Set Bold:
```vim
" Bold stuff
" On = 1 (default) | Off = 0
let g:aqua_bold = 1
```
Set Transparency
```vim
" On = 1 | Off = 0 (default)
let g:aqua_transparency = 1
```

### Modes
Aquarium now has Light Mode!
Expand Down
29 changes: 26 additions & 3 deletions colors/aquarium.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,25 @@ if g:aqua_linenr == 0
let s:linenr_bg = ""
endif

" Transparency thingy
if !exists("g:aqua_transparency")
let g:aqua_transparency = 0
endif

if g:aqua_transparency == 0
let s:normal = s:gui00
let s:buff = s:gui00
let s:fold_col = s:gui00
let s:sign_col = s:gui00
let s:folded = s:gui07
elseif g:aqua_transparency == 1
let s:normal = "NONE"
let s:buff = "NONE"
let s:folded = "NONE"
let s:fold_col = "NONE"
let s:sign_col = "NONE"
endif


" Function Loader thingy
function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp)
Expand Down Expand Up @@ -154,7 +173,7 @@ call s:hi("Underline", "", "", "", "", "underline", "")
"+-+-+-+-+-+-+-+-+-+-+
"+----- Editor ------+
"+-+-+-+-+-+-+-+-+-+-+
call s:hi("Normal", s:gui05, s:gui00, "NONE", "NONE", "", "")
call s:hi("Normal", s:gui05, s:normal, "NONE", "NONE", "", "")
call s:hi("Error", s:gui08, s:gui01, "", "", "italic", "")
call s:hi("Search", s:gui0A, s:gui02, "", "", "", "") " Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
call s:hi("MatchParen", s:gui0C, s:gui02, "", "", "", "")
Expand All @@ -175,10 +194,14 @@ call s:hi("PmenuSel", s:gui0C, s:gui01, "", "", "", "")
call s:hi("PmenuThumb", s:gui0C, s:gui01, "", "", "", "")

" Columns
call s:hi("SignColumn", "", s:gui00, "NONE", "", "", "")
call s:hi("SignColumn", s:gui0D, s:sign_col, "NONE", "", "", "")
call s:hi("ColorColumn", "", s:gui01, "NONE", "", "", "")
call s:hi("CursorColumn", s:gui0C, "", "NONE", "", "", "")

" Folding
call s:hi("FoldColumn", s:gui06, s:gui01, "NONE", "", "", "")
call s:hi("Folded", s:gui02, s:folded, "NONE", "", "", "")

" Cursor
call s:hi("Cursor", s:cursor_bg, s:gui06, "NONE", "NONE", "", "") " Regular Cursor thing
call s:hi("CursorIM", s:gui02, s:gui06, "", "NONE", "", "") " like Cursor, but used when in IME mode
Expand Down Expand Up @@ -267,7 +290,7 @@ hi! link asciidocURL markdownLinkText
"+-+-+-+-+-+-+-+-+-+-+-+
"+--- Prompt/Status ---+
"+-+-+-+-+-+-+-+-+-+-+-+
call s:hi("EndOfBuffer", s:gui00, "", "", "", "", "")
call s:hi("EndOfBuffer", s:buff, "", "", "", "", "")
call s:hi("ErrorMsg", s:gui08, s:gui00, "", "", "italic", "")
call s:hi("ModeMsg", s:gui05, "", "", "", "", "")
call s:hi("MoreMsg", s:gui0C, s:gui02, "", "", "", "")
Expand Down

0 comments on commit 206dd24

Please sign in to comment.