Results 1 to 2 of 2

Thread: Styling desktop BROWSE

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22

    Styling desktop BROWSE

    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; } "
    Name:  Screen Shot 2016-10-10 at 10.24.15 AM.jpg
Views: 459
Size:  108.7 KB
    Last edited by barrymavin; 2016-10-09 at 22:39.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    beautiful!

    thanks
    Barry

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us