From 206dd24627e8274abc2978e5c2dfc5f3ea12689a Mon Sep 17 00:00:00 2001 From: Frenzy Date: Sat, 23 Oct 2021 22:49:24 -0400 Subject: [PATCH] Added Transparency --- README.md | 9 ++++++++- colors/aquarium.vim | 29 ++++++++++++++++++++++++++--- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2225150..d73acd7 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/colors/aquarium.vim b/colors/aquarium.vim index 8f21926..0a0f163 100644 --- a/colors/aquarium.vim +++ b/colors/aquarium.vim @@ -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) @@ -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, "", "", "", "") @@ -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 @@ -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, "", "", "", "")