mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
make colors user adjustable. (#151)
* make colors user adjustable. - Systematize colors and make them user adjustable. See documentation for details. this requires the \moderncvcolor to be issued BEFORE \moderncvstyle. * fix missing characters for fancy style * manually copied the current version user guide form master --------- Co-authored-by: David <forenkram@gmx.de> Co-authored-by: LLdaniel <daniel.adlkofer2@freenet.de> Co-authored-by: daniel <41345639+LLdaniel@users.noreply.github.com>
This commit is contained in:
parent
493742be62
commit
08371bb3e2
21 changed files with 240 additions and 90 deletions
|
|
@ -48,10 +48,12 @@
|
|||
\renewcommand*{\quotefont}{\large\slshape}
|
||||
|
||||
% styles
|
||||
\renewcommand*{\namestyle}[1]{{\namefont\textcolor{color0}{#1}}}
|
||||
\renewcommand*{\titlestyle}[1]{{\titlefont\textcolor{color2}{#1}}}
|
||||
\renewcommand*{\addressstyle}[1]{{\addressfont\textcolor{color2}{#1}}}
|
||||
\renewcommand*{\quotestyle}[1]{{\quotefont\textcolor{color1}{#1}}}
|
||||
\renewcommand*{\namestyle}[1]{{\namefont\textcolor{namecolor}{#1}}}
|
||||
\renewcommand*{\firstnamestyle}[1]{{\namefont\textcolor{firstnamecolor}{#1}}}
|
||||
\renewcommand*{\lastnamestyle}[1]{{\namefont\textcolor{lastnamecolor}{#1}}}
|
||||
\renewcommand*{\titlestyle}[1]{{\titlefont\textcolor{titlecolor}{#1}}}
|
||||
\renewcommand*{\addressstyle}[1]{{\addressfont\textcolor{addresscolor}{#1}}}
|
||||
\renewcommand*{\quotestyle}[1]{{\quotefont\textcolor{quotecolor}{#1}}}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
|
|
@ -77,7 +79,7 @@
|
|||
\collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
|
||||
\protected@edef\socialsdetails{\socialsdetails\protect\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
|
||||
\savebox{\makecvheaddetailsbox}{%
|
||||
\addressfont\color{color2}%
|
||||
\addressfont\color{addresscolor}%
|
||||
\if@left\begin{tabular}[b]{@{}r@{}}\fi%
|
||||
\if@right\begin{tabular}[b]{@{}l@{}}\fi%
|
||||
\ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet%
|
||||
|
|
@ -100,7 +102,7 @@
|
|||
{%
|
||||
\if@left%
|
||||
\hspace*{\separatorcolumnwidth}\fi%
|
||||
\color{color1}%
|
||||
\color{pictureframecolor}%
|
||||
\setlength{\fboxrule}{\@photoframewidth}%
|
||||
\ifdim\@photoframewidth=0pt%
|
||||
\setlength{\fboxsep}{0pt}\fi%
|
||||
|
|
@ -118,7 +120,7 @@
|
|||
\begin{minipage}[b]{\makecvheadnamewidth}%
|
||||
\if@left\raggedright\fi%
|
||||
\if@right\raggedleft\fi%
|
||||
\namestyle{\@firstname\ \@lastname}%
|
||||
\firstnamestyle{\@firstname}~\lastnamestyle{\@lastname}%
|
||||
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
|
||||
\end{minipage}}%
|
||||
% raise boxes if top option is set
|
||||
|
|
@ -167,7 +169,7 @@
|
|||
% optional detailed information
|
||||
\if@details%
|
||||
\raggedleft%
|
||||
\addressfont\textcolor{color2}{%
|
||||
\addressfont\textcolor{addresscolor}{%
|
||||
{\bfseries\upshape\@firstname~\@lastname}\@firstdetailselementfalse%
|
||||
% optional detailed information
|
||||
\ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue