Change flowchart color (#185)

* Change BG color to white

* Fix flowcharts where graphics overlap with text

* Increase border size

* change arrow style

* Allow standalone building of TikZ flowcharts

Useful for reference or website etc..

* Prevent manual hyphenation in TikZ diagrams

A Bit of a manual tweak.. but worth it to look nicer :D

* Add missing file for flowcharts

---------

Co-authored-by: Cedric <ced@awase.ostal>
This commit is contained in:
Hendrik Kleinwaechter
2023-08-19 16:35:02 +02:00
committed by GitHub
parent fad30fa1db
commit a8dc6dc210
13 changed files with 73 additions and 63 deletions

View File

@@ -18,35 +18,10 @@
% For tables
\renewcommand\theadfont{\bfseries}
\definecolor{codeblue}{RGB}{69, 161, 248}
\definecolor{codeblack}{RGB}{40, 40, 40}
\definecolor{maingray}{HTML}{F8F8F8}
\definecolor{hlocre}{HTML}{E5B874}
\definecolor{hlorange}{HTML}{EC7850}
\definecolor{hlyellow}{HTML}{FAE69E}
\definecolor{pinkpic}{RGB}{246, 183, 194}
\definecolor{redpic}{RGB}{232, 72, 71}
\definecolor{yellowpic}{RGB}{246, 235, 51}
\tikzstyle{every picture}+=[font=\small\sffamily]
\usetikzlibrary{shapes,arrows}
\tikzstyle{decision} = [diamond, draw, fill=codeblack, text=white,
text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=codeblue, text=white,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{decision_start} = [diamond, draw, fill=pinkpic, text=black,
text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{start} = [rectangle, draw, fill=pinkpic, text=black,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{success} = [rectangle, draw, fill=yellowpic, text=black,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{fail} = [rectangle, draw, fill=redpic, text=black,
text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\input{colors.tex}
% Define flowcharts macros independently so we can build them as png files
% for the website or something. This is supported in the makefile
\input{figures/flowcharts_tikz.tex}
% Fonts
\defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX}
% Define Semi-bold
@@ -58,7 +33,7 @@
\else
\setmainfont{TeX Gyre Pagella}[Scale=1.0] % Or Palatino Linotype, etc.
% TODO not available on github CI
% \setmonofont{Andale Mono}[Scale=MatchLowercase]
% \setmonofont{Andale Mono}[Scale=MatchLowercase]
\fi
% Opens Sans in both case..
\setsansfont{Open Sans}[