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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
import styled from 'styled-components';
import { colors } from '../../config.json';
import ImageView from './ImageView';
export const StyledNavigationBarSeparator = styled.div({
backgroundColor: 'rgba(0, 0, 0, 0.2)',
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
height: '1px',
});
export const StyledNavigationItems = styled.div({
display: 'flex',
flex: 1,
flexDirection: 'row',
});
export const StyledNavigationBar = styled.nav((props: { unpinnedWindow: boolean }) => ({
flex: 0,
padding: '12px',
paddingTop: window.platform === 'darwin' && !props.unpinnedWindow ? '24px' : '12px',
}));
export const StyledNavigationBarWrapper = styled.div({
display: 'flex',
flex: 1,
flexDirection: 'column',
overflow: 'hidden',
});
export const StyledTitleBarItemContainer = styled.div({
display: 'flex',
flex: 1,
minWidth: 0,
flexDirection: 'column',
justifyContent: 'center',
overflow: 'hidden',
});
interface ITitleBarItemLabelProps {
titleAdjustment: number;
visible?: boolean;
}
export const StyledTitleBarItemLabel = styled.h1({}, (props: ITitleBarItemLabelProps) => ({
fontFamily: 'Open Sans',
fontSize: '16px',
fontWeight: 600,
lineHeight: '22px',
color: colors.white,
padding: '0 5px',
textAlign: 'center',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
marginLeft: props.titleAdjustment + 'px',
opacity: props.visible ? 1 : 0,
transition: 'opacity 250ms ease-in-out',
}));
export const StyledTitleBarItemMeasuringLabel = styled(StyledTitleBarItemLabel)({
position: 'absolute',
opacity: 0,
});
export const StyledCloseBarItemButton = styled.button({
borderWidth: 0,
padding: 0,
margin: 0,
cursor: 'default',
backgroundColor: 'transparent',
});
export const StyledCloseBarItemIcon = styled(ImageView)({
flex: 0,
});
export const StyledBackBarItemButton = styled.button({
position: 'relative',
borderWidth: 0,
padding: 0,
margin: 0,
cursor: 'default',
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
backgroundColor: 'transparent',
});
export const StyledBackBarItemIcon = styled(ImageView)({
marginRight: '8px',
[StyledBackBarItemButton + ':hover &']: {
backgroundColor: colors.white80,
},
});
export const StyledBackBarItemLabel = styled.span({
fontFamily: 'Open Sans',
fontSize: '13px',
fontWeight: 600,
color: colors.white60,
whiteSpace: 'nowrap',
[StyledBackBarItemButton + ':hover &']: {
color: colors.white80,
},
});
|