pull/5283/head
bunsenstraat 2 months ago committed by bunsenstraat
parent 05e025ee22
commit 748da9cd99
  1. 2
      apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx
  2. 2
      apps/remixdesktop/package.json
  3. 19
      apps/remixdesktop/src/main.ts

@ -138,7 +138,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin {
<RemixUIGridView <RemixUIGridView
plugin={this} plugin={this}
styleList={""} styleList={""}
logo='/assets/img/bgRemi.webp' logo='assets/img/bgRemi.webp'
enableFilter={true} enableFilter={true}
showUntagged={true} showUntagged={true}
showPin={false} showPin={false}

@ -1,6 +1,6 @@
{ {
"name": "remixdesktop", "name": "remixdesktop",
"version": "1.0.8-insiders", "version": "1.0.9-insiders",
"main": "build/main.js", "main": "build/main.js",
"license": "MIT", "license": "MIT",
"type": "commonjs", "type": "commonjs",

@ -34,10 +34,19 @@ const homeDir = app.getPath('userData')
const windowSet = new Set<BrowserWindow>([]); const windowSet = new Set<BrowserWindow>([]);
export const createWindow = async (dir?: string): Promise<void> => { export const createWindow = async (dir?: string): Promise<void> => {
// reize factor
let resizeFactor = 0.8
// if the window is too small the size is 100%
if( screen.getPrimaryDisplay().size.width < 2560 || screen.getPrimaryDisplay().size.height < 1440) {
resizeFactor = 1
}
const width = screen.getPrimaryDisplay().size.width * resizeFactor
const height = screen.getPrimaryDisplay().size.height * resizeFactor
// Create the browser window. // Create the browser window.
const mainWindow = new BrowserWindow({ const mainWindow = new BrowserWindow({
width: (isE2E ? 2560 : screen.getPrimaryDisplay().size.width * 0.8), width: (isE2E ? 2560 : width),
height: (isE2E ? 1140 : screen.getPrimaryDisplay().size.height * 0.8), height: (isE2E ? 1140 : height),
frame: true, frame: true,
webPreferences: { webPreferences: {
preload: path.join(__dirname, 'preload.js') preload: path.join(__dirname, 'preload.js')
@ -100,12 +109,10 @@ app.on('activate', () => {
}); });
const showAbout = () => { const showAbout = () => {
void dialog.showMessageBox({ void dialog.showMessageBox({
title: `About Remix`, title: `About Remix`,
message: `Remix`, message: `The Native IDE for Web3 Development.`,
detail: `Remix`, detail: `Remix Desktop version ${app.getVersion()}`,
buttons: [], buttons: [],
}); });
}; };

Loading…
Cancel
Save