Custom Button for User Settings

I want to create a custom layout with two distinct buttons, one for the user settings and the other for the logout task

The Logout button in a custom ext-main screen is implemented with the following code

<logoutButton id="logoutButton" icon="app/images/exit.png" align="MIDDLE_CENTER"></logoutButton>

There is some trick for the settings button or the issue can be solved with the Route API?

Not sure I completely understood your question.

Do you want to know how to handle “Settings” button? See https://github.com/cuba-platform/cuba/blob/release_7_2/modules/web/src/com/haulmont/cuba/web/app/main/MainScreen.java#L269