View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#723
Originally Posted by joppu View Post
Maybe implement Marina or Reflect as the theme for the QML version? Just create the reference files for the required graphics and let me or someone else fill them out for the actual graphics as AFAIK you can't really copy-paste the Nokia licensed Alpha or Beta theme graphics. It's too bad QML doesn't support system wide look-and-feel, but any theme should be better than the single-color contour buttons. You might need to use a "sliding door" technique for the buttons themselves, or just use make the each size use individual images
The purpose of QML is to enable applications to have a distinctive appearance, so it makes sense to not support the OS look and feel. QML doesn't use widgets, the buttons are created by declaring a rectangle with a child mouse area e.g:

Code:
Rectangle {

    property alias icon: icon.source
    property alias iconWidth: icon.width
    property alias iconHeight: icon.height
    signal buttonClicked

    id: button
    width: 150
    height: 50
    radius: 10
    color: mouseArea.pressed ? "#3399bb" : "black"
    border.width: 2
    border.color: "#3399bb"
    Image {
        id: icon
        anchors.centerIn: button
        width: 50
        height: 50
        smooth: true
    }
    MouseArea {
        id: mouseArea
        anchors.fill: button
        onClicked: buttonClicked()
    }
}
The only images I use for push buttons atm is the icon. I did try some gradient images which looked OK, but I'm no graphic designer. I am more than happy to consider any suggestions on this aspect of the application.

Any images that are used in the application are quite easy to change, as they are located in a ui-images folder, so it is my intention to make the application easy to skin.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 4 Users Say Thank You to marxian For This Useful Post: