diff --git a/README.md b/README.md
index 32bc1bf9..896d9b8e 100644
--- a/README.md
+++ b/README.md
@@ -3,15 +3,15 @@ CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chro
CEF4Delphi is based on DCEF3 and fpCEF3. The original license of those projects still applies to CEF4Delphi. Read the license terms in the LICENSE.md file.
-CEF4Delphi uses CEF 116.0.15 which includes Chromium 116.0.5845.111.
+CEF4Delphi uses CEF 116.0.18 which includes Chromium 116.0.5845.141.
The CEF binaries used by CEF4Delphi are available for download at Spotify :
-* [Windows 32 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.15%2Bg0b8c265%2Bchromium-116.0.5845.111_windows32.tar.bz2)
-* [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.15%2Bg0b8c265%2Bchromium-116.0.5845.111_windows64.tar.bz2)
-* [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.15%2Bg0b8c265%2Bchromium-116.0.5845.111_linux64.tar.bz2)
-* [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.15%2Bg0b8c265%2Bchromium-116.0.5845.111_linuxarm.tar.bz2)
-* [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.15%2Bg0b8c265%2Bchromium-116.0.5845.111_linuxarm64.tar.bz2)
-* [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.15%2Bg0b8c265%2Bchromium-116.0.5845.111_macosx64.tar.bz2)
+* [Windows 32 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.18%2Bgf38f362%2Bchromium-116.0.5845.141_windows32.tar.bz2)
+* [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.18%2Bgf38f362%2Bchromium-116.0.5845.141_windows64.tar.bz2)
+* [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.18%2Bgf38f362%2Bchromium-116.0.5845.141_linux64.tar.bz2)
+* [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.18%2Bgf38f362%2Bchromium-116.0.5845.141_linuxarm.tar.bz2)
+* [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.18%2Bgf38f362%2Bchromium-116.0.5845.141_linuxarm64.tar.bz2)
+* [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_116.0.18%2Bgf38f362%2Bchromium-116.0.5845.141_macosx64.tar.bz2)
CEF4Delphi was developed and tested on Delphi 11.3 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 10.2, Delphi 10.3, Delphi 10.4 and Lazarus 2.2.6/FPC 3.2.2. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components.
diff --git a/docs/cef4delphi.chm b/docs/cef4delphi.chm
index 9bd30b63..d1fb57d1 100644
Binary files a/docs/cef4delphi.chm and b/docs/cef4delphi.chm differ
diff --git a/packages/cef4delphi_lazarus.lpk b/packages/cef4delphi_lazarus.lpk
index d662221c..973e92e2 100644
--- a/packages/cef4delphi_lazarus.lpk
+++ b/packages/cef4delphi_lazarus.lpk
@@ -21,7 +21,7 @@
-
+
diff --git a/source/uCEFApplicationCore.pas b/source/uCEFApplicationCore.pas
index e1db0acd..2ad8f592 100644
--- a/source/uCEFApplicationCore.pas
+++ b/source/uCEFApplicationCore.pas
@@ -151,6 +151,7 @@ type
FNetLogCaptureMode : TCefNetLogCaptureMode;
FRemoteAllowOrigins : ustring;
FAutoAcceptCamAndMicCapture : boolean;
+ FUIColorMode : TUIColorMode;
// Fields used during the CEF initialization
@@ -1154,6 +1155,13 @@ type
///
property AutoAcceptCamAndMicCapture : boolean read FAutoAcceptCamAndMicCapture write FAutoAcceptCamAndMicCapture;
///
+ /// Forces light or dark mode in UI for platforms that support it.
+ ///
+ ///
+ /// Uses the following command line switches: --force-dark-mode --force-light-mode
+ ///
+ property UIColorMode : TUIColorMode read FUIColorMode write FUIColorMode;
+ ///
/// Ignores certificate-related errors.
///
///
@@ -1772,6 +1780,7 @@ begin
FNetLogCaptureMode := nlcmDefault;
FRemoteAllowOrigins := '';
FAutoAcceptCamAndMicCapture := False;
+ FUIColorMode := uicmSystemDefault;
// Fields used during the CEF initialization
FWindowsSandboxInfo := nil;
@@ -3195,6 +3204,11 @@ begin
if FAutoAcceptCamAndMicCapture then
ReplaceSwitch(aKeys, aValues, '--auto-accept-camera-and-microphone-capture');
+ case FUIColorMode of
+ uicmForceDark : ReplaceSwitch(aKeys, aValues, '--force-dark-mode');
+ uicmForceLight : ReplaceSwitch(aKeys, aValues, '--force-light-mode');
+ end;
+
if FNetLogEnabled then
begin
ReplaceSwitch(aKeys, aValues, '--log-net-log', FNetLogFile);
diff --git a/source/uCEFTypes.pas b/source/uCEFTypes.pas
index 75c85465..d412da0b 100644
--- a/source/uCEFTypes.pas
+++ b/source/uCEFTypes.pas
@@ -924,6 +924,23 @@ type
asErrorInitializingLibrary,
asErrorExecutingProcess);
+ ///
+ /// Color mode in UI for platforms that support it.
+ ///
+ TUIColorMode = (
+ ///
+ /// System default.
+ ///
+ uicmSystemDefault,
+ ///
+ /// Forces light color mode in UI for platforms that support it.
+ ///
+ uicmForceLight,
+ ///
+ /// Forces dark color mode in UI for platforms that support it.
+ ///
+ uicmForceDark);
+
///
/// Supported proxy schemes in Chromium.
///
diff --git a/source/uCEFVersion.inc b/source/uCEFVersion.inc
index 83d9c27a..e2b98b2b 100644
--- a/source/uCEFVersion.inc
+++ b/source/uCEFVersion.inc
@@ -1,9 +1,9 @@
CEF_SUPPORTED_VERSION_MAJOR = 116;
CEF_SUPPORTED_VERSION_MINOR = 0;
- CEF_SUPPORTED_VERSION_RELEASE = 15;
+ CEF_SUPPORTED_VERSION_RELEASE = 18;
CEF_SUPPORTED_VERSION_BUILD = 0;
CEF_CHROMEELF_VERSION_MAJOR = CEF_SUPPORTED_VERSION_MAJOR;
CEF_CHROMEELF_VERSION_MINOR = 0;
CEF_CHROMEELF_VERSION_RELEASE = 5845;
- CEF_CHROMEELF_VERSION_BUILD = 111;
+ CEF_CHROMEELF_VERSION_BUILD = 141;
diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json
index 52dccfeb..cf3f8eda 100644
--- a/update_CEF4Delphi.json
+++ b/update_CEF4Delphi.json
@@ -2,9 +2,9 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
- "InternalVersion" : 509,
+ "InternalVersion" : 510,
"Name" : "cef4delphi_lazarus.lpk",
- "Version" : "116.0.15"
+ "Version" : "116.0.18"
}
],
"UpdatePackageData" : {