Formatting
This commit is contained in:
parent
a1eac10beb
commit
a7a9bd1952
|
@ -1,19 +1,22 @@
|
||||||
.title-container
|
.title-container
|
||||||
{
|
{
|
||||||
font-family: 'Times New Roman', Times, serif;
|
font-family: sans-serif;
|
||||||
font-size: 20px;
|
font-size: 30px;
|
||||||
color: black;
|
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.page {
|
.page {
|
||||||
background-color: lightskyblue;
|
background-color: lightskyblue;
|
||||||
}
|
}
|
||||||
.item-header {
|
.item-item {
|
||||||
font-family: 'Times New Roman', Times, serif;
|
font-family: sans-serif;
|
||||||
font-size: 14px;
|
color: white;
|
||||||
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
.item-header {
|
.item-header {
|
||||||
font-family: 'Times New Roman', Times, serif;
|
font-family: sans-serif;
|
||||||
font-size: 10px;
|
color: white;
|
||||||
|
font-size: 25px;
|
||||||
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<ActionBar title="Result" class="action-bar"></ActionBar>
|
<ActionBar title="Result" class="action-bar"></ActionBar>
|
||||||
|
|
||||||
<StackLayout class="page" height="100%">
|
<StackLayout class="page" height="100%">
|
||||||
<StackLayout height="10%" class="title-container">
|
<StackLayout height="20%" class="title-container">
|
||||||
<Label text="{{night}}"></Label>
|
<Label text="{{night}}"></Label>
|
||||||
<Label text="{{percentage}}"></Label>
|
<Label text="{{percentage}}" textWrap="true"></Label>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<ScrollView height='90%'>
|
<ScrollView height='80%'>
|
||||||
<ListView [items]="reasons" class="list-group">
|
<ListView [items]="reasons" class="list-group">
|
||||||
<ng-template let-reason="item" let-i="index" let-odd="odd" let-even="even">
|
<ng-template let-reason="item" let-i="index" let-odd="odd" let-even="even">
|
||||||
<StackLayout orientation="vertical" class="list-group-item">
|
<StackLayout orientation="vertical" class="list-group-item">
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { ios as iosUtils } from "tns-core-modules/utils/utils";
|
||||||
})
|
})
|
||||||
export class MyBatteryInfoService {
|
export class MyBatteryInfoService {
|
||||||
|
|
||||||
public getBatteryLife() {
|
/*public getBatteryLife() {
|
||||||
if (iosApp){
|
if (iosApp){
|
||||||
iosUtils.getter(UIDevice, UIDevice.currentDevice).batteryMonitoringEnabled = true;
|
iosUtils.getter(UIDevice, UIDevice.currentDevice).batteryMonitoringEnabled = true;
|
||||||
let battery = +(iosUtils.getter(UIDevice, UIDevice.currentDevice).batteryLevel * 100);
|
let battery = +(iosUtils.getter(UIDevice, UIDevice.currentDevice).batteryLevel * 100);
|
||||||
|
@ -18,5 +18,5 @@ export class MyBatteryInfoService {
|
||||||
let percent = (level / scale) * 100.0;
|
let percent = (level / scale) * 100.0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,4 +11,4 @@ var app_module_1 = require("./app/app.module");
|
||||||
// so we provide a wrapper platform object, platformNativeScriptDynamic,
|
// so we provide a wrapper platform object, platformNativeScriptDynamic,
|
||||||
// that sets up a NativeScript application and can bootstrap the Angular framework.
|
// that sets up a NativeScript application and can bootstrap the Angular framework.
|
||||||
platform_1.platformNativeScriptDynamic().bootstrapModule(app_module_1.AppModule);
|
platform_1.platformNativeScriptDynamic().bootstrapModule(app_module_1.AppModule);
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm1haW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwwR0FBMEc7QUFDMUcsMERBQTRFO0FBRTVFLCtDQUE2QztBQUU3QyxnRkFBZ0Y7QUFDaEYsMEVBQTBFO0FBQzFFLHNFQUFzRTtBQUN0RSx5REFBeUQ7QUFDekQseUV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