I'm trying to set the theme of responsive app, but i can't set the mobile theme. The desktop theme is working fine.
What i'm doing wrong?
Is the mobile theme url ok?
- Code: Select all
if (pos('iPhone', agent) > 0) or (pos('iPod', agent) > 0) or (pos('Android', agent) > 0) then
begin
aReply.SendRedirect('/iphone/');
// The property is setted ok, but the theme dosn't change in the browser
StyleSheet.URL := 'css/ui-themes/mint/jquery.mobile.theme-1.3.2.min.css';
//handled := true;
end
else
begin
// This is working ok.
StyleSheet.URL := 'ui-themes/hot-sneaks/jquery-ui.css';
end;
Can you help me?
Thank you