Skip to content

Commit f4b52e2

Browse files
committed
support ui_mode cli flag for start command
1 parent 99e2407 commit f4b52e2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/start.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const start = (buildConfig = config.defaultBuildConfig, options) => {
1919
if (options.disable_pdfjs_extension) {
2020
braveArgs.push('--disable-pdfjs-extension')
2121
}
22+
if (options.ui_mode) {
23+
braveArgs.push(`--ui-mode=${options.ui_mode}`)
24+
}
2225
if (!options.enable_brave_update) {
2326
// This only has meaning with MacOS and official build.
2427
braveArgs.push('--disable-brave-update')

scripts/commands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ program
6767
.option('--no_sandbox', 'disable the sandbox')
6868
.option('--disable_brave_extension', 'disable loading the Brave extension')
6969
.option('--disable_pdfjs_extension', 'disable loading the PDFJS extension')
70+
.option('--ui_mode <ui_mode>', 'which built-in ui appearance mode to use', /^(dark|light)$/i)
7071
.option('--enable_brave_update', 'enable brave update')
7172
.option('--channel <target_chanel>', 'target channel to start', /^(beta|dev|nightly|release)$/i, 'release')
7273
.option('--official_build <official_build>', 'force official build settings')

0 commit comments

Comments
 (0)