1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 10:59:01 +00:00

update with correct color variables

This commit is contained in:
Brett Schwarz 2021-11-15 22:39:37 -08:00
parent d6a36a78ce
commit e89c754462

View File

@ -105,6 +105,26 @@ skinparam useBetaStyle false
!$SUCCESS_TEXT = $WHITE !$SUCCESS_TEXT = $WHITE
!$WARNING_TEXT = $WHITE !$WARNING_TEXT = $WHITE
!$DANGER_TEXT = $WHITE !$DANGER_TEXT = $WHITE
!$PRIMARY_TEXT = $WHITE
!$HEADER_TEXT = $WHITE
''
!if ($PUML_OUTLINE == "true")
!$HEADER_TEXT = $PRIMARY_TEXT
!$PRIMARY_TEXT = $PRIMARY_LIGHT
!$INFO_TEXT = $INFO_LIGHT
!$WARNING_TEXT = $WARNING_LIGHT
!$DARK_BG = $PUML_BGCOLOR
!$INFO_BG = $PUML_BGCOLOR
!$DANGER_BG = $PUML_BGCOLOR
!$WARNING_BG = $PUML_BGCOLOR
!$SECONDARY_BG = $PUML_BGCOLOR
!else
!$DARK_BG = $DARK
!$INFO_BG = $INFO
!$DANGER_BG = $DANGER
!$WARNING_BG = $WARNING
!$SECONDARY_BG = $SECONDARY
!endif
'' ''
'' Called to make the text in the color of SUCCESS '' Called to make the text in the color of SUCCESS
'' ''
@ -154,24 +174,6 @@ skinparam useBetaStyle false
!endif !endif
!endprocedure !endprocedure
'' ''
!if ($PUML_OUTLINE == "true")
!$HEADER_TEXT = $PRIMARY_TEXT
!$PRIMARY_TEXT = $PRIMARY_LIGHT
!$INFO_TEXT = $INFO_LIGHT
!$WARNING_TEXT = $WARNING_LIGHT
!$DARK_BG = $PUML_BGCOLOR
!$INFO_BG = $PUML_BGCOLOR
!$DANGER_BG = $PUML_BGCOLOR
!$WARNING_BG = $PUML_BGCOLOR
!$SECONDARY_BG = $PUML_BGCOLOR
!else
!$DARK_BG = $DARK
!$INFO_BG = $INFO
!$DANGER_BG = $DANGER
!$WARNING_BG = $WARNING
!$SECONDARY_BG = $SECONDARY
!endif
''
'' HTTP Methods '' HTTP Methods
'' ''
!_POST = "<color #007a3e>POST</color>" !_POST = "<color #007a3e>POST</color>"
@ -184,10 +186,11 @@ skinparam useBetaStyle false
'' Style settings '' Style settings
'' ''
<style> <style>
mindmapDiagram {
root { root {
BackgroundColor $BGCOLOR BackgroundColor $PUML_BGCOLOR
FontColor $PRIMARY_TEXT FontColor $PRIMARY_TEXT
HyperLinkColor $ORANGE HyperLinkColor $INFO_BG
LineColor $PRIMARY_DARK LineColor $PRIMARY_DARK
LineThickness 1 LineThickness 1
Margin 10 Margin 10
@ -197,7 +200,7 @@ skinparam useBetaStyle false
node { node {
Padding 15 Padding 15
roundcorner 20 roundcorner 20
BackgroundColor $PRIMARY-$PRIMARY_DARK BackgroundColor $PRIMARY_BG-$PRIMARY_DARK
} }
caption { caption {
LineThickness 0 LineThickness 0
@ -206,35 +209,36 @@ skinparam useBetaStyle false
LineThickness 0 LineThickness 0
} }
groupHeader { groupHeader {
BackgroundColor $SECONDARY BackgroundColor $SECONDARY_BG
FontColor $INFO FontColor $INFO_BG
FontStyle bold FontStyle bold
} }
header { header {
LineThickness 0 LineThickness 0
} }
referenceHeader { referenceHeader {
BackgroundColor $BGCOLOR BackgroundColor $PUML_BGCOLOR
FontColor $DARK FontColor $DARK_BG
FontStyle bold FontStyle bold
} }
separator { separator {
BackgroundColor $FGCOLOR BackgroundColor $FGCOLOR
FontColor $BGCOLOR FontColor $PUML_BGCOLOR
FontStyle bold FontStyle bold
} }
title { title {
FontSize 20 FontSize 20
BorderRoundCorner 8 BorderRoundCorner 8
BorderThickness 1 BorderThickness 1
BackgroundColor $SECONDARY_LIGHT-$SECONDARY BackgroundColor $SECONDARY_LIGHT-$SECONDARY_BG
FontColor $PRIMARY FontColor $PRIMARY_TEXT
BorderColor $SECONDARY BorderColor $SECONDARY_BG
} }
}
nwdiagDiagram { nwdiagDiagram {
network { network {
$primary_scheme() $primary_scheme()
LineColor $PRIMARY LineColor $PRIMARY_BG
LineThickness 1.0 LineThickness 1.0
FontColor $PRIMARY_DARK FontColor $PRIMARY_DARK
} }
@ -246,7 +250,7 @@ nwdiagDiagram {
LineColor $PRIMARY_DARK LineColor $PRIMARY_DARK
} }
group { group {
BackGroundColor $LIGHT BackGroundColor $LIGHT_BG
LineColor $LIGHT_DARK LineColor $LIGHT_DARK
LineThickness 2.0 LineThickness 2.0
Margin 5 Margin 5
@ -256,7 +260,7 @@ nwdiagDiagram {
ganttDiagram { ganttDiagram {
task { task {
$primary_scheme() $primary_scheme()
LineColor $PRIMARY LineColor $PRIMARY_BG
Margin 10 Margin 10
Padding 6 Padding 6
} }
@ -266,19 +270,19 @@ ganttDiagram {
BackGroundColor $INFO_BG BackGroundColor $INFO_BG
} }
separator { separator {
LineColor $SECONDARY LineColor $SECONDARY_BG
BackGroundColor $secondary_scheme() BackGroundColor $secondary_scheme()
FontColor $SECONDARY_TEXT FontColor $SECONDARY_TEXT
} }
milestone { milestone {
FontColor $INFO FontColor $INFO_BG
FontSize 16 FontSize 16
FontStyle italic FontStyle italic
BackGroundColor $DIAMOND_BG BackGroundColor $DIAMOND_BG
LineColor $SECONDARY_DARK LineColor $SECONDARY_DARK
} }
timeline { timeline {
BackgroundColor $SECONDARY BackgroundColor $SECONDARY_BG
FontColor $SECONDARY_TEXT FontColor $SECONDARY_TEXT
} }
closed { closed {