Delphi FMX - How can I open the Android calendarpicker in darkmode

1 day ago 1
ARTICLE AD BOX

I have created a little procedure with Delphi 13, to open the system CalendarPicker dialog on Android and was expecting to get that dialog in light mode when Android is in light mode, and in dark mode when Android is in dark mode. Unfortunately, it always shows in light mode. Any suggestions on what I might be doing wrong?

uses System.Sysutils, System.Classes, FMX.Platform,FMX.Pickers; ... procedure OpenDatePicker; var PickerService: IFMXPickerService; DateTimePicker: TCustomDateTimePicker; begin if not TPlatformServices.Current.SupportsPlatformService(IFMXPickerService, PickerService) then raise Exception.Create('Native pickers not supported on this platform'); DateTimePicker := PickerService.Create; DatePicker.Date := Now; DatePicker.ShowMode := TDatePickerShowMode.Date; DatePicker.Show; end;
Read Entire Article