Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { makeStyles } from '@mui/styles';

const useStyles = makeStyles(theme => ({
header: {
backgroundColor: theme.palette.mode === 'dark' ? 'var(--app-nav-bg)' : theme.palette.background.paper,
backgroundColor: theme.headerNav.backgroundColor,
borderBottom: `1px solid ${theme.palette.divider}`,
padding: '1rem 0'
},
Expand Down Expand Up @@ -64,10 +64,10 @@ const useStyles = makeStyles(theme => ({
margin: 0,
'& a': {
textDecoration: 'none',
color: theme.palette.mode === 'dark' ? 'var(--app-nav-color)' : theme.palette.text.primary,
color: theme.headerNav.navLinkColor,
transition: 'color 0.3s ease',
'&:hover': {
color: theme.palette.mode === 'dark' ? theme.palette.primary.contrastText : theme.palette.primary.main
color: theme.headerNav.navLinkHoverColor
}
},
'@media (max-width: 768px)': {
Expand Down Expand Up @@ -103,7 +103,7 @@ const useStyles = makeStyles(theme => ({
cursor: 'pointer',
zIndex: 1001,
padding: 0,
color: theme.palette.mode === 'dark' ? theme.palette.primary.contrastText : theme.palette.text.primary,
color: theme.headerNav.menuToggleColor,
'@media (max-width: 768px)': {
display: 'block'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ export default function MainScreen(props) {
if (!mashupCaseType) {
const caseTypes = PCore.getEnvironmentInfo()?.environmentInfoObject?.pyCaseTypeList;
if (caseTypes && caseTypes.length > 0) {
//mashupCaseType = caseTypes[0].pyWorkTypeImplementationClassName;
mashupCaseType = 'DIXL-MediaCo-Work-PurchasePhone';
mashupCaseType = caseTypes[6].pyWorkTypeImplementationClassName;
//mashupCaseType = 'DIXL-MediaCo-Work-PurchasePhone';
Comment on lines +167 to +168
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets keep below logic as it is and add the case type in the sdk-config.json file
mashupCaseType = caseTypes[0].pyWorkTypeImplementationClassName;

}
}
let selectedPhoneGUID = '';
Expand Down
18 changes: 18 additions & 0 deletions packages/react-sdk-components/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ declare module '@mui/styles/defaultTheme' {
backgroundColor: string;
topColor: string;
};
headerNav: {
backgroundColor: string;
navLinkColor: string;
navLinkHoverColor: string;
menuToggleColor: string;
};
embedded: {
resolutionTextColor: string;
};
Expand Down Expand Up @@ -145,6 +151,12 @@ const lightTheme = createTheme({
}
}
},
headerNav: {
backgroundColor: '#ffffff',
navLinkColor: 'rgba(0, 0, 0, 0.87)',
navLinkHoverColor: '#3f51b5',
menuToggleColor: 'rgba(0, 0, 0, 0.87)'
},
actionButtons: {
primary: {
backgroundColor: '#cc0f60',
Expand Down Expand Up @@ -212,6 +224,12 @@ const darkTheme = createTheme({
}
}
},
headerNav: {
backgroundColor: 'var(--app-nav-bg)',
navLinkColor: 'var(--app-nav-color)',
navLinkHoverColor: '#ffffff',
menuToggleColor: '#ffffff'
},
actionButtons: {
primary: {
backgroundColor: '#C70BB5',
Expand Down