summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/WireguardKeysStyles.tsx
blob: 7176f560af58f15f972e2653ea5b85db3b349990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { Styles } from 'reactxp';
import styled from 'styled-components';
import { colors } from '../../config.json';
import { NavigationScrollbars } from './NavigationBar';

export const StyledNavigationScrollbars = styled(NavigationScrollbars)({
  flex: 1,
});

export default {
  wgkeys: Styles.createViewStyle({
    backgroundColor: colors.darkBlue,
    flex: 1,
  }),
  wgkeys__container: Styles.createViewStyle({
    flexDirection: 'column',
    flex: 1,
  }),
  wgkeys__content: Styles.createViewStyle({
    // ReactXP don't allow setting 'minHeight' and don't allow percentages. This will work well
    // without the '@ts-ignore' when moving away from ReactXP.
    // @ts-ignore
    minHeight: '100%',
  }),
  wgkeys__messages: Styles.createViewStyle({
    flex: 1,
  }),
  wgkeys__row: Styles.createViewStyle({
    paddingVertical: 0,
    paddingHorizontal: 22,
    marginBottom: 20,
  }),
  wgkeys__button_row: Styles.createViewStyle({
    paddingHorizontal: 22,
    marginBottom: 18,
  }),
  wgkeys__last_button: Styles.createViewStyle({
    marginBottom: 22,
  }),
  wgkeys__row_label: Styles.createTextStyle({
    flex: 1,
    fontFamily: 'Open Sans',
    fontSize: 13,
    fontWeight: '600',
    lineHeight: 20,
    color: colors.white60,
    marginBottom: 9,
  }),
  wgkeys__row_value: Styles.createTextStyle({
    fontFamily: 'Open Sans',
    fontSize: 16,
    lineHeight: 19,
    fontWeight: '800',
    color: colors.white,
  }),
  wgkeys__invalid_key: Styles.createTextStyle({
    fontFamily: 'Open Sans',
    fontSize: 13,
    fontWeight: '800',
    lineHeight: 20,
    color: colors.red,
  }),
  wgkeys__valid_key: Styles.createTextStyle({
    fontFamily: 'Open Sans',
    fontSize: 13,
    fontWeight: '600',
    lineHeight: 20,
    color: colors.green,
  }),
};