Skip to content

Commit

Permalink
fix colouring for diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
Bandov committed Apr 14, 2024
1 parent 290d5e1 commit ad99b44
Show file tree
Hide file tree
Showing 20 changed files with 67 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/diagrams/AddPersonSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
!include style.puml
skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
Actor User as user USER_COLOR
Participant ":UI" as ui UI_COLOR
Participant ":Logic" as logic LOGIC_COLOR
end box

box model MODEL_COLOR_T1
Participant ":Model" as model MODEL_COLOR
Participant ":Person" as person PERSON_COLOR
Participant ":Attribute" as attribute ATTRIBUTE_COLOR
Participant ":Storage" as storage STORAGE_COLOR
end box

user -[USER_COLOR]> ui : "add /Name Bob"
activate ui UI_COLOR
Expand Down Expand Up @@ -51,6 +56,7 @@ deactivate storage
storage --[Hidden]> storage : model
destroy storage


logic --[LOGIC_COLOR]> ui : CommandResult("New person added. Details: Name: Bob")
deactivate logic

Expand Down
8 changes: 8 additions & 0 deletions docs/diagrams/ArchitectureSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@
!include style.puml
skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
Actor User as user USER_COLOR
Participant ":UI" as ui UI_COLOR
Participant ":Logic" as logic LOGIC_COLOR
end box

box model MODEL_COLOR_T1
Participant ":Model" as model MODEL_COLOR
end box

box storage STORAGE_COLOR_T1
Participant ":Storage" as storage STORAGE_COLOR
end box

user -[USER_COLOR]> ui : "delete 0000"
activate ui UI_COLOR
Expand Down
8 changes: 8 additions & 0 deletions docs/diagrams/AttributeAdditionSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
!include style.puml
skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
Actor User as user USER_COLOR
Participant ":UI" as ui UI_COLOR
Participant ":Logic" as logic LOGIC_COLOR
end box

box Model MODEL_COLOR_T1
Participant ":Model" as model MODEL_COLOR
Participant ":Attribute" as attribute ATTRIBUTE_COLOR
end box

box Storage STORAGE_COLOR_T1
Participant ":Storage" as storage STORAGE_COLOR
end box

user -[USER_COLOR]> ui : "addAttribute /1234 /name value"
activate ui UI_COLOR
Expand Down
8 changes: 8 additions & 0 deletions docs/diagrams/AttributeDeletionSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@
!include style.puml
skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
Actor User as user USER_COLOR
Participant ":UI" as ui UI_COLOR
Participant ":Logic" as logic LOGIC_COLOR
end box

box Model MODEL_COLOR_T1
Participant ":Model" as model MODEL_COLOR
end box

box Storage STORAGE_COLOR_T1
Participant ":Storage" as storage STORAGE_COLOR
end box

user -[USER_COLOR]> ui : "deleteAttribute \uuid 1234 \\name"
activate ui UI_COLOR
Expand Down
8 changes: 8 additions & 0 deletions docs/diagrams/AttributeEditSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
!include style.puml
skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
Actor User as user USER_COLOR
Participant ":UI" as ui UI_COLOR
Participant ":Logic" as logic LOGIC_COLOR
end box

box Model MODEL_COLOR_T1
Participant ":Model" as model MODEL_COLOR
Participant ":Attribute" as attribute ATTRIBUTE_COLOR
end box

box Storage STORAGE_COLOR_T1
Participant ":Storage" as storage STORAGE_COLOR
end box

user -[USER_COLOR]> ui : "editAttribute /uuid 1234 /name newValue"
activate ui UI_COLOR
Expand Down
5 changes: 5 additions & 0 deletions docs/diagrams/ClearSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
skinparam ArrowFontStyle plain
!define CLEARCOMMAND_COLOR #FF7700

box Logic LOGIC_COLOR_T1
actor User as user USER_COLOR
participant ":UI" as ui UI_COLOR
participant ":LogicManager" as logic LOGIC_COLOR
participant ":ClearCommand" as clearCommand CLEARCOMMAND_COLOR
end box

box Model MODEL_COLOR_T1
participant ":Model" as model MODEL_COLOR
end box

user -> ui : deleteallpersons
activate ui
Expand Down
4 changes: 3 additions & 1 deletion docs/diagrams/ClearTerminalSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ skinparam ArrowFontStyle plain
!define DIALOG_CONTAINER_COLOR #FF8F00
!define IMAGE_CONTAINER_COLOR #F57F17
!define SCROLLPANE_COLOR #E65100
!define CLIINPUT_COLOR #BF360C
!define CLIINPUT_COLOR #FF6F00

box ui GUI_CONTROLLER_COLOR
actor User as user USER_COLOR
participant "GUI Controller" as controller GUI_CONTROLLER_COLOR
participant "CommandSectionDialogContainer" as dialogContainer DIALOG_CONTAINER_COLOR
participant "CommandBoxImageContainer" as imageContainer IMAGE_CONTAINER_COLOR
participant "CommandSectionDialogScrollPane" as scrollPane SCROLLPANE_COLOR
participant "CLIInput" as cliInput CLIINPUT_COLOR
end box

user -> controller : input("c" or "clear")
activate controller
Expand Down
8 changes: 8 additions & 0 deletions docs/diagrams/DeleteAttributeSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
!include style.puml
skinparam ArrowFontStyle plain

box logic LOGIC_COLOR_T1
Actor User as user USER_COLOR
Participant ":UI" as ui UI_COLOR
Participant ":Logic" as logic LOGIC_COLOR
end box

box model MODEL_COLOR_T1
Participant ":Model" as model MODEL_COLOR
Participant ":Person" as person PERSON_COLOR
end box

box storage STORAGE_COLOR_T1
Participant ":Storage" as storage STORAGE_COLOR
end box

user -[USER_COLOR]> ui : "deleteattribute /uuid 1234 /name1 /name2"
activate ui UI_COLOR
Expand Down
8 changes: 8 additions & 0 deletions docs/diagrams/DeletePersonSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@
!include style.puml
skinparam ArrowFontStyle plain

box logic LOGIC_COLOR_T1
Actor User as user USER_COLOR
Participant ":UI" as ui UI_COLOR
Participant ":Logic" as logic LOGIC_COLOR
end box

box model MODEL_COLOR_T1
Participant ":Model" as model MODEL_COLOR
end box

box storage STORAGE_COLOR_T1
Participant ":Storage" as storage STORAGE_COLOR
end box

user -[USER_COLOR]> ui : "delete /0001"
activate ui UI_COLOR
Expand Down
5 changes: 5 additions & 0 deletions docs/diagrams/FindSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ skinparam ArrowFontStyle plain
!define ABPARSER_COLOR #A9DCDF
!define PREDICATE_COLOR #FAA1A1

box Logic LOGIC_COLOR_T1
Actor User as user USER_COLOR
Participant ":UI" as ui UI_COLOR
Participant ":LogicManager" as logic LOGIC_COLOR
Participant ":AddressBookParser" as parser ABPARSER_COLOR
Participant ":FindCommand" as findCommand FINDCOMMAND_COLOR
end box

box Model MODEL_COLOR_T1
Participant ":NameContainsKeywordsPredicate" as predicate PREDICATE_COLOR
Participant ":Model" as model MODEL_COLOR
end box

user -[USER_COLOR]> ui : enter "find /alice /bob"
activate ui UI_COLOR
Expand Down
Binary file modified docs/images/AddPersonSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/ArchitectureSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/AttributeAdditionSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/AttributeDeletionSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/AttributeEditSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/ClearSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/ClearTerminalSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/DeleteAttributeSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/DeletePersonSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/FindSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad99b44

Please sign in to comment.