Results 1 to 4 of 4

Thread: Customizing the look & feel

  1. #1
    QCar Creator Jirka Jirout's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    590

    Customizing the look & feel

    OK, here goes some info about the possible customization. There are two levels of customization of the UI look:

    1. Changing the layout, colors and bitmaps of the current interface skin - this is very easy and does only require a text editor and in case of images, some sort of drawing application.

    2. Complete change of the GUI. All the built-in classes that represent the user interface objects can be replaced by classes from a custom bundle. These bundles are regular Cocoa bundles and creation of them requires Xcode, knowledge of Objective C programming and our SDK, which is available on request.

    For the moment, we will stick with the color, layout and bitmap customization. All the relevant files can be found inside the application bundle, typically in /Applications/QCar.app/Contents/Resources. Some bitmaps, specific to particular modules can be found in the folders of these modules, for example /Applications/QCar.app/Contents/Bundles/QCarCameraViewer.qCarModule/Contents/Resources/.

    The bitmaps are stored in the Resources folder(s) as simple TIFF or PNG files. There are two kinds of bitmaps - those that have their own colors and those that are colored by the application automatically according to the color settings in preferences. The first type of the icon is a normal TIFF. The other type has the full rectangle filled with black color and the actual icon stored in the alpha channel as negative (see attachment). The images that QCar should color have "+" as the first character of the file name. You can completely replace the icons with your own by replacing the files, it is as easy as that.

    The screen background can be easily overwritten by placing a file named QCarScreenBackground_AAA_BBB.png into the application bundle (TIFF should work too). AAA is the screen width and BBB is the screen height. You can also provide a separate background that should be used for night color scheme - that would be called QCarScreenNightBackground_AAA_BBB.png

    The layout and color are stored in several files with filenames in the format ScreenSetup_AAAxBBB.plist or ScreenSetup_AAAxBBB_TS.plist. Files with _TS suffix are for touchscreen and generally contain the same setup, except the additional button bar at the (mostly) bottom edge of the screen. The files are standard Apple Property List files in either plaintext or ASCII XML format. You can edit them using Apple's Property List Editor or with any decent text editor (TextEdit.app is fine).

    The contents of the file is self-explanatory (or at least we hope) ;-) but just to be sure, few tips:

    - Any color values are expressed as strings in "R G B" format, where the color values are from 0 to 1. Therefore "0 .5 0" is a medium green color and ".18 .18 .18" is the 18% grey.

    - The name of color-related key/value pairs are kind of self-explanatory, but there are too many of them and we are working on a cheat-sheet with screenshots where the areas of particular colors are marked and linked to the setup values. In the future, we will have an application for creation and editing of these files, but for now, you will have to experiment a little.

    - The sizes and bounds descriptions are using the standard Cocoa coordinate system, where [0,0] is the bottom left corner of the screen and x is the first coordinate. A 32x64 pixels rectangle starting at point [4,16] is then written down as "{{4,16},{32,64}}"

    - You can define any number of slots for modules and for icons in Icons and Slots. For an icon slot, you only need to specify the rectangle of the bounds, for module slot you need to give the border as well. The border is in {a, b, c, d} format, where a is the width of the frame on the bottom side, b is the right side, c is top side and d is left side of the slot.

    - A workarea has Border and Frame (= bounds) and optionally can have a "Popup" key/value pair (see the 640x480 setup in the standard application bundle). If popup has value "YES", then the workarea will not be displayed until a module has been activated. If the value is "NO" or the key/value pair is not present, the workarea will always be displayed.

    - SupportsMouse key/value pair determines, whether and how mouse (and therefore a touch screen) is handled. If the value is "No", then the mouse is ignored. If the value is "Yes", the mouse can be used. This key/value pair can also be used to display the buttons for the most common actions. To do so, you need to specify the edge of the screen to which the button bar should go (T,R,B or L) and the size of the buttons. "R32" for example creates a button bar 32pt wide and located at the right hand edge of the screen.

    Attached is also an example of custom 800x600 setup with a little bit more civilised layout than the default one in the application.
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    Newbie
    Join Date
    Jan 2008
    Location
    Western Australia
    Posts
    23
    pretty cool, do you have some drop-in theme/gui changes? did you fix your demo movies so I can watch them?

  3. #3
    QCar Creator Jirka Jirout's Avatar
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    590
    There is nothing wrong with the movies. Can you let me know what error you are getting when you try to download them?

    And at the moment, we do not have a full alternate skin to replace the default one. We created one just to test the conecpt, but then we made some extensions to the default skin and we have not yet included these in the alternate skin. When we can find some time to document it a bit better, we will release the sources as an example in case someone wants to write a custom skin.

  4. #4
    Newbie
    Join Date
    Jan 2008
    Location
    Western Australia
    Posts
    23
    I just downloaded them and played them back on my machine. They won't stream from your server..

Similar Threads

  1. Indexing music in 1.0.9.8 Failed
    By hovalistic in forum StreetDeck
    Replies: 0
    Last Post: 07-07-2007, 11:19 AM
  2. OEM Nav, making me feel like a sell out.
    By neon_eddy in forum General MP3Car Discussion
    Replies: 19
    Last Post: 10-10-2005, 01:22 PM
  3. The OEM feel
    By lostreception in forum Operating System Optimization
    Replies: 2
    Last Post: 05-18-2005, 07:43 PM
  4. Upgrading to a Xenarc.. Help me feel good about it..
    By tbird2340 in forum LCD/Display
    Replies: 40
    Last Post: 11-23-2004, 08:28 PM
  5. bondo/bongofiberglass/fiberglass feel
    By bmwperson in forum Fabrication
    Replies: 2
    Last Post: 09-09-2004, 02:57 PM

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
  •