This problem is highly related to the following question: [Why are all the dialogs are using the "old" Android 2.x style?](https://stackoverflow.com/q/27664134/1854856)

I'm using Delphi Berlin (10.1), where this problem has been fixed already:

[![enter image description here](https://i.stack.imgur.com/f3wKy.png)](https://i.stack.imgur.com/f3wKy.png)

But, as soon as a TStyleBook is dropped to the form and assigned to it (e. g. by right clicking a component and then "edit custom style"), the dialog boxes (all of them) turn to the dark style again:

[![enter image description here](https://i.stack.imgur.com/KDdBf.png)](https://i.stack.imgur.com/KDdBf.png)

The automatically created "trimmed" style is still the "light" version ("AndroidL Light"). And yes, I checked that function "GetNativeTheme()" in FMX.Helpers.Android.pas assigns the `Result`, I even copied the file and added it to the project. Removing the assignment from `Form1.StyleBook` show the native styled dialogs again.

How can this be solved while still keep using a TStyleBook?