From af84525d35d04becd8a0e10925117293cc77be31 Mon Sep 17 00:00:00 2001 From: Roberto Metere Date: Tue, 26 Jul 2016 11:21:48 +0100 Subject: [PATCH] Added support for gradient effect in the highlight --- awesome-cv.cls | 6 +++++- examples/resume.tex | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 6c02fa4..b58cb8b 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -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}}% } diff --git a/examples/resume.tex b/examples/resume.tex index 7199cdb..01fd1a3 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -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}