Skip to content

Commit

Permalink
Fix font color for internal queues
Browse files Browse the repository at this point in the history
  • Loading branch information
smbecker committed Jan 21, 2022
1 parent 7cf6956 commit e7c4218
Show file tree
Hide file tree
Showing 17 changed files with 255 additions and 260 deletions.
4 changes: 3 additions & 1 deletion build/make-release.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

USER=$(git config --get remote.origin.url | grep -Po "(?<=git@github\.com:)(.*?)(?=/.+.git)")
BRANCH=$(git branch --show-current)
function convert_to_importurl {
input_fname=$1
output_fname="$(pwd)/output/${1//\.\.\/src\//}"

echo $input_fname
cat $input_fname | sed 's/!include \.*/!includeurl https:\/\/raw.githubusercontent.com\/skleanthous\/C4-PlantumlSkin\/master\/build\/output/' > "$output_fname"
cat $input_fname | sed "s/!include \.*/!includeurl https:\/\/raw.githubusercontent.com\/$USER\/C4-PlantumlSkin\/$BRANCH\/build\/output/" > "$output_fname"
}

for file in $(find ../src -type f); do
Expand Down
26 changes: 13 additions & 13 deletions build/output/c4.puml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/general.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/legend.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/notes.puml

!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/actors.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/components.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/containers.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/dbs.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/expanded.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/misc.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/queues.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/systems.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/items/sequence.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/general.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/legend.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/notes.puml

!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/actors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/components.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/containers.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/dbs.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/expanded.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/misc.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/queues.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/systems.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/items/sequence.puml
2 changes: 1 addition & 1 deletion build/output/general/general.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' General params
Expand Down
4 changes: 2 additions & 2 deletions build/output/general/legend.puml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/general.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/general.puml
!endif

' Legend
Expand Down
2 changes: 1 addition & 1 deletion build/output/general/notes.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Notes
Expand Down
2 changes: 1 addition & 1 deletion build/output/items/actors.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Actors
Expand Down
2 changes: 1 addition & 1 deletion build/output/items/components.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Components
Expand Down
2 changes: 1 addition & 1 deletion build/output/items/containers.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Containers
Expand Down
2 changes: 1 addition & 1 deletion build/output/items/dbs.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Db's
Expand Down
2 changes: 1 addition & 1 deletion build/output/items/expanded.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Expanded
Expand Down
2 changes: 1 addition & 1 deletion build/output/items/misc.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Miscellaneous
Expand Down
2 changes: 1 addition & 1 deletion build/output/items/queues.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Queues
Expand Down
212 changes: 107 additions & 105 deletions build/output/items/sequence.puml
Original file line number Diff line number Diff line change
@@ -1,105 +1,107 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!endif

!ifdef SKIN_SEQUENCE_DIAGRAM
' Shared
' ##################################

skinparam backgroundColor EXPENDED_SYSTEM_BACKGROUND_COLOR

skinparam sequence {
ArrowColor SEQUENCE_ITEMS_BORDER_COLOR
LifeLineBorderColor SEQUENCE_ITEMS_BORDER_COLOR
LifeLineBackgroundColor SYSTEM_BG_COLOR

ActorBorderColor SEQUENCE_ITEMS_BORDER_COLOR
ActorBackgroundColor SYSTEM_BG_COLOR
ActorFontColor Black
}

skinparam boundary {
FontColor Black
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam control {
FontColor Black
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam entity {
FontColor Black
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam collections {
FontColor SYSTEM_FONT_COLOR
StereotypeFontColor SYSTEM_FONT_COLOR
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam participant {
FontColor SYSTEM_FONT_COLOR
StereotypeFontColor SYSTEM_FONT_COLOR
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam database {
FontColor Black
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}

' PlantUML Sequence diagram skinning
' Internal
skinparam boundary<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam control<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam entity<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam collections<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam participant<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam database<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

' External
skinparam boundary<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam control<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam entity<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam collections<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam participant<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam database<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

!endif
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

!ifdef SKIN_SEQUENCE_DIAGRAM
' Shared
' ##################################

skinparam backgroundColor EXPENDED_SYSTEM_BACKGROUND_COLOR

skinparam sequence {
ArrowColor SEQUENCE_ITEMS_BORDER_COLOR
LifeLineBorderColor SEQUENCE_ITEMS_BORDER_COLOR
LifeLineBackgroundColor SYSTEM_BG_COLOR

ActorBorderColor SEQUENCE_ITEMS_BORDER_COLOR
ActorBackgroundColor SYSTEM_BG_COLOR
ActorFontColor Black
}

skinparam boundary {
FontColor Black
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam control {
FontColor Black
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam entity {
FontColor Black
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam collections {
FontColor SYSTEM_FONT_COLOR
StereotypeFontColor SYSTEM_FONT_COLOR
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam participant {
FontColor SYSTEM_FONT_COLOR
StereotypeFontColor SYSTEM_FONT_COLOR
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam database {
FontColor Black
BackgroundColor SYSTEM_BG_COLOR
BorderColor SEQUENCE_ITEMS_BORDER_COLOR
}
skinparam queue {
FontColor SYSTEM_FONT_COLOR
}
' PlantUML Sequence diagram skinning
' Internal
skinparam boundary<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam control<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam entity<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam collections<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam participant<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

skinparam database<<Internal>> {
BackgroundColor SYSTEM_BG_COLOR
}

' External
skinparam boundary<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam control<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam entity<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam collections<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam participant<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

skinparam database<<External>> {
BackgroundColor EXTERNAL_SYSTEM_BG_COLOR
}

!endif
2 changes: 1 addition & 1 deletion build/output/items/systems.puml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!ifndef COLORS_IMPORTED
!includeurl https://raw.githubusercontent.com/skleanthous/C4-PlantumlSkin/master/build/output/general/colors.puml
!includeurl https://raw.githubusercontent.com/smbecker/C4-PlantumlSkin/sb-queue-font/build/output/general/colors.puml
!endif

' Systems
Expand Down
11 changes: 0 additions & 11 deletions build/output_fname

This file was deleted.

26 changes: 13 additions & 13 deletions src/c4.puml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
!include general/general.puml
!include general/legend.puml
!include general/notes.puml

!include items/actors.puml
!include items/components.puml
!include items/containers.puml
!include items/dbs.puml
!include items/expanded.puml
!include items/misc.puml
!include items/queues.puml
!include items/systems.puml
!include items/sequence.puml
!include ./general/general.puml
!include ./general/legend.puml
!include ./general/notes.puml

!include ./items/actors.puml
!include ./items/components.puml
!include ./items/containers.puml
!include ./items/dbs.puml
!include ./items/expanded.puml
!include ./items/misc.puml
!include ./items/queues.puml
!include ./items/systems.puml
!include ./items/sequence.puml
Loading

0 comments on commit e7c4218

Please sign in to comment.