Currently there is no support for custom agents of loginWindow and mainWindow in Studio, but it is already supported by CUBA 6.3.
You can create two login windows from your IDE:
Extend login window in Studio.
Copy your loginWindow xml and Java files created from Studio to another package, say com.company.agents.web.loginWindow_phone".
Register new screen in web-screens.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
- Open this newly created screen in Studio and change the layout.
And now CUBA will use agent=“PHONE” screen for phones only. Take a look at sample project I’ve attached, it shows two login windows with different agents (without agent and with PHONE).