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:
Mark E Fuller 2024-05-04 15:08:51 +03:00 committed by GitHub
commit 08371bb3e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 240 additions and 90 deletions

View file

@ -29,9 +29,9 @@
\renewcommand*{\hintfont}{}
% styles
\renewcommand*{\sectionstyle}[1]{{\sectionfont\textcolor{color1}{#1}}}
\renewcommand*{\subsectionstyle}[1]{{\subsectionfont\textcolor{color1}{#1}}}
\renewcommand*{\hintstyle}[1]{{\hintfont\textcolor{color0}{#1}}}
\renewcommand*{\sectionstyle}[1]{{\sectionfont\textcolor{sectioncolor}{#1}}}
\renewcommand*{\subsectionstyle}[1]{{\subsectionfont\textcolor{subsectioncolor}{#1}}}
\renewcommand*{\hintstyle}[1]{{\hintfont\textcolor{hintstylecolor}{#1}}}
%-------------------------------------------------------------------------------
@ -73,7 +73,7 @@
\par\addvspace{2.5ex}%
\phantomsection{}% reset the anchor for hyperrefs
\addcontentsline{toc}{section}{#2}%
\cvitem[0ex]{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}{\strut\sectionstyle{#2}}%
\cvitem[0ex]{\strut\raggedleft\raisebox{\baseletterheight}{\color{bodyrulecolor}\rule{\hintscolumnwidth}{0.95ex}}}{\strut\sectionstyle{#2}}%
\par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading
\RenewDocumentCommand{\subsection}{sm}{%
@ -169,7 +169,7 @@
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfil%
{\color{color2}\itshape\enclname: \@enclosure}}%
{\color{letterclosingcolor}\itshape\enclname: \@enclosure}}%
\vfil}