Change relog prompt

This procedure shows you how to change the variables related to the relog prompt for autologout. It involves setting theme variables.

About this task

The relog prompt allows a user to resume an application after an auto logout event.The default relog prompt screen has a black background and white text, as in Figure 1.

Figure: Default relog prompt


You can edit the appearance of the relog prompt using the gbc-SessionLogPromptWidget-color and gbc-SessionLogPromptWidget-background-color theme variables.

Before you begin

This procedure assumes you are comfortable updating theme parts and themes. For the basic principles behind themes and theme parts, see How customization works. For instructions about adding and modifying themes and theme parts, see Working with themes. For information about the underlying GBC infrastructure and its components, see Theme reference.

  1. Identify the theme part you plan to update. If you are creating a new theme part, prepare the directory.
  2. In the theme part, open the theme.scss.json file in a text editor.
  3. To edit the colors used by the relog prompt, edit the gbc-SessionLogPromptWidget-color and gbc-SessionLogPromptWidget-background-color variables. For example:
    // in theme.scss.json
    {
      ...
      "gbc-SessionLogPromptWidget-background-color": "Blue",
      "gbc-SessionLogPromptWidget-color": "Red",
      ...
    }
  4. If you created a new theme part, add it to one or more themes.
  5. Save your changes and rebuild your customization using gbc build:
    $ gbc build --customization customization-project-dir
  6. Test that your changes work as expected.

    Log in with the incorrect credentials. The relog prompt should now look as in Figure 2.

    Figure: New relog prompt


    Tip:

    You may need to use CTRL + F5 to clear the browser cache before you see your changes.

    If your tests do not behave as expected, ensure you are using your newly-built custom GBC. Depending on your development environment, you may need to package and deploy a custom GBC client. For information on which customization and theme you are using, see Selecting customizations and themes.