mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 更改初始化界面大小
This commit is contained in:
parent
01e9b06847
commit
c789f59b67
1 changed files with 4 additions and 4 deletions
|
|
@ -131,8 +131,8 @@ const boot = () => {
|
||||||
let defaultHeight
|
let defaultHeight
|
||||||
let workArea
|
let workArea
|
||||||
try {
|
try {
|
||||||
defaultWidth = screen.getPrimaryDisplay().size.width * 4 / 5
|
defaultWidth = screen.getPrimaryDisplay().size.width
|
||||||
defaultHeight = screen.getPrimaryDisplay().workAreaSize.height * 4 / 5
|
defaultHeight = screen.getPrimaryDisplay().workAreaSize.height
|
||||||
workArea = screen.getPrimaryDisplay().workArea
|
workArea = screen.getPrimaryDisplay().workArea
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|
@ -807,8 +807,8 @@ app.whenReady().then(() => {
|
||||||
|
|
||||||
if (firstOpen) {
|
if (firstOpen) {
|
||||||
const firstOpenWindow = new BrowserWindow({
|
const firstOpenWindow = new BrowserWindow({
|
||||||
width: screen.getPrimaryDisplay().size.width / 2,
|
width: screen.getPrimaryDisplay().size.width * 0.6,
|
||||||
height: screen.getPrimaryDisplay().workAreaSize.height / 2,
|
height: screen.getPrimaryDisplay().workAreaSize.height * 0.8,
|
||||||
frame: false,
|
frame: false,
|
||||||
icon: path.join(appDir, 'stage', 'icon-large.png'),
|
icon: path.join(appDir, 'stage', 'icon-large.png'),
|
||||||
transparent: 'linux' !== process.platform,
|
transparent: 'linux' !== process.platform,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue