Skip to content

Commit

Permalink
fix: Default color for Run and Connect icons (#2448)
Browse files Browse the repository at this point in the history
* fix: Default color for Run and Connect icons
- Default color always has high contrast ration with primary color
  • Loading branch information
bk201- authored Nov 25, 2024
1 parent 2dc9ba6 commit 65f82aa
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/webviews/QueryEditor/QueryPanel/QueryToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ import {
import { useQueryEditorDispatcher, useQueryEditorState } from '../state/QueryEditorContext';

const useClasses = makeStyles({
iconPlay: {
color: tokens.colorStatusSuccessBorderActive,
},
iconStop: {
color: tokens.colorStatusDangerBorderActive,
},
iconConnect: {
color: tokens.colorStatusSuccessBorderActive,
},
iconDisconnect: {
color: tokens.colorStatusDangerBorderActive,
},
Expand Down Expand Up @@ -72,7 +66,7 @@ const BaseActionsSection = () => {
{(triggerProps: MenuButtonProps) => (
<SplitButton
aria-label="Run"
icon={<PlayRegular className={classes.iconPlay} />}
icon={<PlayRegular />}
disabled={state.isExecuting || !state.isConnected}
appearance={'primary'}
menuButton={triggerProps}
Expand Down Expand Up @@ -185,14 +179,13 @@ const ConnectedActionsSection = () => {
};

const DisconnectedActionsSection = () => {
const classes = useClasses();
const dispatcher = useQueryEditorDispatcher();

return (
<ToolbarButton
aria-label="Connect"
appearance={'primary'}
icon={<DatabasePlugConnectedRegular className={classes.iconConnect} />}
icon={<DatabasePlugConnectedRegular />}
onClick={() => void dispatcher.connectToDatabase()}
>
Connect
Expand Down

0 comments on commit 65f82aa

Please sign in to comment.