Skip to content

Commit 8544e36

Browse files
committed
Fix Switch
Fix colors
1 parent eee1b35 commit 8544e36

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

src/chart/single/SingleValueChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import YAML from 'yaml';
1111
const NeoSingleValueChart = (props: ChartProps) => {
1212
const { records } = props;
1313
const fontSize = props.settings && props.settings.fontSize ? props.settings.fontSize : 64;
14-
const color = props.settings && props.settings.color ? props.settings.color : 'rgba(0, 0, 0, 0.87)';
14+
const color = props.settings && props.settings.color ? props.settings.color : 'NO-OP';
1515
const format = props.settings && props.settings.format ? props.settings.format : 'auto';
1616
const textAlign = props.settings && props.settings.textAlign ? props.settings.textAlign : 'left';
1717
const verticalAlign = props.settings && props.settings.verticalAlign ? props.settings.verticalAlign : 'top';

src/dashboard/header/DashboardHeader.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { NeoDashboardHeaderDownloadImageButton } from './DashboardHeaderDownload
1212
import { updateDashboardSetting } from '../../settings/SettingsActions';
1313
import { DarkModeSwitch } from 'react-toggle-dark-mode';
1414
import { DASHBOARD_HEADER_BUTTON_COLOR } from '../../config/ApplicationConfig';
15+
import { Tooltip } from '@mui/material';
1516

1617
export const NeoDashboardHeader = ({
1718
standalone,
@@ -55,16 +56,17 @@ export const NeoDashboardHeader = ({
5556
</nav>
5657
<div className='sm:n-flex n-items-center n-justify-end md:n-flex-1 lg:n-w-0 n-gap-6'>
5758
<div className='n-flex n-flex-row n-gap-x-2'>
58-
<div className='ndl-icon-btn logo-btn n-p-1 ndl-large ndl-clean'>
59+
<Tooltip title={'Change Theme'} disableInteractive>
5960
<DarkModeSwitch
61+
className={'ndl-icon-btn n-p-2 ndl-large ndl-clean'}
6062
style={{}}
6163
checked={isDarkMode}
6264
onChange={toggleDarkMode}
6365
size={24}
6466
sunColor={DASHBOARD_HEADER_BUTTON_COLOR || '#000000'}
6567
moonColor={'#ff0000'}
6668
/>
67-
</div>
69+
</Tooltip>
6870
{downloadImageEnabled && <NeoDashboardHeaderDownloadImageButton onDownloadImage={onDownloadImage} />}
6971
<NeoAboutButton connection={connection} onAboutModalOpen={onAboutModalOpen} />
7072
<NeoLogoutButton standalone={standalone} onConnectionModalOpen={onConnectionModalOpen} />

src/dashboard/header/DashboardHeaderAboutButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { enterHandler, openTab } from '../../utils/accessibility';
1717

1818
await StyleConfig.getInstance();
1919

20-
export const NeoAboutButton = ({ connection, extensions, onAboutModalOpen }) => {
20+
export const NeoAboutButton = ({ connection, onAboutModalOpen, extensions }) => {
2121
const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null);
2222
const handleHelpMenuOpen = (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => {
2323
setAnchorEl(event.currentTarget);

src/report/Report.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@ export const NeoReport = ({
252252
return <div>Loading...</div>;
253253
}
254254
return (
255-
<div style={{ height: '100%', marginTop: '0px', overflow: reportTypes[type].allowScrolling ? 'auto' : 'hidden' }}>
255+
<div
256+
className={'n-text-palette-primary-bg-strong'}
257+
style={{ height: '100%', marginTop: '0px', overflow: reportTypes[type].allowScrolling ? 'auto' : 'hidden' }}
258+
>
256259
<ChartType
257260
setPageNumber={setPageNumber}
258261
records={records}

0 commit comments

Comments
 (0)