1. Open the style designer (add a StyleBook to the form and double click).
2. Load the mobile style you want to use. Located in the public Style folder. It end’s with *.fsf
3. Save it to a location you prefer. (Now the file extension *.style)
4. Open the style in a text editor.
5. Search for the object TStyleDescription and delete the whole section.
6. In your project file (*.dpr) add the unit FMX.Style and at the first code line TStyleManager.SetStyleFromFile(<your style>).
If you want to use these steps with the Premium styles they are already in the .style format so you can just edit them directly without loading them into the TStyleBook first.
Here is what my sample project file looked like after implementing the code:
program Project1;
//
uses
System.StartUpCopy,
FMX.Styles,
FMX.Forms,
Unit1 in 'Unit1.pas' {Form1};
//
{$R *.res}
//
begin
TStyleManager.SetStyleFromFile('C:\Users\Anonymous\Documents\Embarcadero\iOSJet.style');
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
And here is a sample of the TStyleDescription section below which you can remove to allow styles to work on any device. As you can see the PlatformTarget shows some platform definition information. By deleting it or modifying it you can allow it to run on the other platforms.
object TStyleDescription
StyleName = 'Description'
Author =
'Embarcadero Technologies Inc.; Original Design Elements by Medi' +
'aLoot.com'
AuthorURL = 'www.embarcadero.com'
PlatformTarget = '[IOSALTERNATE][IOS7][DEFINEFONTSTYLES]'
MobilePlatform = True
Title = 'iOSJet'
Version = '1.0'
end