Italiano
Instant Developer Foundation Documentation
  • Web applications tutorial
  • Themes and visual styles

Creating and editing visual styles

copy link
<< Previous video
View in a full screen window.
Next video >>

Transcription

We would like to define a visual style that colors the Name panel field in the Apartments screen differently.

We must first of all create a Visual style; Project tree -> Database Library -> Default panel Style => Right Button Add Visual Style .

A tab appears in the design area, a tab that looks quite complicated but we start with the simplest operation: let's name the style let's call it Red White .

We want to set a background color Red and a text color White and then we are going to apply it to the panel field.

How should we read this sheet? Let's start with the radios present: List, Detail and Personalized Borders ; selecting these radios changes the preview displayed in the area below; then we will have the preview for the field when it is in the List when it is in Detail and which Borders it will have applied.

Detail Preview is the simplest and clearest, it shows the field and the label in the two states with the selection or without the selection; the List preview instead contains a grid: the idea is to have a preview of all the possible states of a field in the list: each cell represents a state, among other things the cells are clickable and you notice it changes with each click the entry in the drop-down box below: Preview cells and Drop-down box are connected, opening the drop-down box we discover all the possible variations Field text, Field background etc …

If we want to change the Field background we choose Fields Background and then with the picker we choose the color Red , here you notice the preview has been updated, yes but in addition to the background we change the < strong> Text Fields and put White .

If the list seems correct, look at the Detail, the same colors have been automatically reported otherwise we could change them manually.

I'm not sure everything is perfect but let's do this, save and apply the visual style to the panel field Name : nothing simpler among the properties of the panel field we find the box Visual Style and with the drop-down box we choose Red White .

The preview does not seem perfect but let's continue, let's run and see the effect.

We open the Apartments screen and here is the list, I would say that we are not there.

The panel is locked and the color is not there ', unlocking the panel sets the red but alternately and is not applied on the active row, it is not perfect, let's go back to the project and change the visual style Red White : double click on Red White, we have to check all the background items we have Alternate Lines Background , Active Line Background etc we have to set the red a little everywhere (a unless we want to differentiate with other colors).

We save and run again: opening the Apartments screen we notice that now the list is correct.

Changed on: 17/11/2023 / From version: 20.0.7800

Is this article helpful?

Thank you for your feedback!

Need more help?

Check out the forum

See also

    Download the sample project You Bb Project.zip