~mpredotka/pulse-app/trunk

« back to all changes in this revision

Viewing changes to Main.qml

  • Committer: Michal Predotka
  • Date: 2016-03-23 14:47:21 UTC
  • Revision ID: mpredotka@gmail.com-20160323144721-y03htewq4cfxokyg
PathView works now

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    property var countingEndTime
23
23
    property var countingDuration: countingEndTime - countingStartTime
24
24
    property int countNumber: 20
 
25
    property int min_pulse_result
 
26
    property int avg_pulse_result
25
27
    property int max_pulse_result
26
28
    property int total_results
 
29
    property int last_pulse_result
 
30
    property string last_time_result
 
31
    property string last_date_result
 
32
    property string last_icon_result
27
33
    property color main_back_color: isNightMode ? "#221e1b" : "#fff"
28
34
    property color top_text_color: isNightMode ? "#f7f7f7" : "#3b3b3b"
29
35
    property color calendar_text_color: isNightMode ? "#cdcdcd" : "#666666"
60
66
        theme.name =  isNightMode ? "Ubuntu.Components.Themes.SuruDark"
61
67
                                  : "Ubuntu.Components.Themes.Ambiance"
62
68
        Storage.createResultsTable()
63
 
        max_pulse_result = Storage.getMaxBMP()
 
69
        min_pulse_result = Storage.getMinBPM()
 
70
        avg_pulse_result = Storage.getAvgBPM()
 
71
        max_pulse_result = Storage.getMaxBPM()
64
72
        total_results = Storage.getNumberOfMeas()
 
73
        Storage.getLastResult()
65
74
    }
66
75
 
67
76
    Settings {