Skip to content

Commit

Permalink
Merge pull request #107 from bornova/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
bornova authored Nov 26, 2024
2 parents 8d59acf + 65698c7 commit 6c377c2
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 81 deletions.
2 changes: 1 addition & 1 deletion build/css/dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/css/light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/css/numara.css

Large diffs are not rendered by default.

98 changes: 49 additions & 49 deletions build/js/numara.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/js/numara.js.map

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "numara",
"productName": "Numara",
"description": "Numara Calculator",
"version": "5.7.1",
"version": "5.7.2",
"author": {
"name": "Timur Atalay",
"email": "[email protected]",
Expand Down Expand Up @@ -41,10 +41,10 @@
"mathjs": "^14.0.0",
"prettier": "^3.3.3",
"tinykeys": "^3.0.0",
"uikit": "^3.21.14"
"uikit": "^3.21.16"
},
"dependencies": {
"electron-log": "^5.2.2",
"electron-log": "^5.2.3",
"electron-store": "^10.0.0",
"electron-updater": "^6.3.9"
}
Expand Down
3 changes: 3 additions & 0 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ document.title = description
if (isElectron) {
numara.themeUpdate(settings.apply)
numara.fullscreen()
numara.restored(() => {
cm.focus()
})
}

// Set headers
Expand Down
4 changes: 1 addition & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,12 @@ function appWindow() {
backgroundColor:
theme === 'system' ? (nativeTheme.shouldUseDarkColors ? dark : light) : theme === 'dark' ? dark : light,
frame: false,
hasShadow: true,
height: parseInt(config.get('appHeight')),
width: parseInt(config.get('appWidth')),
minHeight: 360,
minWidth: 420,
paintWhenInitiallyHidden: false,
show: false,
titleBarStyle: 'hiddenInset',
useContentSize: true,
webPreferences: {
preload: path.join(import.meta.dirname, 'preload.cjs'),
spellcheck: false
Expand Down Expand Up @@ -94,6 +91,7 @@ function appWindow() {

win.on('maximize', () => win.webContents.send('isMax', true))
win.on('unmaximize', () => win.webContents.send('isMax', false))
win.on('restore', () => win.webContents.send('restored', true))

if (app.isPackaged) {
win.on('focus', () => globalShortcut.registerAll(['CommandOrControl+R', 'F5'], () => {}))
Expand Down
1 change: 1 addition & 0 deletions src/preload.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ contextBridge.exposeInMainWorld('numara', {
isMaximized: () => ipcRenderer.sendSync('isMaximized'),
isResized: () => ipcRenderer.sendSync('isResized'),
resetSize: () => ipcRenderer.send('resetSize'),
restored: (callback) => ipcRenderer.on('restored', callback),

// Import
import: () => ipcRenderer.send('import'),
Expand Down

0 comments on commit 6c377c2

Please sign in to comment.