2021-06-29 04:03:36 -05:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2022-01-04 02:24:25 -06:00
|
|
|
// Copyright (C) 2013 - 2022, The pgAdmin Development Team
|
2021-06-29 04:03:36 -05:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/* The standard theme */
|
|
|
|
import { createMuiTheme } from '@material-ui/core/styles';
|
|
|
|
import { fade, darken } from '@material-ui/core/styles/colorManipulator';
|
|
|
|
|
|
|
|
export default function(basicSettings) {
|
|
|
|
return createMuiTheme(basicSettings, {
|
|
|
|
palette: {
|
|
|
|
default: {
|
|
|
|
main: '#fff',
|
|
|
|
contrastText: '#222',
|
|
|
|
borderColor: '#bac1cd',
|
|
|
|
disabledBorderColor: '#bac1cd',
|
|
|
|
disabledContrastText: '#222',
|
|
|
|
hoverMain: '#ebeef3',
|
|
|
|
hoverContrastText: '#222',
|
|
|
|
hoverBorderColor: '#bac1cd',
|
|
|
|
},
|
|
|
|
primary: {
|
|
|
|
main: '#326690',
|
|
|
|
light: '#d6effc',
|
|
|
|
contrastText: '#fff',
|
|
|
|
hoverMain: darken('#326690', 0.25),
|
|
|
|
hoverBorderColor: darken('#326690', 0.25),
|
|
|
|
disabledMain: '#326690',
|
|
|
|
},
|
|
|
|
success: {
|
|
|
|
main: '#26852B',
|
|
|
|
light: '#D9ECDA',
|
|
|
|
contrastText: '#000',
|
|
|
|
},
|
|
|
|
error: {
|
|
|
|
main: '#CC0000',
|
|
|
|
light: '#FAECEC',
|
|
|
|
contrastText: '#fff',
|
|
|
|
},
|
|
|
|
warning: {
|
|
|
|
main: '#eea236',
|
|
|
|
light: '#fce5c5',
|
|
|
|
contrastText: '#000',
|
|
|
|
},
|
|
|
|
info: {
|
|
|
|
main: '#fde74c',
|
|
|
|
},
|
|
|
|
grey: {
|
|
|
|
'200': '#f3f5f9',
|
|
|
|
'400': '#ebeef3',
|
|
|
|
'600': '#bac1cd',
|
|
|
|
'800': '#848ea0',
|
|
|
|
},
|
|
|
|
text: {
|
|
|
|
primary: '#222',
|
2021-09-22 07:48:09 -05:00
|
|
|
muted: '#646B82',
|
2021-06-29 04:03:36 -05:00
|
|
|
},
|
2021-10-05 04:08:00 -05:00
|
|
|
checkbox: {
|
|
|
|
disabled: '#ebeef3'
|
|
|
|
},
|
2021-06-29 04:03:36 -05:00
|
|
|
background: {
|
|
|
|
paper: '#fff',
|
|
|
|
default: '#fff',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
custom: {
|
|
|
|
icon: {
|
|
|
|
main: '#fff',
|
|
|
|
contrastText: '#222',
|
|
|
|
borderColor: '#bac1cd',
|
|
|
|
disabledMain: '#fff',
|
|
|
|
disabledContrastText: '#222',
|
|
|
|
disabledBorderColor: '#bac1cd',
|
|
|
|
hoverMain: '#ebeef3',
|
|
|
|
hoverContrastText: '#222',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
otherVars: {
|
|
|
|
reactSelect: {
|
|
|
|
padding: '5px 8px',
|
|
|
|
},
|
|
|
|
borderColor: '#dde0e6',
|
|
|
|
loader: {
|
|
|
|
backgroundColor: fade('#000', 0.65),
|
|
|
|
color: '#fff',
|
|
|
|
},
|
|
|
|
inputBorderColor: '#dde0e6',
|
|
|
|
inputDisabledBg: '#f3f5f9',
|
|
|
|
headerBg: '#fff',
|
2022-02-10 23:06:24 -06:00
|
|
|
activeBorder: '#326690',
|
2021-06-29 04:03:36 -05:00
|
|
|
activeColor: '#326690',
|
|
|
|
tableBg: '#fff',
|
2021-10-04 07:30:09 -05:00
|
|
|
activeStepBg: '#326690',
|
|
|
|
activeStepFg: '#FFFFFF',
|
|
|
|
stepBg: '#ddd',
|
|
|
|
stepFg: '#000',
|
2022-02-10 23:06:24 -06:00
|
|
|
toggleBtnBg: '#000',
|
|
|
|
editorToolbarBg: '#ebeef3',
|
2022-04-07 07:06:56 -05:00
|
|
|
qtDatagridBg: '#fff',
|
|
|
|
qtDatagridSelectFg: '#222',
|
|
|
|
cardHeaderBg: '#fff',
|
2022-04-04 08:33:50 -05:00
|
|
|
emptySpaceBg: '#ebeef3',
|
2022-08-30 06:38:12 -05:00
|
|
|
textMuted: '#646B82',
|
2022-09-06 07:39:13 -05:00
|
|
|
erdCanvasBg: '#fff',
|
|
|
|
erdGridColor: '#bac1cd',
|
2022-04-18 02:20:51 -05:00
|
|
|
explain: {
|
|
|
|
sev2: {
|
|
|
|
color: '#222222',
|
|
|
|
bg: '#FFEE88',
|
|
|
|
},
|
|
|
|
sev3: {
|
|
|
|
color: '#FFFFFF',
|
|
|
|
bg: '#EE8800'
|
|
|
|
},
|
|
|
|
sev4: {
|
|
|
|
color: '#FFFFFF',
|
|
|
|
bg: '#880000'
|
|
|
|
},
|
2022-09-07 08:50:03 -05:00
|
|
|
},
|
|
|
|
schemaDiff: {
|
|
|
|
diffRowColor: '#fff9c4',
|
|
|
|
sourceRowColor: '#ffebee',
|
|
|
|
targetRowColor: '#fbe3bf',
|
|
|
|
diffColorFg: '#222',
|
|
|
|
diffSelectFG: '#222'
|
2022-04-18 02:20:51 -05:00
|
|
|
}
|
2021-06-29 04:03:36 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|