diff --git a/src/assets/icons/ArrowDownIcon.tsx b/src/assets/icons/ArrowDownIcon.tsx
index 0b92d66a..59392473 100755
--- a/src/assets/icons/ArrowDownIcon.tsx
+++ b/src/assets/icons/ArrowDownIcon.tsx
@@ -1,7 +1,12 @@
-import { Box, useTheme } from "@mui/material";
+import {Box, SxProps, Theme, useTheme} from "@mui/material";
-
-export default function ArrowDownIcon(props: any) {
+interface Color{
+ color?: string
+}
+export default function ArrowDownIcon(
+ props: any,
+ {color = "#7E2AEA"}: Color
+) {
const theme = useTheme();
return (
@@ -17,7 +22,7 @@ export default function ArrowDownIcon(props: any) {
}}
>
);
diff --git a/src/assets/icons/CalendarIcon.tsx b/src/assets/icons/CalendarIcon.tsx
index a3c91293..3c3544e9 100644
--- a/src/assets/icons/CalendarIcon.tsx
+++ b/src/assets/icons/CalendarIcon.tsx
@@ -1,6 +1,9 @@
-import { Box } from "@mui/material";
+import {Box, SxProps, Theme} from "@mui/material";
-export default function CalendarIcon() {
+interface Props {
+ sx?: SxProps
+}
+export default function CalendarIcon({sx}:Props) {
return (
);
diff --git a/src/assets/icons/NameplateLogoFQDark.tsx b/src/assets/icons/NameplateLogoFQDark.tsx
new file mode 100644
index 00000000..651c17b2
--- /dev/null
+++ b/src/assets/icons/NameplateLogoFQDark.tsx
@@ -0,0 +1,24 @@
+import { FC, SVGProps } from "react";
+
+export const NameplateLogoFQDark: FC> = (props) => (
+
+
+);
\ No newline at end of file
diff --git a/src/assets/icons/UploadIcon.tsx b/src/assets/icons/UploadIcon.tsx
index 46c386c6..573fcbfb 100755
--- a/src/assets/icons/UploadIcon.tsx
+++ b/src/assets/icons/UploadIcon.tsx
@@ -1,7 +1,10 @@
import { Box, useTheme } from "@mui/material";
+interface Props{
+ color?: string
+}
-export default function UploadIcon() {
+export default function UploadIcon({color= "#9A9AAF"}: Props) {
const theme = useTheme();
return (
@@ -15,9 +18,9 @@ export default function UploadIcon() {
}}
>
);
diff --git a/src/model/quizSettings.ts b/src/model/quizSettings.ts
index 4efd2ff7..02b95274 100644
--- a/src/model/quizSettings.ts
+++ b/src/model/quizSettings.ts
@@ -33,6 +33,7 @@ export interface QuizConfig {
startpageType: QuizStartpageType;
results: QuizResultsType;
haveRoot: string | null;
+ theme: "StandardTheme" | "StandardDarkTheme" | "PinkTheme" | "PinkDarkTheme" | "BlackWhiteTheme" | "OliveTheme" | "YellowTheme" | "GoldDarkTheme" | "PurpleTheme" | "BlueTheme" | "BlueDarkTheme";
resultInfo: {
when: 'before' | 'after' | 'email',
share: true | false,
@@ -95,6 +96,7 @@ export const defaultQuizConfig: QuizConfig = {
startpageType: null,
results: null,
haveRoot: null,
+ theme: "StandardTheme",
resultInfo: {
when: 'after',
share: false,
diff --git a/src/pages/Questions/DeleteNodeModal/index.tsx b/src/pages/Questions/DeleteNodeModal/index.tsx
index 0da5039b..c06aff37 100644
--- a/src/pages/Questions/DeleteNodeModal/index.tsx
+++ b/src/pages/Questions/DeleteNodeModal/index.tsx
@@ -14,7 +14,7 @@ import { getQuestionByContentId } from "@root/questions/actions";
import { updateDeleteId } from "@root/uiTools/actions";
import { useUiTools } from "@root/uiTools/store";
-import { CheckboxIcon } from "@icons/Checkbox";
+import CheckboxIcon from "@icons/Checkbox";
type DeleteNodeModalProps = {
removeNode?: (id: string) => void;
diff --git a/src/pages/Questions/Select.tsx b/src/pages/Questions/Select.tsx
index 5aa40377..1d1f4d39 100644
--- a/src/pages/Questions/Select.tsx
+++ b/src/pages/Questions/Select.tsx
@@ -4,7 +4,7 @@ import {
MenuItem,
FormControl,
Typography,
- useTheme,
+ useTheme, Theme,
} from "@mui/material";
import ArrowDown from "@icons/ArrowDownIcon";
@@ -18,6 +18,9 @@ type SelectProps = {
onChange?: (item: string, num: number) => void;
sx?: SxProps;
placeholder?: string;
+ colorPlaceholder?: string;
+ colorMain?: string;
+ color?: string;
};
export const Select = ({
@@ -27,6 +30,9 @@ export const Select = ({
onChange,
sx,
placeholder = "",
+ colorMain = "#7E2AEA",
+ colorPlaceholder = "#9A9AAF",
+ color
}: SelectProps) => {
const [activeItem, setActiveItem] = useState(
empty ? -1 : activeItemIndex
@@ -63,7 +69,7 @@ export const Select = ({
value ? (
items[Number(value)]
) : (
-
+
{placeholder}
)
@@ -77,7 +83,7 @@ export const Select = ({
height: "48px",
borderRadius: "8px",
"& .MuiOutlinedInput-notchedOutline": {
- border: `1px solid ${theme.palette.brightPurple.main} !important`,
+ border: `1px solid ${colorMain} !important`,
height: "48px",
borderRadius: "10px",
},
@@ -100,21 +106,21 @@ export const Select = ({
gap: "8px",
"& .Mui-selected": {
backgroundColor: theme.palette.background.default,
- color: theme.palette.brightPurple.main,
+ color: colorMain,
},
},
},
}}
inputProps={{
sx: {
- color: theme.palette.brightPurple.main,
+ color: colorMain,
display: "flex",
alignItems: "center",
px: "9px",
gap: "20px",
},
}}
- IconComponent={(props) => }
+ IconComponent={(props) => }
>
{items.map((item, index) => (