Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Sep 14, 2023
1 parent eb3af51 commit 081da72
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 25 deletions.
10 changes: 5 additions & 5 deletions packages/desktop-client/src/components/NotesButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ const markdownStyles = css({
},
'& blockquote': {
paddingLeft: '0.75rem',
borderLeft: '3px solid ' + theme.formInputBorderSelected,
borderLeft: '3px solid ' + theme.markdownDark,
margin: 0,
},
'& hr': {
borderTop: 'none',
borderLeft: 'none',
borderRight: 'none',
borderBottom: '1px solid ' + theme.menuBorderHover,
borderBottom: '1px solid ' + theme.markdownNormal,
},
'& code': {
backgroundColor: theme.menuBorderHover,
backgroundColor: theme.markdownLight,
padding: '0.1rem 0.5rem',
borderRadius: '0.25rem',
},
'& pre': {
padding: '0.5rem',
backgroundColor: theme.menuBorderHover,
backgroundColor: theme.markdownLight,
borderRadius: '0.5rem',
margin: 0,
':not(:first-child)': {
Expand All @@ -72,7 +72,7 @@ const markdownStyles = css({
},
},
'& table, & th, & td': {
border: '1px solid ' + theme.menuBorderHover,
border: '1px solid ' + theme.markdownNormal,
},
'& table': {
borderCollapse: 'collapse',
Expand Down
24 changes: 12 additions & 12 deletions packages/desktop-client/src/components/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ function Notification({
style={{
marginTop: 10,
color: positive
? theme.noticeText
? theme.alt4NoticeText
: error
? theme.errorText
: theme.warningText,
? theme.alt3ErrorText
: theme.alt4WarningText,
}}
>
<Stack
Expand All @@ -121,16 +121,16 @@ function Notification({
padding: '14px 14px',
fontSize: 14,
backgroundColor: positive
? theme.noticeBackground
? theme.alt2NoticeBackground
: error
? theme.errorBackground
: theme.warningBackground,
: theme.alt2WarningBackground,
borderTop: `3px solid ${
positive
? theme.noticeAccent
? theme.altNoticeAccent
: error
? theme.errorAccent
: theme.warningAccent
? theme.altErrorAccent
: theme.altWarningAccent
}`,
...styles.shadowLarge,
maxWidth: 550,
Expand Down Expand Up @@ -173,17 +173,17 @@ function Notification({
backgroundColor: 'transparent',
border: `1px solid ${
positive
? theme.noticeAccent
? theme.altNoticeAccent
: error
? theme.errorAccent
: theme.warningAccent
? theme.altErrorAccent
: theme.altWarningAccent
}`,
color: 'currentColor',
fontSize: 14,
flexShrink: 0,
'&:hover, &:active': {
backgroundColor: positive
? theme.altNoticeBackground
? theme.noticeBackground
: error
? theme.altErrorBackground
: theme.altWarningBackground,
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/Titlebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function SyncButton({ style, isMobile = false }: SyncButtonProps) {

const mobileColor =
syncState === 'error'
? theme.alt2ErrorText
? theme.alt4ErrorText
: syncState === 'disabled' ||
syncState === 'offline' ||
syncState === 'local'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function UpdateNotification() {
bottom: 0,
right: 0,
margin: '15px 17px',
backgroundColor: theme.pageTextPositive,
backgroundColor: theme.altPageTextPositive,
color: theme.tableBackground,
padding: '7px 10px',
borderRadius: 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ function Saved({ projected }) {
...styles.smallText,
fontWeight: '500',
color: projected
? theme.warningText
? theme.alt2WarningText
: isNegative
? theme.errorText
? theme.alt2ErrorText
: theme.formInputText,
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function Status({ status }) {

switch (status) {
case 'missed':
color = theme.alt2ErrorText;
color = theme.alt3ErrorText;
break;
case 'due':
color = theme.alt2WarningText;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ function StatusCell({
status === 'cleared'
? theme.noticeText
: status === 'missed'
? theme.errorText
? theme.alt5ErrorText
: status === 'due'
? theme.alt3WarningText
: selected
Expand Down Expand Up @@ -1043,9 +1043,9 @@ const Transaction = memo(function Transaction(props) {
style={{
color:
notes === 'missed'
? theme.errorText
? theme.alt5ErrorText
: notes === 'due'
? theme.alt3WarningText
? theme.alt5WarningText
: selected
? theme.formLabelText
: theme.altTableText,
Expand Down
15 changes: 15 additions & 0 deletions packages/desktop-client/src/style/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const pageTextSubdued = colorPalette.navy300;
export const altpageTextSubdued = colorPalette.navy500;
export const pageTextDark = colorPalette.navy800;
export const pageTextPositive = colorPalette.purple600;
export const altPageTextPositive = colorPalette.purple400;
export const pageTextLink = colorPalette.blue600;
export const altPageTextLink = colorPalette.blue300;

Expand Down Expand Up @@ -104,6 +105,10 @@ export const mobileConfigServerViewTheme = colorPalette.purple500;
export const mobileSettingsViewTheme = colorPalette.navy50;
export const mobileTransactionViewTheme = colorPalette.purple500;

export const markdownNormal = colorPalette.purple150;
export const markdownDark = colorPalette.purple400;
export const markdownLight = colorPalette.purple100;

// Button
export const buttonMenuText = colorPalette.navy100;
export const buttonMenuTextHover = colorPalette.navy50;
Expand Down Expand Up @@ -158,20 +163,30 @@ export const noticeText = colorPalette.green500;
export const altNoticeText = colorPalette.green900;
export const alt2NoticeText = colorPalette.green800;
export const alt3NoticeText = colorPalette.green600;
export const alt4NoticeText = colorPalette.green700;
export const noticeAccent = colorPalette.green200;
export const altNoticeAccent = colorPalette.green500;
export const warningBackground = colorPalette.orange200;
export const altWarningBackground = colorPalette.orange150;
export const alt2WarningBackground = colorPalette.orange100;
export const warningText = colorPalette.orange800;
export const altWarningText = colorPalette.orange900;
export const alt2WarningText = colorPalette.orange700;
export const alt3WarningText = colorPalette.orange500;
export const alt4WarningText = colorPalette.orange800;
export const alt5WarningText = colorPalette.orange600;
export const warningAccent = colorPalette.orange400;
export const altWarningAccent = colorPalette.orange600;
export const errorBackground = colorPalette.red50;
export const altErrorBackground = colorPalette.red100;
export const errorText = colorPalette.red500;
export const altErrorText = colorPalette.red900;
export const alt2ErrorText = colorPalette.red600;
export const alt3ErrorText = colorPalette.red700;
export const alt4ErrorText = colorPalette.red300;
export const alt5ErrorText = colorPalette.red400;
export const errorAccent = colorPalette.red200;
export const altErrorAccent = colorPalette.red500;
export const upcomingBackground = colorPalette.purple100;
export const upcomingText = colorPalette.purple900;
export const altUpcomingText = colorPalette.purple500;
Expand Down

0 comments on commit 081da72

Please sign in to comment.