Added support for gradient effect in the highlight

This commit is contained in:
Roberto Metere 2016-07-26 11:21:48 +01:00
parent 863c9cb00f
commit af84525d35
2 changed files with 9 additions and 1 deletions

View file

@ -149,10 +149,14 @@
% Boolean value to switch section color highlighting
\newbool{acvSectionColorHighlight}
\setbool{acvSectionColorHighlight}{true}
\newbool{acvSectionColorHighlightGradient}
\setbool{acvSectionColorHighlightGradient}{true}
% Awesome section color
\def\@sectioncolor#1#2#3{%
\ifbool{acvSectionColorHighlight}{{\color{awesome}#1#2#3}}{#1#2#3}%
\ifbool{acvSectionColorHighlightGradient}
{{\color{awesome}#1\color{awesome!80!black}#2\color{awesome!60!black}#3}}%
{\ifbool{acvSectionColorHighlight}{{\color{awesome}#1#2#3}}{#1#2#3}}%
}

View file

@ -43,6 +43,10 @@
% Set false if you don't want to highlight section with awesome color
\setbool{acvSectionColorHighlight}{true}
% Set false if you don't want to have a gradient effect in the highlight section with awesome color
% If true, it implicitly ignores whether the acvSectionColorHighlight is true or not.
\setbool{acvSectionColorHighlightGradient}{true}
% If you would like to change the social information separator from a pipe (|) to something else
\renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad}