~ibelieve/ubuntu-filemanager-app/improved-ui

« back to all changes in this revision

Viewing changes to FileDetailsPopover.qml

  • Committer: Michel Spencer
  • Date: 2013-06-25 20:04:38 UTC
  • Revision ID: spencers1993@gmail.com-20130625200438-17aohfio2vxb4nl4
Fixed margins in details popover and changed icons to Humanity theme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    id: root
24
24
    property var model
25
25
 
 
26
    anchors {
 
27
        margins: units.gu(2)
 
28
        bottom: parent.bottom
 
29
    }
 
30
 
26
31
    function dateTimeFormat(dateTime) {
27
32
        return Qt.formatDateTime(dateTime, Qt.DefaultLocaleShortDate)
28
33
    }
52
57
    }
53
58
 
54
59
    Column {
55
 
        anchors.margins: units.gu(2)
 
60
        spacing: units.gu(1)
 
61
        anchors {
 
62
            margins: units.gu(2)
 
63
            left: parent.left
 
64
            right: parent.right
 
65
            top: parent.top
 
66
        }
 
67
 
56
68
        Row {
 
69
            spacing: units.gu(1)
57
70
            Image {
58
71
                // TODO: how to get proper icon?
59
72
                source: model.isDir
60
 
                        ? "/usr/share/icons/gnome/48x48/apps/file-manager.png"
61
 
                        : "/usr/share/icons/gnome/48x48/mimetypes/text-x-preview.png"
 
73
                        ? "/usr/share/icons/Humanity/places/48/folder.svg"
 
74
                        : "/usr/share/icons/Humanity/mimes/48/empty.svg"
62
75
            }
63
76
            Label {
64
77
                text: model.fileName
65
78
                anchors.verticalCenter: parent.verticalCenter
66
79
            }
67
80
        }
 
81
 
68
82
        Grid {
69
83
            columns: 2
70
84
            spacing: units.gu(1)