diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-04-25 14:32:58 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-04-26 12:27:46 +0200 |
| commit | f3020e7bca6cfda7b70bea5f7d3e76271a075a61 (patch) | |
| tree | 44edf1e0175736b9d94e7221bbf882505fbc2711 /gui/src/renderer/components | |
| parent | 6f4ee7faebaf3999f06c8b0e86c63f4b836ba074 (diff) | |
| download | mullvadvpn-f3020e7bca6cfda7b70bea5f7d3e76271a075a61.tar.xz mullvadvpn-f3020e7bca6cfda7b70bea5f7d3e76271a075a61.zip | |
Update the close button icon on Linux
Diffstat (limited to 'gui/src/renderer/components')
| -rw-r--r-- | gui/src/renderer/components/NavigationBar.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/src/renderer/components/NavigationBar.tsx b/gui/src/renderer/components/NavigationBar.tsx index 82a8ed3dbd..f5d8fa82f4 100644 --- a/gui/src/renderer/components/NavigationBar.tsx +++ b/gui/src/renderer/components/NavigationBar.tsx @@ -447,9 +447,13 @@ interface ICloseBarItemProps { export class CloseBarItem extends Component<ICloseBarItemProps> { public render() { + // Use the arrow down icon on Linux, to avoid confusion with the close button in the window + // title bar. + const iconName = process.platform === 'linux' ? 'icon-close-down' : 'icon-close'; + return ( <Button style={[styles.closeBarItem.default]} onPress={this.props.action}> - <ImageView height={24} width={24} style={[styles.closeBarItem.icon]} source="icon-close" /> + <ImageView height={24} width={24} style={[styles.closeBarItem.icon]} source={iconName} /> </Button> ); } |
