### Edit a Style Sheet

A text editor can be used to edit the external style sheet, located in the project Files folder (DirAssets).
Example CSS file with comments
/*
Document : main.css
Created on : 06.04.2014
Author : Robert W.B. Linn
*/
.list-cell:filled:focused:selected
{
fx-background-color: lightgray;
fx-background-insets: 0, 1, 2;
fx-background: -fx-accent;
fx-text-fill: white;
}
.button-items
{
fx-background-color: white;
}
.text-field:focused {
-fx-background-color: #66FF66, -fx-text-box-border, #CCFFFF;
-fx-background-insets: -0.4, 1, 2;
-fx-background-radius: 3.4, 2, 2;
-fx-prompt-text-fill: transparent;
}
Add the external style sheet to the project
Add the file main.css to the B4J IDE Files Manager.
In Subroutine AppStart, add after MainForm.Show:
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "mymenubar.css"))
This also applies to any other form.

Changed: , Category: CSS, File: T6C177M1287.htm, ID: 1287