mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
make colors user adjustable. expose hidden options.
- Systematize colors and make them user adjustable. See documentation for details. this requires the \moderncvcolor to be issued BEFORE \moderncvstyle. - all styles: make the head options 'details' and 'nodetails' available to the user. (previously they were hidden). Olystyle does not respond too well to nodetails.
This commit is contained in:
parent
e543cd7976
commit
5fd95656cf
22 changed files with 536 additions and 96 deletions
|
|
@ -24,6 +24,12 @@
|
|||
\DeclareOption{center} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,center}}
|
||||
\DeclareOption{right} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,right}}
|
||||
|
||||
% head options
|
||||
\@initializecommand{\moderncvstyleheadoptions}{}
|
||||
\@initializeif{\if@datainhead}\@datainheadtrue
|
||||
\DeclareOption{details}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,details}}
|
||||
\DeclareOption{nodetails}{\@datainheadfalse\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,nodetails}}
|
||||
|
||||
% toggle use of symbol fonts.
|
||||
\@initializeif{\if@symbols}\@symbolsfalse
|
||||
\DeclareOption{symbols} {\@symbolstrue}
|
||||
|
|
@ -64,14 +70,40 @@
|
|||
\moderncvicons{letters} % do not use symbols, use letters
|
||||
\fi
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% Colors
|
||||
%-------------------------------------------------------------------------------
|
||||
% head and footer
|
||||
\colorlet{lastnamecolor}{color1}
|
||||
\colorlet{namecolor}{lastnamecolor}
|
||||
\colorlet{headrulecolor}{lastnamecolor!50}
|
||||
\colorlet{firstnamecolor}{lastnamecolor!60}
|
||||
\colorlet{titlecolor}{color2!85}
|
||||
\colorlet{addresscolor}{color2}
|
||||
\colorlet{quotecolor}{color1}
|
||||
\colorlet{pictureframecolor}{color1}
|
||||
% body
|
||||
\colorlet{bodyrulecolor}{color1}
|
||||
\colorlet{sectioncolor}{color1}
|
||||
\colorlet{subsectioncolor}{color1}
|
||||
\colorlet{hintstylecolor}{color0}
|
||||
% letter
|
||||
\colorlet{letterclosingcolor}{color2}
|
||||
% skillmatrix
|
||||
\colorlet{skillmatrixfullcolor}{color1}
|
||||
\colorlet{skillmatrixemptycolor}{color2!30}
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% header, body & footer
|
||||
%-------------------------------------------------------------------------------
|
||||
\moderncvhead{3}
|
||||
\moderncvhead[\moderncvstyleheadoptions]{3}
|
||||
\moderncvbody[\moderncvstylebodyoptions]{3}
|
||||
|
||||
\if@datainhead
|
||||
% if data is shown in head, do not include the footer
|
||||
\else
|
||||
\moderncvfoot{1}
|
||||
\fi
|
||||
|
||||
\endinput
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue