1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-24 13:57:33 +00:00

Merge pull request #1727 from theavege/fix/sunlust

fix json and yaml
This commit is contained in:
PlantUML 2024-04-09 14:18:17 +02:00 committed by GitHub
commit e982bb326d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,9 @@
'' NAME = Sunlust '' NAME = "Sunlust"
'' DESCRIPTION = sunlust theme based off of the [solarized theme](https://ethanschoonover.com/solarized) '' DESCRIPTION = "Sunlust theme based off of the [solarized theme](https://ethanschoonover.com/solarized)"
'' AUTHOR = Artem V. Ageev '' AUTHORS = ["Artem V. Ageev"]
'' LICENCE = GPL 3+ '' LICENCE = "GPL 3+"
!$THEME = 'sunlust' !$THEME = 'sunlust'
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = '#fdf6e3'
!endif
scale max 2000 * 2000 scale max 2000 * 2000
!$colors = { !$colors = {
"font" : "#657b83", "font" : "#657b83",
@ -27,107 +24,127 @@ scale max 2000 * 2000
!$shapes = { !$shapes = {
"TECHNOLOGY" : { "TECHNOLOGY" : {
"color" : "#859900", "color" : "#859900",
"shapes" : [ "Node", "File"] "shapes" : [
"Node",
"File",
"Artifact",
"Circle"
]
}, },
"APPLICATION" : { "APPLICATION" : {
"color" : "#268bd2", "color" : "#268bd2",
"shapes" : [ "Participant", "Rectangle", "Component" ] "shapes" : [
"Participant",
"Rectangle",
"Component",
"Hexagon",
"Agent"
]
}, },
"BUSINESS" : { "BUSINESS" : {
"color" : "#b58900", "color" : "#b58900",
"shapes" : [ "Actor", "Note", "Hexagon", "Boundary", "Control", "Entity" ] "shapes" : [
"Actor",
"Note",
"Boundary",
"Control",
"Entity",
"Person"
]
}, },
"IMPLEMENTATION" : { "IMPLEMENTATION" : {
"color" : "#dc322f", "color" : "#dc322f",
"shapes" : [ "Class", "Map", "Json" ] "shapes" : [
"Class",
"Map",
"Json",
"Package",
"Frame",
"Interface"
]
}, },
"MOTIVATION" : { "MOTIVATION" : {
"color" : "#6c71c4", "color" : "#6c71c4",
"shapes" : [ "Cloud", "Frame", "Collections", "Database", "Queue" ] "shapes" : [
"Cloud",
"Collections",
"Database",
"Queue",
"Process",
"Stack",
"Storage"
]
}, },
"STRATEGY" : { "STRATEGY" : {
"color" : "#STRATEGY", "color" : "#cb4b16",
"shapes" : [ "Partition", "Folder", "Card" ] "shapes" : [
"Action",
"Partition",
"Folder",
"Usecase",
"Card"
]
} }
} }
!$thickness = 2 !$thickness = 2
<style> <style>
!foreach $lib in %splitstr('root.wbsDiagram.mindmapDiagram.ganttDiagram.saltDiagram', '.') nwdiagDiagram, wbsDiagram, mindmapDiagram, ganttDiagram, saltDiagram, jsonDiagram, yamlDiagram {
$lib { BackGroundColor $colors.bg
BackGroundColor $colors.bg arrow {
arrow { LineColor $colors.font
LineColor $colors.font
Thickness $thickness
}
node {
LineColor $colors.green
BackgroundColor $colors.green_bg
}
task {
LineColor $colors.violet
BackGroundColor $colors.violet_bg
}
milestone {
LineColor $colors.red
BackGroundColor $colors.red_bg
}
}
!endfor
</style>
skinparam {
noteTextAlignment left
actorStyle awesome
Dpi 100
Shadowing false
BackgroundColor $colors.bg
WrapWidth 200
RoundCorner 15
Swimlane {
BorderColor $colors.font
Thickness $thickness
WrapTitleWidth 150
}
Arrow {
Color $colors.font
Thickness $thickness Thickness $thickness
} }
Default { node {
TextAlignment center LineColor $colors.green
FontName Dejavu Serif BackgroundColor $colors.green_bg
} }
Legend { task {
FontName VL Gothic LineColor $colors.violet
BorderColor transparent BackGroundColor $colors.violet_bg
BackgroundColor transparent
} }
Sequence { milestone {
MessageAlign direction LineColor $colors.red
ArrowThickness $thickness BackGroundColor $colors.red_bg
LifeLineBorderColor $colors.yellow
BoxBorderThickness $thickness
} }
!foreach $shape in %splitstr('Activity.State', '.')
$shape {
BackgroundColor transparent
Border {
Color $colors.violet
Thickness $thickness
}
Diamond {
BorderColor $colors.red
BackgroundColor transparent
}
}
!endfor
!foreach $key in %get_json_keys($shapes)
!foreach $shape in $shapes[$key].shapes
$shape {
BackgroundColor #$key
Border {
Color $shapes[$key].color
Thickness $thickness
}
}
!endfor
!endfor
} }
</style>
skinparam noteTextAlignment left
skinparam actorStyle awesome
skinparam Dpi 100
skinparam Shadowing false
skinparam BackgroundColor $colors.bg
skinparam WrapWidth 200
skinparam RoundCorner 15
skinparam SwimlaneBorderColor $colors.font
skinparam SwimlaneThickness $thickness
skinparam SwimlaneWrapTitleWidth 150
skinparam ArrowColor $colors.font
skinparam ArrowThickness $thickness
skinparam DefaultTextAlignment center
skinparam DefaultFontName Dejavu Serif
skinparam LegendFontName VL Gothic
skinparam LegendBorderColor transparent
skinparam LegendBackgroundColor transparent
skinparam SequenceMessageAlign direction
skinparam SequenceArrowThickness $thickness
skinparam SequenceLifeLineBorderColor $colors.yellow
skinparam SequenceBoxBorderThickness $thickness
!foreach $shape in %splitstr('Activity.State', '.')
skinparam $shape {
BackgroundColor transparent
BorderColor $colors.violet
BorderThickness $thickness
DiamondBorderColor $colors.red
DiamondBackgroundColor transparent
}
!endfor
!foreach $key in %get_json_keys($shapes)
!foreach $shape in $shapes[$key].shapes
skinparam $shape {
BackgroundColor #$key
BorderColor $shapes[$key].color
BorderThickness $thickness
}
!endfor
!endfor