Skip to content

Commit

Permalink
autocomplete menu
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Dec 9, 2023
1 parent 8c6faf8 commit 32537dc
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 29 deletions.
4 changes: 2 additions & 2 deletions packages/desktop-client/src/components/filters/FiltersMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ export function FilterButton({ onApply, compact, hover }) {
style={{
lineHeight: 1.5,
padding: '6px 10px',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
}}
>
<Text>Filters</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const GraphButton = ({
style={{
lineHeight: 1.5,
padding: '6px 10px',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
}}
>
<Text>{title}</Text>
Expand Down
8 changes: 3 additions & 5 deletions packages/desktop-client/src/components/reports/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ class Tooltip extends Component {
borderRadius: 2,
boxShadow: light ? 'none' : '0 1px 6px rgba(0, 0, 0, .20)',
// TODO: Transparent background
backgroundColor: light
? 'transparent'
: theme.menuAutoCompleteBackground,
color: light ? 'inherit' : theme.menuAutoCompleteText,
backgroundColor: light ? 'transparent' : theme.menuBackground,
color: light ? 'inherit' : theme.menuItemText,
padding: 10,
},
!light &&
Expand All @@ -71,7 +69,7 @@ class Tooltip extends Component {
borderTop: '7px solid transparent',
borderBottom: '7px solid transparent',
[position === 'right' ? 'borderRight' : 'borderLeft']:
'7px solid ' + theme.menuAutoCompleteBackground,
'7px solid ' + theme.menuBackground,
[position === 'right' ? 'left' : 'right']: -6,
top: 'calc(50% - 7px)',
// eslint-disable-next-line rulesdir/typography
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const CustomTooltip = ({
pointerEvents: 'none',
borderRadius: 2,
boxShadow: '0 1px 6px rgba(0, 0, 0, .20)',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
padding: 10,
})}`}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ const CustomTooltip = ({
pointerEvents: 'none',
borderRadius: 2,
boxShadow: '0 1px 6px rgba(0, 0, 0, .20)',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
padding: 10,
})}`}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const CustomTooltip = ({ active, payload, label }: CustomTooltipProps) => {
pointerEvents: 'none',
borderRadius: 2,
boxShadow: '0 1px 6px rgba(0, 0, 0, .20)',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
padding: 10,
})}`}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const CustomTooltip = ({ active, payload, label }: CustomTooltipProps) => {
pointerEvents: 'none',
borderRadius: 2,
boxShadow: '0 1px 6px rgba(0, 0, 0, .20)',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
padding: 10,
})}`}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const CustomTooltip = ({ active, payload, label }: CustomTooltipProps) => {
pointerEvents: 'none',
borderRadius: 2,
boxShadow: '0 1px 6px rgba(0, 0, 0, .20)',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
padding: 10,
})}`}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function NetWorthGraph({
pointerEvents: 'none',
borderRadius: 2,
boxShadow: '0 1px 6px rgba(0, 0, 0, .20)',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
padding: 10,
},
style,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const CustomTooltip = ({ active, payload, label }: CustomTooltipProps) => {
pointerEvents: 'none',
borderRadius: 2,
boxShadow: '0 1px 6px rgba(0, 0, 0, .20)',
backgroundColor: theme.menuAutoCompleteBackground,
color: theme.menuAutoCompleteText,
backgroundColor: theme.menuBackground,
color: theme.menuItemText,
padding: 10,
})}`}
>
Expand Down
12 changes: 6 additions & 6 deletions packages/desktop-client/src/style/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ export const menuItemTextHeader = colorPalette.purple500;
export const menuBorder = colorPalette.navy800;
export const menuBorderHover = colorPalette.purple400;
export const menuKeybindingText = colorPalette.navy500;
export const menuAutoCompleteBackground = colorPalette.navy400;
export const menuAutoCompleteBackgroundHover = colorPalette.navy300;
export const menuAutoCompleteText = colorPalette.navy900;
export const menuAutoCompleteTextHeader = menuItemTextHeader;
export const menuAutoCompleteBackground = colorPalette.navy900;
export const menuAutoCompleteBackgroundHover = colorPalette.navy600;
export const menuAutoCompleteText = colorPalette.navy200;
export const menuAutoCompleteTextHeader = colorPalette.purple200;

export const modalBackground = colorPalette.gray800;
export const modalBorder = colorPalette.navy600;
Expand All @@ -85,7 +85,7 @@ export const markdownDark = colorPalette.purple500;
export const markdownLight = colorPalette.purple800;

// Button
export const buttonMenuText = colorPalette.navy900;
export const buttonMenuText = colorPalette.navy200;
export const buttonMenuTextHover = buttonMenuText;
export const buttonMenuBackground = 'transparent';
export const buttonMenuBackgroundHover = 'rgba(200, 200, 200, .25)';
Expand Down Expand Up @@ -138,7 +138,7 @@ export const noticeBackgroundDark = colorPalette.green500;
export const noticeText = colorPalette.green300;
export const noticeTextLight = colorPalette.green500;
export const noticeTextDark = colorPalette.green150;
export const noticeTextMenu = colorPalette.green800;
export const noticeTextMenu = colorPalette.green500;
export const noticeBorder = colorPalette.green800;
export const warningBackground = colorPalette.orange800;
export const warningText = colorPalette.orange300;
Expand Down

0 comments on commit 32537dc

Please sign in to comment.