util/s60theme/README
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 's60theme' is a commandline tool which converts Carbide.ui themes into
       
     2 an intermediate binary format that can be read by the simulated
       
     3 QS60Style. So, for example Designer (standalone or in Carbide) will
       
     4 be able to display a realistic S60 Ui.
       
     5 
       
     6 The intermediate binary format consists of hashes of QPictures and
       
     7 QColors, streamed to a QByteArray and compressed. QS60Style could not load
       
     8 the Carbide.ui theme directly because SVG handling is unfortunately
       
     9 not part of QtGui, and would require a dependency on the QtSvg module.
       
    10 
       
    11 Also, 's60theme' uses QWebkit to parse the SVG graphics (inspired by
       
    12 Ariya's 'WebKit-based SVG rasterizer' labs post). QtSvg had some issues
       
    13 with the SVGs that come with Carbide.ui.
       
    14 
       
    15 Usage examples:
       
    16 > s60theme "com.nokia.tools.theme.s60.50_3.4.0.0\config\model" Default.blob
       
    17   (Reads the default 's60.50' theme and saves it as 'Default.blob')
       
    18 
       
    19 > s60theme "Eclipse\Examples\Haze\Haze.tdf" Haze.blob
       
    20   (Reads the Haze theme and saves it as 'Haze.blob')
       
    21 
       
    22 To use the blob in a Qt application, get an instance of a QS60Style and call
       
    23   style->loadS60ThemeFromBlob("Theme.blob");
       
    24 
       
    25 The simulated QS60Style will, in its constructor by default, try to load a
       
    26 ":/s60Stylethemes/Default.blob". If your application has that a resource with
       
    27 exactly that filename, it will be used by default.
       
    28 'Default.blob' is not included in the current Qt source package. But it can
       
    29 easily be created with 's60theme' and a fresh install of Carbide.ui
       
    30 
       
    31 Visit http://www.forum.nokia.com for details about Carbide.ui