~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-zesty-2202

« back to all changes in this revision

Viewing changes to examples/MessageComponents.qml

  • Committer: Bileto Bot
  • Date: 2016-11-16 18:52:43 UTC
  • mfrom: (146.4.57 touch+pointer-styles)
  • Revision ID: ci-train-bot@canonical.com-20161116185243-o399ryjh002umz1a
* Menus: add Pointer and Touch styles to be used depending on the user
  interaction with components
  Menu items now have a new Style property that defines some common properties
  such as shared colors and sizes that change depending on the UX journey. I'm
  only defining Pointer and TouchStyles for now, but they can be easily
  overridden in case.
  Removed some deprecated properties and adapted colors and sizes to new
  style.
* Bump package version as there's a new API for various components

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import Ubuntu.Settings.Menus 0.1
23
23
 
24
24
Item {
 
25
    id: page
25
26
    property string title: "MessageComponents"
 
27
    property bool pointerMode: false
26
28
 
27
29
    width: units.gu(42)
28
30
    height: units.gu(75)
88
90
                    body: model.body
89
91
                    time: model.time
90
92
                    removable: true
 
93
                    pointerMode: page.pointerMode
91
94
 
92
95
                    onIconActivated: {
93
96
                        print("Icon Activated")
103
106
                    title: model.title
104
107
                    body: model.body
105
108
                    time: model.time
 
109
                    pointerMode: page.pointerMode
106
110
                    removable: true
107
111
                    replyHintText: "Reply"
108
112
 
124
128
                    title: model.title
125
129
                    body: model.body
126
130
                    time: model.time
 
131
                    pointerMode: page.pointerMode
127
132
                    removable: true
128
133
                    replyHintText: "Reply"
129
134