Reduce window size

This commit is contained in:
Scott E. Graves
2019-06-04 16:53:33 -05:00
parent 7aa17de4be
commit a5e21c8dfc
4 changed files with 5 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ function createWindow() {
} }
// Create the browser window. // Create the browser window.
const height = (process.env.ELECTRON_START_URL || (os.platform() === 'darwin') ? 364 : 344) - ((os.platform() === 'win32') ? 0 : 20); const height = (process.env.ELECTRON_START_URL || (os.platform() === 'darwin') ? 294 : 274) - ((os.platform() === 'win32') ? 0 : 20);
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
width: 428 + ((os.platform() === 'win32') ? 0 : (os.platform() === 'darwin') ? 150 : 160), width: 428 + ((os.platform() === 'win32') ? 0 : (os.platform() === 'darwin') ? 150 : 160),
height: height, height: height,

View File

@@ -670,7 +670,7 @@ class App extends IPCContainer {
let key = 0; let key = 0;
mainContent.push(( mainContent.push((
<div key={'rvd_' + key++} <div key={'rvd_' + key++}
style={{height: '25%'}}> style={{height: '32%'}}>
<ReleaseVersionDisplay disabled={this.state.DownloadActive || this.state.ExtractActive || this.state.MountsBusy} <ReleaseVersionDisplay disabled={this.state.DownloadActive || this.state.ExtractActive || this.state.MountsBusy}
downloadClicked={this.handleReleaseDownload} downloadClicked={this.handleReleaseDownload}
downloadDisabled={!downloadEnabled} downloadDisabled={!downloadEnabled}

View File

@@ -15,7 +15,7 @@
--heading_other_text_color: var(--heading_text_color); --heading_other_text_color: var(--heading_text_color);
--text_color_transition: color 0.3s; --text_color_transition: color 0.3s;
--default_font_size: 4vmin --default_font_size: 14px
} }
* { * {

View File

@@ -12,8 +12,8 @@ if (!process.versions.hasOwnProperty('electron')) {
if (ipcRenderer) { if (ipcRenderer) {
ipcRenderer.on(Constants.IPC_Get_Platform_Reply, (event, arg) => { ipcRenderer.on(Constants.IPC_Get_Platform_Reply, (event, arg) => {
if (arg.OSPlatform === 'linux') { if (arg.OSPlatform === 'linux') {
let root = document.documentElement; const root = document.documentElement;
root.style.setProperty('--default_font_size', '4.8vmin'); root.style.setProperty('--default_font_size', '15px');
} }
ReactDOM.render(<App platform={arg.Platform} version={packageJson.version}/>, document.getElementById('root')); ReactDOM.render(<App platform={arg.Platform} version={packageJson.version}/>, document.getElementById('root'));