CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Set mobile theme at rutnime

General discussion

by ali » 18 Jul 2016 16:43

Hi,

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
ali
 
Posts: 35
Joined: 26 May 2015 15:49

by Jorge Sousa » 19 Jul 2016 10:20

Hello

I'm afraid that in mobile, you must use TIWCGJQMThemeSwitcher and set the default theme in the options
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to General

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.