diff --git a/web/pgadmin/misc/workspaces/static/js/WorkspaceToolbar.jsx b/web/pgadmin/misc/workspaces/static/js/WorkspaceToolbar.jsx index 6626f1ce1..ac63c0783 100644 --- a/web/pgadmin/misc/workspaces/static/js/WorkspaceToolbar.jsx +++ b/web/pgadmin/misc/workspaces/static/js/WorkspaceToolbar.jsx @@ -20,6 +20,7 @@ import { styled } from '@mui/material/styles'; import { WORKSPACES } from '../../../../browser/static/js/constants'; import { useWorkspace } from './WorkspaceProvider'; import { LAYOUT_EVENTS } from '../../../../static/js/helpers/Layout'; +import gettext from 'sources/gettext'; const StyledWorkspaceButton = styled(PgIconButton)(({theme}) => ({ '&.Buttons-iconButtonDefault': { @@ -28,10 +29,16 @@ const StyledWorkspaceButton = styled(PgIconButton)(({theme}) => ({ borderRadius: 0, padding: '8px 6px', height: '40px', + backgroundColor: theme.palette.background.default, + '&:hover': { + borderColor: 'transparent', + }, '&.active': { - borderRightColor: theme.otherVars.activeBorder, + backgroundColor: theme.otherVars.tree.bgSelected, + borderRightColor: theme.palette.primary.main, }, '&.Mui-disabled': { + backgroundColor: theme.palette.background.default, borderRightColor: 'transparent', } }, @@ -87,6 +94,14 @@ WorkspaceButton.propTypes = { value: PropTypes.string }; +const Root = styled('div')(({theme}) => ({ + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + ...theme.mixins.panelBorder.top, + ...theme.mixins.panelBorder.right, +})); + export default function WorkspaceToolbar() { const [menus, setMenus] = useState({ 'settings': undefined, @@ -107,15 +122,15 @@ export default function WorkspaceToolbar() { }, []); return ( - - } value={WORKSPACES.DEFAULT} /> - } value={WORKSPACES.QUERY_TOOL} /> - } value={WORKSPACES.PSQL_TOOL} /> - } value={WORKSPACES.SCHEMA_DIFF_TOOL} /> + + } value={WORKSPACES.DEFAULT} title={gettext('Default Workspace')} tooltipPlacement="right" /> + } value={WORKSPACES.QUERY_TOOL} title={gettext('Query Tool Workspace')} tooltipPlacement="right" /> + } value={WORKSPACES.PSQL_TOOL} title={gettext('PSQL Tool Workspace')} tooltipPlacement="right" /> + } value={WORKSPACES.SCHEMA_DIFF_TOOL} title={gettext('Schema Diff Workspace')} tooltipPlacement="right" /> - } menuItem={menus['settings']} /> + } menuItem={menus['settings']} title={gettext('Preferences')} tooltipPlacement="right" /> - + ); } diff --git a/web/pgadmin/static/img/fonticon/compare.svg b/web/pgadmin/static/img/fonticon/compare.svg index 1366f50a5..03aa66d62 100644 --- a/web/pgadmin/static/img/fonticon/compare.svg +++ b/web/pgadmin/static/img/fonticon/compare.svg @@ -3,7 +3,7 @@