diff --git a/Data/Server/WebUI/src/Assemblies/Assembly_Editor.jsx b/Data/Server/WebUI/src/Assemblies/Assembly_Editor.jsx index 0516d70..147a2bd 100644 --- a/Data/Server/WebUI/src/Assemblies/Assembly_Editor.jsx +++ b/Data/Server/WebUI/src/Assemblies/Assembly_Editor.jsx @@ -46,9 +46,19 @@ const VARIABLE_TYPE_OPTIONS = [ { key: "credential", label: "Credential" } ]; +const BACKGROUND_COLORS = { + field: "#1C1C1C", /* Shared surface color for text fields, dropdown inputs, and script editors */ + sectionCard: "#2E2E2E", /* Background for section container cards */ + menuSelected: "rgba(88,166,255,0.16)", /* Background for selected dropdown items */ + menuSelectedHover: "rgba(88,166,255,0.24)", /* Background for hovered selected dropdown items */ + primaryActionSaving: "rgba(88,166,255,0.12)", /* Background for primary action button while saving */ + primaryActionHover: "rgba(88,166,255,0.18)", /* Background for primary action button hover state */ + dialog: "#1a1f27" /* Background for modal dialogs */ +}; + const INPUT_BASE_SX = { "& .MuiOutlinedInput-root": { - bgcolor: "#2A2A2A", /* Text Field Background Color */ + bgcolor: BACKGROUND_COLORS.field, color: "#e6edf3", /* Text Color */ borderRadius: 1, /* Roundness of UI Elements */ minHeight: 40, @@ -95,7 +105,7 @@ const SECTION_TITLE_SX = { }; const SECTION_CARD_SX = { - bgcolor: "#2E2E2E", /* Color of Page Background */ + bgcolor: BACKGROUND_COLORS.sectionCard, borderRadius: 2, border: "1px solid #262f3d", }; @@ -103,14 +113,14 @@ const SECTION_CARD_SX = { const MENU_PROPS = { PaperProps: { sx: { - bgcolor: "#202734", + bgcolor: BACKGROUND_COLORS.field, color: "#e6edf3", border: "1px solid #2b3544", "& .MuiMenuItem-root.Mui-selected": { - bgcolor: "rgba(88,166,255,0.16)" + bgcolor: BACKGROUND_COLORS.menuSelected }, "& .MuiMenuItem-root.Mui-selected:hover": { - bgcolor: "rgba(88,166,255,0.24)" + bgcolor: BACKGROUND_COLORS.menuSelectedHover } } } @@ -265,7 +275,7 @@ function toServerDocument(assembly) { function RenameFileDialog({ open, value, onChange, onCancel, onSave }) { return ( - + Rename Assembly File @@ -760,7 +772,7 @@ export default function AssemblyEditor({ Script Content - + updateAssembly({ script: value })} @@ -771,7 +783,7 @@ export default function AssemblyEditor({ fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace', fontSize: 14, color: "#e6edf3", - background: "#2A2A2A", /* Color of Script Box */ + background: BACKGROUND_COLORS.field, /* Color of Script Box */ outline: "none", minHeight: 320, lineHeight: 1.45, @@ -888,7 +900,7 @@ export default function AssemblyEditor({ {assembly.variables.map((variable) => ( @@ -1007,7 +1019,7 @@ export default function AssemblyEditor({ key={file.id} sx={{ p: 1.5, - bgcolor: "#202734", + bgcolor: BACKGROUND_COLORS.field, border: "1px solid #2b3544", display: "flex", alignItems: "center",