[MM-26016] Hide tray icon theme colour when tray icon not enabled (#2051)
This commit is contained in:
@@ -712,49 +712,51 @@ export default class SettingsPage extends React.PureComponent<Record<string, nev
|
|||||||
</FormCheck>);
|
</FormCheck>);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.process.platform === 'linux' || window.process.platform === 'win32') {
|
if (this.state.showTrayIcon) {
|
||||||
options.push(
|
if (window.process.platform === 'linux' || window.process.platform === 'win32') {
|
||||||
<FormGroup
|
options.push(
|
||||||
key='trayIconTheme'
|
<FormGroup
|
||||||
ref={this.trayIconThemeRef}
|
key='trayIconTheme'
|
||||||
style={{marginLeft: '20px'}}
|
ref={this.trayIconThemeRef}
|
||||||
>
|
style={{marginLeft: '20px'}}
|
||||||
{'Icon theme: '}
|
>
|
||||||
{window.process.platform === 'win32' &&
|
{'Icon theme: '}
|
||||||
<>
|
{window.process.platform === 'win32' &&
|
||||||
<FormCheck
|
<>
|
||||||
type='radio'
|
<FormCheck
|
||||||
inline={true}
|
type='radio'
|
||||||
name='trayIconTheme'
|
inline={true}
|
||||||
value='use_system'
|
name='trayIconTheme'
|
||||||
defaultChecked={this.state.trayIconTheme === 'use_system' || !this.state.trayIconTheme}
|
value='use_system'
|
||||||
onChange={() => this.handleChangeTrayIconTheme('use_system')}
|
defaultChecked={this.state.trayIconTheme === 'use_system' || !this.state.trayIconTheme}
|
||||||
label={'Use system default'}
|
onChange={() => this.handleChangeTrayIconTheme('use_system')}
|
||||||
/>
|
label={'Use system default'}
|
||||||
{' '}
|
/>
|
||||||
</>
|
{' '}
|
||||||
}
|
</>
|
||||||
<FormCheck
|
}
|
||||||
type='radio'
|
<FormCheck
|
||||||
inline={true}
|
type='radio'
|
||||||
name='trayIconTheme'
|
inline={true}
|
||||||
value='light'
|
name='trayIconTheme'
|
||||||
defaultChecked={this.state.trayIconTheme === 'light' || !this.state.trayIconTheme}
|
value='light'
|
||||||
onChange={() => this.handleChangeTrayIconTheme('light')}
|
defaultChecked={this.state.trayIconTheme === 'light' || !this.state.trayIconTheme}
|
||||||
label={'Light'}
|
onChange={() => this.handleChangeTrayIconTheme('light')}
|
||||||
/>
|
label={'Light'}
|
||||||
{' '}
|
/>
|
||||||
<FormCheck
|
{' '}
|
||||||
type='radio'
|
<FormCheck
|
||||||
inline={true}
|
type='radio'
|
||||||
name='trayIconTheme'
|
inline={true}
|
||||||
value='dark'
|
name='trayIconTheme'
|
||||||
defaultChecked={this.state.trayIconTheme === 'dark'}
|
value='dark'
|
||||||
onChange={() => this.handleChangeTrayIconTheme('dark')}
|
defaultChecked={this.state.trayIconTheme === 'dark'}
|
||||||
label={'Dark'}
|
onChange={() => this.handleChangeTrayIconTheme('dark')}
|
||||||
/>
|
label={'Dark'}
|
||||||
</FormGroup>,
|
/>
|
||||||
);
|
</FormGroup>,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.process.platform === 'linux' || window.process.platform === 'win32') {
|
if (window.process.platform === 'linux' || window.process.platform === 'win32') {
|
||||||
|
Reference in New Issue
Block a user