Put color definitions in a standalone file #136; add color settings for social icons

This commit is contained in:
WEN Hao 2022-10-01 12:19:58 +08:00 committed by Mark E Fuller
commit 57d6bcf32c
4 changed files with 108 additions and 35 deletions

View file

@ -18,11 +18,17 @@
%-------------------------------------------------------------------------------
% Package for academic icons
\RequirePackage{academicons}
\RequirePackage{xcolor}
%-------------------------------------------------------------------------------
% colors
% set colors
%-------------------------------------------------------------------------------
\definecolor{orcid}{HTML}{a6ce39}
\input{commons/colors}
\providecolor{orcid}{named}{default-socialicon-color}
\providecolor{researchgate}{named}{default-socialicon-color}
\providecolor{researcherid}{named}{default-socialicon-color}
\providecolor{googlescholar}{named}{default-socialicon-color}
%-------------------------------------------------------------------------------
% all symbols described in moderncv.cls
@ -44,9 +50,9 @@
%\newcommand*{\bitbucketsocialsymbol} {}
%\newcommand*{\skypesocialsymbol} {}
\renewcommand*{\orcidsocialsymbol} {{\color{orcid}\small\aiOrcid}~}
\renewcommand*{\researchgatesocialsymbol} {{\small\aiResearchGateSquare}~} % alternative: \aiResearchGate
\renewcommand*{\researcheridsocialsymbol} {{\small\aiResearcherIDSquare}~} % alternative: \aiResearcherID
\renewcommand*{\googlescholarsocialsymbol}{{\small\aiGoogleScholar}~}
\renewcommand*{\researchgatesocialsymbol} {{\color{researchgate}\small\aiResearchGateSquare}~} % alternative: \aiResearchGate
\renewcommand*{\researcheridsocialsymbol} {{\color{researcherid}\small\aiResearcherIDSquare}~} % alternative: \aiResearcherID
\renewcommand*{\googlescholarsocialsymbol}{{\color{googlescholar}\raisebox{-1pt}{\large\aiGoogleScholar}}~}
%\newcommand*{\telegramsocialsymbol} {}
%\newcommand*{\whatsappsocialsymbol} {}
%\newcommand*{\matrixsocialsymbol} {}