mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
wip darkmode
This commit is contained in:
@@ -50,6 +50,9 @@ export function CreditNoteFormFooterRight() {
|
||||
}
|
||||
|
||||
const CreditNoteTotalLines = styled(TotalLines)`
|
||||
--x-color-text: #555555;
|
||||
--x-color-text: var(--color-light-gray4);
|
||||
|
||||
width: 100%;
|
||||
color: #555555;
|
||||
color: var(--x-color-text);
|
||||
`;
|
||||
|
||||
@@ -4,19 +4,30 @@ import intl from 'react-intl-universal';
|
||||
import CreditNoteFormHeaderFields from './CreditNoteFormHeaderFields';
|
||||
import { Group, PageFormBigNumber } from '@/components';
|
||||
import { useCreditNoteTotalFormatted } from './utils';
|
||||
import { useIsDarkMode } from '@/hooks/useDarkMode';
|
||||
|
||||
/**
|
||||
* Credit note header.
|
||||
*/
|
||||
function CreditNoteFormHeader() {
|
||||
const isDarkMode = useIsDarkMode();
|
||||
|
||||
return (
|
||||
<Group
|
||||
position="apart"
|
||||
align={'flex-start'}
|
||||
display="flex"
|
||||
bg="white"
|
||||
p="25px 32px"
|
||||
borderBottom="1px solid #d2dce2"
|
||||
bg="var(--x-credit-note-form-header-background)"
|
||||
borderBottom="1px solid var(--x-credit-note-form-header-border)"
|
||||
style={{
|
||||
'--x-credit-note-form-header-background': isDarkMode
|
||||
? 'var(--color-dark-gray1)'
|
||||
: 'var(--color-white)',
|
||||
'--x-credit-note-form-header-border': isDarkMode
|
||||
? 'rgba(255, 255, 255, 0.1)'
|
||||
: '#d2dce2',
|
||||
}}
|
||||
>
|
||||
<CreditNoteFormHeaderFields />
|
||||
<CreditNoteFormBigNumber />
|
||||
|
||||
Reference in New Issue
Block a user