Skip to content

Commit d3da10c

Browse files
committed
Tweak styles a little more, especially highlighted View row
1 parent 7dbbca6 commit d3da10c

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

src/components/send/send-tabs.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const TabsContainer = styled.div.attrs(() => ({
1818
height: ${TAB_BAR_HEIGHT};
1919
box-sizing: border-box;
2020
21+
color: ${p => p.theme.mainColor};
2122
background-color: ${p => p.theme.mainLowlightBackground};
2223
2324
font-size: ${p => p.theme.textSize};

src/components/view/view-event-list.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { action, computed } from 'mobx';
66
import AutoSizer from 'react-virtualized-auto-sizer';
77
import { FixedSizeList as List, ListChildComponentProps } from 'react-window';
88

9-
import { css, highContrastTheme, styled } from '../../styles'
9+
import { styled } from '../../styles'
1010
import { ArrowIcon, Icon, WarningIcon, Icons } from '../../icons';
1111

1212
import {
@@ -233,15 +233,12 @@ const EventListRow = styled.div<{ role: 'row' }>`
233233
234234
&.selected {
235235
background-color: ${p => p.theme.highlightBackground};
236-
color: ${p => p.theme.highlightColor};
237236
font-weight: bold;
238237
239-
${(p): any => p.theme === highContrastTheme &&
240-
css`
241-
${StatusCode} {
242-
color: ${p => p.theme.highlightColor};
243-
}
244-
`
238+
color: ${p => p.theme.highlightColor};
239+
* {
240+
/* Override status etc colours to ensure contrast & give row max visibility */
241+
color: ${p => p.theme.highlightColor};
245242
}
246243
}
247244

src/styles.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export const lightTheme = {
5555
mainLowlightBackground: greyWhite,
5656
mainColor: inkGrey,
5757

58+
highlightBackground: white,
59+
highlightColor: inkGrey,
60+
5861
lowlightTextOpacity: 0.65,
5962
boxShadowAlpha: 0.3,
6063

@@ -69,14 +72,11 @@ export const lightTheme = {
6972

7073
inputBackground: white,
7174
inputHoverBackground: greyWhite,
72-
inputBorder: darkGrey,
75+
inputBorder: darkishGrey,
7376
inputColor: inkGrey,
7477
inputPlaceholderColor: darkishGrey,
7578
inputWarningPlaceholder: '#8c5c1d', // Mix of warning + inkGrey
7679

77-
highlightBackground: white,
78-
highlightColor: inkGrey,
79-
8080
popColor,
8181

8282
warningColor,
@@ -110,7 +110,10 @@ export const darkTheme = {
110110
mainLowlightBackground: darkerGrey,
111111
mainColor: white,
112112

113-
lowlightTextOpacity: 0.6,
113+
highlightBackground: darkishGrey,
114+
highlightColor: white,
115+
116+
lowlightTextOpacity: 0.65,
114117
boxShadowAlpha: 0.4,
115118

116119
pillContrast: 0.85,
@@ -129,9 +132,6 @@ export const darkTheme = {
129132
inputPlaceholderColor: mediumGrey,
130133
inputWarningPlaceholder: '#e8b978', // Mix of warning + white
131134

132-
highlightBackground: darkishGrey,
133-
highlightColor: white,
134-
135135
popColor,
136136

137137
warningColor,
@@ -186,6 +186,9 @@ export const highContrastTheme = {
186186
mainLowlightBackground: '#262626',
187187
mainColor: '#ffffff',
188188

189+
highlightBackground: '#ffffff',
190+
highlightColor: '#000',
191+
189192
lowlightTextOpacity: 0.8,
190193
boxShadowAlpha: 0.1,
191194

@@ -205,9 +208,6 @@ export const highContrastTheme = {
205208
inputPlaceholderColor: '#444',
206209
inputWarningPlaceholder: '#e1b374', // Mix of warning + white
207210

208-
highlightBackground: '#ffffff',
209-
highlightColor: '#000',
210-
211211
popColor,
212212

213213
warningColor,

0 commit comments

Comments
 (0)