Skip to content

Commit e0e4b16

Browse files
Add webview size arguments
1 parent fdccbd2 commit e0e4b16

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

fcut.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ else
392392
title = 'Fast Cut (Preview)',
393393
resizable = true,
394394
bind = true,
395+
width = config.webview.width,
396+
height = config.webview.height,
395397
debug = config.webview.debug,
396398
contexts = httpContexts,
397399
}):next(function(webview)

fcutSchema.lua

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ return {
5858
loglevel = {
5959
title = 'The log level',
6060
type = 'string',
61-
default = 'WARN',
62-
enum = {'ERROR', 'WARN', 'INFO', 'CONFIG', 'FINE', 'FINER', 'FINEST', 'DEBUG', 'ALL'},
61+
default = 'warn',
62+
enum = {'error', 'warn', 'info', 'config', 'fine', 'finer', 'finest', 'debug', 'all'},
6363
},
6464
webview = {
6565
type = 'object',
@@ -87,6 +87,20 @@ return {
8787
minimum = 0,
8888
maximum = 65535,
8989
},
90+
width = {
91+
title = 'The WebView width',
92+
type = 'integer',
93+
default = 800,
94+
minimum = 320,
95+
maximum = 7680,
96+
},
97+
height = {
98+
title = 'The WebView height',
99+
type = 'integer',
100+
default = 700,
101+
minimum = 240,
102+
maximum = 4320,
103+
},
90104
native = {
91105
title = 'Enable native open file dialog',
92106
type = 'boolean',

0 commit comments

Comments
 (0)