@@ -109,7 +109,7 @@ public String getPrimaryColour() {
109
109
}
110
110
111
111
/**
112
- * The primary colour for dark mode, configured for the session
112
+ * The primary colour to use when in dark mode
113
113
*
114
114
* @return the primary colour
115
115
*/
@@ -145,7 +145,7 @@ public String getLocale() {
145
145
}
146
146
147
147
/**
148
- * The dark mode option configured for the session
148
+ * Whether to use dark mode - may be 'ON', 'OFF', or 'AUTO'
149
149
*
150
150
* @return the dark mode
151
151
*/
@@ -289,7 +289,7 @@ public Builder withPrimaryColour(String primaryColour) {
289
289
}
290
290
291
291
/**
292
- * Sets the primary colour for the dark mode to be used by the web/native client
292
+ * Sets the primary colour to be used by the web/native client when in dark mode
293
293
*
294
294
* @param primaryColourDarkMode the primary colour for the dark mode, hexadecimal value e.g. #ff0000
295
295
* @return the builder
@@ -333,7 +333,7 @@ public Builder withLocale(String locale) {
333
333
}
334
334
335
335
/**
336
- * Sets the dark mode to be used by the web/native client
336
+ * Whether to use dark mode on the web/native client - may be 'ON', 'OFF', or 'AUTO'
337
337
*
338
338
* @param darkMode the dark mode, e.g. "ON"
339
339
* @return the builder
@@ -349,8 +349,7 @@ public Builder withDarkMode(String darkMode) {
349
349
* @return the builder
350
350
*/
351
351
public Builder withDarkModeOn () {
352
- this .darkMode = DocScanConstants .ON ;
353
- return this ;
352
+ return withDarkMode (DocScanConstants .ON );
354
353
}
355
354
356
355
/**
@@ -359,8 +358,7 @@ public Builder withDarkModeOn() {
359
358
* @return the builder
360
359
*/
361
360
public Builder withDarkModeOff () {
362
- this .darkMode = DocScanConstants .OFF ;
363
- return this ;
361
+ return withDarkMode (DocScanConstants .OFF );
364
362
}
365
363
366
364
/**
@@ -369,8 +367,7 @@ public Builder withDarkModeOff() {
369
367
* @return the builder
370
368
*/
371
369
public Builder withDarkModeAuto () {
372
- this .darkMode = DocScanConstants .AUTO ;
373
- return this ;
370
+ return withDarkMode (DocScanConstants .AUTO );
374
371
}
375
372
376
373
/**
0 commit comments