- iRidi Studio 2019
- Appearance of interface items
Appearance of interface items
Interface objects include pages, popup windows, and the graphic items placed on them: labels, buttons, levels, joysticks, and others.
This section describes how to create the appearance of pages and popups and configure the different appearances of graphic items.
Appearance characteristics of interface objects
Page
A page is the basic interface object and the foundation of the interface. When you create a new interface, it contains one page on which to place graphic items. You can then add other pages and popup windows to the interface.
Characteristics of a page's appearance:
- All pages in the interface have the resolution selected when the interface was created;
- A page effectively covers the "empty space" that contains no interface and does not process user presses. Therefore, pages:
- cannot appear with animation effects,
- cannot be transparent or semitransparent.
Inactive interface area
This is the "empty space" around pages that contains no interface. It appears when the interface's aspect ratio does not match that of the device running i3 pro.
The color of inactive areas can be changed in the project settings: General > Color.
Popup window
A popup window (popup) is a window containing graphic items that can be opened anywhere on a page.
Characteristics of a popup's appearance:
- it can have any size,
- it can be visually transparent,
- it can be opened anywhere on a page,
- animation can be applied when it opens and closes.
Graphic item
Graphic items in the i3 pro interface can be pressed to send commands. To indicate an action (touching a button) or an event (a lamp turning on), an item's appearance can change during operation.
The ability to change its appearance is the most important characteristic of an item in i3 pro, implemented by storing several different appearances , called item States.
Graphic item states
To create or delete a graphic item state and quickly switch between states, use Project > States :
| Icon | Description |
|---|---|
| All states - edit all states of the graphic item. | |
| Current State - edit the selected state of the graphic item. | |
| Prev State - open the previous state. | |
| Next State - open the next state. | |
| Add State - add one state. | |
| Delete State - delete the selected state. |
The number of appearances varies depending on the desired behavior (Type). For example:
- a simple label, Label, has 1 appearance = 1 state
This can be a room name or a display showing the room temperature; - a button, Button, has "on" and "off" appearances = 2 states
This is standard button behavior: it changes color when pressed and returns to its original state when released; - a level, Level, has "filled" and "unfilled" appearances = 2 states
These include various sliders that can be moved along a scale to "fill" it; - For items marked "Multistate", you can create any number of states for animation or to change the appearance according to a particular parameter value. Examples include animations and progress bars.
When an item is selected, its number of states is displayed above the editor workspace. Select an item state to edit its appearance:

Item states can be reordered : drag a state to a new position relative to another state. The number of states depends on the item type and affects its behavior.
The appearance settings of the selected state are shown in the dynamic toolbar (below the workspace) and in the States window, which is part of the sidebar labeled PROJECT.

During interface operation, the item switches states according to its settings. This can be affected by presses, data received from equipment or tokens, and JavaScript commands.
Appearance settings
The appearance of a page, popup, or graphic item state consists of several components arranged in layers ; in stacking order:
- Fill - color fill;
- Image , Chameleon image or IP camera - an image, chameleon image, or IP camera (these cannot be used simultaneously);
- Border - a border;
- Text - text;
- Icon - an icon image.
Layers can be moved relative to each other, but this is rarely used.
All properties affecting an item's appearance are available in PROJECT > State and in the dynamic toolbar (quick-access toolbar).

In the quick-access toolbar the main properties are grouped into 2 tabs:
- Image editor: manages images (image, chameleon, and icon) and their settings;
- Text editor: manages text and its settings.

In the sidebar under PROJECT > States, all item properties are shown:
| Parameter | Description |
|---|---|
| States | The state of the item being edited: All states - edit all states, Off - edit the inactive button state, On - edit the activated button state. |
| Color | Image fill color |
| Color Alpha Channel | Color saturation |
| Opacity | Item opacity |
| Text | Text input field |
| FontFile | The font used to enter text on the item. Requirements for special fonts (Arabic languages or hieroglyphic writing), in addition to the recommendation to use Arial Unicode MS: 1. Font format: TTF (TTC is not supported); 2. The font must include all required hieroglyphs or characters; 3. The font must support Unicode. |
| Font Size | Font size |
| Spacing | Character spacing |
| LineSpacing | Line spacing |
| Text Color | Text color |
| Text Align | Text alignment |
| Text Padding Top / Left / Right / Bottom | Text padding from the edges |
| Text Effect | Text effects + effect color |
| TextRotation | Text rotation angle. For details, see here |
| Word Wrap | Word wrapping |
| Border | Border type |
| Border Color | Border color |
| Image | Main image |
| Icon | Icon over the image |
| Image Align | Image alignment |
| Image Padding Top / Left / Right / Bottom | Image padding |
| Icon Align | Icon alignment |
| Icon Padding Top / Left / Right / Bottom | Icon padding |
| Chameleon | A PNG image that changes color according to the item fill |
| Draw Order | Layer order (background, image, icon, text, border) |
| Image Stretch | Image stretching |
| Icon Stretch | Icon stretching |
| Chameleon Stretch | Chameleon stretching |
| Image Filtration | Image filtering |
| Icon Filtration | Icon filtering |
| Chameleon Filtration | Chameleon filtering |
| Blur Type | Blur type (blurring the image on the item): Default - blur the item's image; Background - blur the background behind the item. For details, see here |
| Blur Depth | Blur depth (0-100) |
Images
Image: main and background images
Image refers to the main images of items and the background images of pages and windows. They can be stretched over an item or page. The main image is below Icon, serving as its background.
Ways to add an Image to an item/page/popup:

- Right-click an item, popup, or page and select Add > Image ;
- On the left toolbar, enable "Images" mode for the quick-access toolbar. Select an image in the Image field and configure its stretching and position on the item;
- Select and configure the image in the item properties: PROJECT > States > Image: [ ... ];
- Drag an image from the gallery onto a graphic item or page;
- Click "Put to page (popup) background" in the gallery's context menu to use the image as the background of a page or window (not available for complex gallery objects).
Settings for Image:
- Image - image file;
- Image align - alignment relative to the item (anchor the image to a corner, the midpoint of an edge, or the center of the item, or specify the exact coordinates of the image's top-left corner relative to the item);
- Image Padding Top / Left / Right / Bottom - image padding from the item edges (top/left/right/bottom);
- Image stretch - stretching over the item:
- none - display at its original size,
- Proportional - stretch over the entire item while preserving the aspect ratio (empty bands may appear),
- Full size - stretch over the entire item without preserving the aspect ratio (the image may be distorted);
- Image filtration - the image processing algorithm used when Image stretch is enabled. Depending on the algorithm, the image stretched over the item may look more "jagged" or "blurred".
Image cannot be used simultaneously with Chameleon Image or an IP camera: the configured chameleon will be displayed, but the main image or IP camera will not, because they occupy the same "background image" layer.
Icon: icons
Icon refers to icon images that can be placed over the main images (Image, Chameleon Image) of items, pages, and windows. To drag an Icon across an item, select the item and then the Icon on it.
- Instead of Icon special fonts are very often used. The icon on an item is defined not by an image but by a text character : this lets you resize it quickly without losing quality simply by changing the font size. iRidi provides many "icon" fonts with iRidi Studio; see the "IR_xxx" fonts.
Ways to add an Icon to an item/page/popup:
![]()
- Right-click an item, popup, or page and select Add > Icon ;
- On the left toolbar, enable "Images" mode for the quick-access toolbar. Select an image in the Icon field and configure its position on the item;
- Select and configure the image in the item properties: PROJECT > States > Icon: [ ... ];
- Drag an image from the gallery onto a graphic item or page.
Settings for Icon:
- Icon - image file;
- Icon align - alignment relative to the item (anchor the image to a corner, the midpoint of an edge, or the center of the item, or specify the exact coordinates of the image's top-left corner relative to the item);
- Icon Padding Top / Left / Right / Bottom - icon padding from the item edges (top/left/right/bottom);
- Icon stretch - stretching over the item:
- none - display at its original size,
- Proportional - stretch over the entire item while preserving the aspect ratio (empty bands may appear),
- Full size - stretch over the entire item without preserving the aspect ratio (the image may be distorted);
- Icon filtration - the image processing algorithm used when Icon stretch is enabled. Depending on the algorithm, the image stretched over the item may look more "jagged" or "blurred".
Chameleon Image: chameleon images
Chameleon Image is an image with a variable color. It lets you create many color schemes for a single template: gradients, glows, shadow effects, depth effects, and others. A chameleon uses the item's fill and border colors to recolor itself (so the fill and border themselves are not displayed together with the chameleon, and it cannot be used simultaneously with Image).
A chameleon is a PNG image consisting of four color channels (transparency, red, green, and blue: ARGB). The colors are processed as follows:

- Transparency - defines the item boundaries;
- Red - the area filled with the item's fill color (Fill);
- Green - the area filled with the item's border color (Border);
- Blue - not used.
For transparency to be recognized correctly, save the PNG file in RGB colors (32-bit).
Example of a chameleon. The image is shown at the top, with examples of its use as a chameleon below:

Chameleon Image cannot be used simultaneously with Image or an IP camera: the configured chameleon will be displayed, but the main image or IP camera will not, because they occupy the same "background image" layer.
IP cameras
IP camera (or dynamic image) is streaming video from the network that can be displayed on an item. The IP camera URL is specified instead of the item's Image. An IP camera can be stretched over an item, but this is not recommended because it places a heavy load on the application. It is better to transmit the video stream at the desired resolution. Instead of a video stream, you can specify a URL for an image on the local network or the Internet if it is updated periodically.
Ways to add an IP camera to an item/page/popup:

- Right-click an item, popup, or page and select Add > IP-Camera ;
- Drag a camera from the CAMERAS panel onto a graphic item (open the panel from the right toolbar);
- On the left toolbar, enable "Images" mode for the quick-access toolbar. Select a camera in the Image field and configure its stretching and position on the item;
- Select and configure the image in the item properties: PROJECT > States > Image: [ ... ];
Settings for an IP camera:
An IP camera cannot be used simultaneously with Image or Chameleon Image: the configured chameleon will be displayed, but the main image or IP camera will not, because they occupy the same "background image" layer.
Text
Text is a text block that is part of any graphic item and can also be added to a page or popup. To drag the text block across an item, select the item, select its text, and then drag the text with the mouse. Text is displayed within the object on which it is placed and cannot extend beyond its boundaries (it is clipped).
Text is often used instead of Icon . Special "icon" fonts let you replace an icon image with a text character : this lets you resize an icon quickly without losing quality simply by changing the font size. iRidi provides many "icon" fonts with iRidi Studio; see the "IR_xxx" fonts:
Ways to add text to an item/page/popup:

- If the item already has text, select the item, then double-click the text to start editing it;
- If there is no text yet, right-click the item, popup, or page and select Add > Text ;
- Enter text in the item properties: PROJECT > States > Text: [ ];
- Enter text in the input field on the quick-access toolbar;
- In the text editor dialog, open Char map and select characters to insert into the text field (this method is particularly useful for font icons);
- To add text to all states of a graphic item, click All states ;
- When the ESC seq(\r\n) checkbox is selected, entering "\r\n" in the text editor moves the insertion point down one line (equivalent to the Enter key).
Settings for text:
- Text - a text block or line. Supports line breaks when edited in the dialog;
- Font file - font file. The font list contains standard fonts and special iRidi fonts. The application does not automatically load fonts installed on the system. To add your own font, you must follow these instructions;
- Font size - font size;
- Spacing - character spacing;
- LineSpacing - line spacing;
- Bold, Italic - bold or italic text (if supported by the font);
- Text align - alignment relative to the item (anchor the text to a corner, the midpoint of an edge, or the center of the item, or specify the exact coordinates of the text block's top-left corner relative to the item);
- Text Padding Top / Left / Right / Bottom - text padding from the item edges (top/left/right/bottom).
- The alignment type (Text Align) determines the "primary alignment edges". For example, for top-left, middle-left, top-center, and center alignment, the primary padding values are left and top. For other alignment types, the edges at the corresponding corners take priority.
- If Word Wrap is enabled, text wraps when it reaches the padding boundary within the item. Depending on the alignment, text may extend beyond the top and bottom boundaries.
- TextColor - text color;
- Word wrap - automatic line wrapping if the text does not fit within the item's width;
- Text effect - a text "shadow" effect, with several shadow options;
- Effect color - "shadow" color;
- Show value in text - display the value received in Value in the text field. You can specify the display format (an integer or the number of zeros after the decimal point). The selected data display template can be inserted into the text.
Fill and opacity
Fill fills a graphic item with color. The fill is an RGB color with an alpha channel , so objects on the layer below can show through the fill color. Only page (Page) fills do not support an alpha channel.
Opacity determines the opacity of the entire item : all of its component layers (fill, images, text, and border).
The settings for color and opacity are next to the item state list, above the workspace:

Border
Border lets you set the shape and color of the border of a graphic item, page, or popup. The border is added inside the item without changing its overall size. Only the border color can be controlled; its properties (corner rounding and thickness) cannot be adjusted, so you need to select a suitable border from the available list.
The settings for the border are next to the color and opacity settings, above the workspace:
