I've had a few folks asking me how to style grids and BROWSE. I've added support for CSS styling of BROWSE in Lianja 3.1.
As stated in the roadmap:
- Added STYLE "text" as a BROWSE keyword. The "text" should be CSS. It may be a reference to a filename.css containing the CSS. This may be prefixed with "app:/filename.css" or "lib:/filename.css" which causes the file contents to be read and applied as CSS.
Grid sections can be styled already. See CSS below.
Code:
open database southwind
use example
browse noactionbar ;
style "* { selection-color:yellow; ;
selection-background-color:black; ;
gridline-color:green; ;
background:black;color:yellow; ;
} ;
QTableView::item { background:lightgreen; } ;
QHeaderView::section { background-color:green;color:white;border:0px; } "
Bookmarks