updated icons, status bar dynamic icons colors
|
@ -17,7 +17,7 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
versionCode 2
|
versionCode 2
|
||||||
versionName '1.0.0'
|
versionName '1.0.0'
|
||||||
minSdkVersion 19
|
minSdkVersion 21
|
||||||
generatedDensities = []
|
generatedDensities = []
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters.clear()
|
abiFilters.clear()
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="10000" android:versionName="1.0">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="__PACKAGE__" android:versionCode="10000" android:versionName="1.0">
|
||||||
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" />
|
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" />
|
||||||
<uses-permission android:name="android.permission.CAMERA" />
|
<uses-permission android:name="android.permission.CAMERA" />
|
||||||
<uses-feature android:name="android.hardware.camera" android:required="false" />
|
<uses-feature android:name="android.hardware.camera" android:required="false" />
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
<application android:name="com.tns.NativeScriptApplication" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:roundIcon="@drawable/ic_launcher_round" android:label="@string/app_name" android:hardwareAccelerated="true" android:largeHeap="true" android:theme="@style/AppTheme" android:requestLegacyExternalStorage="true">
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" />
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" tools:node="remove" />
|
||||||
|
<uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove" />
|
||||||
|
<application android:name="com.tns.NativeScriptApplication" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:hardwareAccelerated="true" android:largeHeap="true" android:theme="@style/AppTheme" android:requestLegacyExternalStorage="true">
|
||||||
<activity android:name="com.tns.NativeScriptActivity" android:label="@string/title_activity_kimera" android:screenOrientation="portrait" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode" android:theme="@style/LaunchScreenTheme" android:windowSoftInputMode="adjustPan">
|
<activity android:name="com.tns.NativeScriptActivity" android:label="@string/title_activity_kimera" android:screenOrientation="portrait" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode" android:theme="@style/LaunchScreenTheme" android:windowSoftInputMode="adjustPan">
|
||||||
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
|
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
BIN
App_Resources/Android/src/main/res/PlayStore-Icon.png
Executable file
After Width: | Height: | Size: 9.1 KiB |
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@drawable/ic_launcher_background" />
|
<background android:drawable="@color/ns_accent" />
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@drawable/ic_launcher_background" />
|
<background android:drawable="@color/ns_accent" />
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
||||||
|
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 875 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 15 KiB |
BIN
App_Resources/Android/src/main/res/drawable-hdpi/logo_light.png
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 6.4 KiB |
BIN
App_Resources/Android/src/main/res/drawable-ldpi/logo_light.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.2 KiB |
BIN
App_Resources/Android/src/main/res/drawable-mdpi/logo_light.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 11 KiB |
|
@ -1,11 +1,10 @@
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill">
|
||||||
<item>
|
<item>
|
||||||
<shape android:shape="rectangle">
|
<shape android:shape="rectangle">
|
||||||
<!-- <solid android:color="@android:color/white" /> -->
|
<solid android:color="@color/ns_accent" />
|
||||||
<solid android:color="#ff5722" />
|
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<bitmap android:gravity="center" android:src="@drawable/logo_white" />
|
<bitmap android:gravity="center" android:src="@drawable/logo_light" />
|
||||||
</item>
|
</item>
|
||||||
</layer-list>
|
</layer-list>
|
||||||
|
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 19 KiB |
BIN
App_Resources/Android/src/main/res/drawable-xhdpi/logo_light.png
Normal file
After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 10 KiB |
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="ns_primary">
|
<color name="ns_primary">
|
||||||
#FFFFFF
|
#fafafa
|
||||||
</color>
|
</color>
|
||||||
<color name="ns_primaryDark">
|
<color name="ns_primaryDark">
|
||||||
#ff7043
|
#ff5722
|
||||||
</color>
|
</color>
|
||||||
<color name="ns_accent">
|
<color name="ns_accent">
|
||||||
#ff7043
|
#ff5722
|
||||||
</color>
|
</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<string name="app_name">EnRecipes</string>
|
|
||||||
<string name="title_activity_kimera">EnRecipes</string>
|
|
||||||
</resources>
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<!-- Application theme -->
|
<!-- Application theme -->
|
||||||
<style name="AppThemeBase21" parent="AppThemeBase">
|
<style name="AppThemeBase21" parent="AppThemeBase">
|
||||||
<item name="android:windowTranslucentStatus">true</item>
|
<item name="android:windowTranslucentStatus">false</item>
|
||||||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
|
||||||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
|
||||||
</style>
|
</style>
|
||||||
|
@ -23,6 +23,6 @@
|
||||||
|
|
||||||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
|
||||||
<item name="android:elevation">4dp</item>
|
<item name="android:elevation">4dp</item>
|
||||||
<item name="android:paddingTop">24dp</item>
|
<!-- <item name="android:paddingTop">24dp</item> -->
|
||||||
</style>
|
</style>
|
||||||
</resources>
|
</resources>
|
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="ns_primary">
|
<color name="ns_primary">
|
||||||
#FFFFFF
|
#fafafa
|
||||||
</color>
|
</color>
|
||||||
<color name="ns_primaryDark">
|
<color name="ns_primaryDark">
|
||||||
#ff7043
|
#ff5722
|
||||||
</color>
|
</color>
|
||||||
<color name="ns_accent">
|
<color name="ns_accent">
|
||||||
#ff7043
|
#ff5722
|
||||||
</color>
|
</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
true
|
true
|
||||||
</item>
|
</item>
|
||||||
<item name="android:windowTranslucentStatus">
|
<item name="android:windowTranslucentStatus">
|
||||||
true
|
false
|
||||||
</item>
|
</item>
|
||||||
</style>
|
</style>
|
||||||
<style name="LaunchScreenTheme" parent="LaunchScreenThemeBase">
|
<style name="LaunchScreenTheme" parent="LaunchScreenThemeBase">
|
||||||
|
|
41
app/app.scss
|
@ -27,9 +27,6 @@ Page {
|
||||||
.orkm {
|
.orkm {
|
||||||
font-family: "Orkney-Medium";
|
font-family: "Orkney-Medium";
|
||||||
}
|
}
|
||||||
.orkb {
|
|
||||||
font-family: "Orkney-Bold";
|
|
||||||
}
|
|
||||||
.bx {
|
.bx {
|
||||||
font-family: "boxicons";
|
font-family: "boxicons";
|
||||||
font-size: 24;
|
font-size: 24;
|
||||||
|
@ -87,7 +84,7 @@ Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.imageHolder {
|
.imageHolder {
|
||||||
color: $grayL1;
|
color: $gray;
|
||||||
background: $grayL2;
|
background: $grayL2;
|
||||||
}
|
}
|
||||||
.count {
|
.count {
|
||||||
|
@ -96,16 +93,9 @@ Page {
|
||||||
}
|
}
|
||||||
.instruction {
|
.instruction {
|
||||||
border-color: $grayD4;
|
border-color: $grayD4;
|
||||||
} // prettier-ignore
|
|
||||||
.text-btn,
|
|
||||||
.group-header,
|
|
||||||
.category,
|
|
||||||
ActivityIndicator,
|
|
||||||
.selected-sd-item,
|
|
||||||
Progress {
|
|
||||||
color: $orange;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ns-dark {
|
.ns-dark {
|
||||||
Page,
|
Page,
|
||||||
ActionBar,
|
ActionBar,
|
||||||
|
@ -153,7 +143,7 @@ Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.imageHolder {
|
.imageHolder {
|
||||||
color: $grayD4;
|
color: $gray;
|
||||||
background: #111;
|
background: #111;
|
||||||
}
|
}
|
||||||
.count {
|
.count {
|
||||||
|
@ -163,15 +153,6 @@ Page {
|
||||||
.instruction {
|
.instruction {
|
||||||
border-color: $grayL4;
|
border-color: $grayL4;
|
||||||
}
|
}
|
||||||
// prettier-ignore
|
|
||||||
.text-btn,
|
|
||||||
.group-header,
|
|
||||||
.category,
|
|
||||||
ActivityIndicator,
|
|
||||||
.selected-sd-item,
|
|
||||||
Progress {
|
|
||||||
color: $orange;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
// Elements
|
// Elements
|
||||||
|
@ -205,10 +186,18 @@ TabView {
|
||||||
.progressContainer{
|
.progressContainer{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
// prettier-ignore
|
||||||
|
.text-btn,
|
||||||
|
.group-header,
|
||||||
|
.category,
|
||||||
|
ActivityIndicator,
|
||||||
|
Progress {
|
||||||
|
color: $orange;
|
||||||
|
}
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
// ActionBar
|
// ActionBar
|
||||||
ActionBar {
|
ActionBar {
|
||||||
margin: 24 0 0 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 64;
|
height: 64;
|
||||||
.bx {
|
.bx {
|
||||||
|
@ -225,7 +214,7 @@ ActionBar {
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
// Side Drawer
|
// Side Drawer
|
||||||
.sd {
|
.sd {
|
||||||
padding: 32 8 8;
|
padding: 8;
|
||||||
}
|
}
|
||||||
.sd-item {
|
.sd-item {
|
||||||
border-radius: 4;
|
border-radius: 4;
|
||||||
|
@ -235,6 +224,9 @@ ActionBar {
|
||||||
.bx {
|
.bx {
|
||||||
font-size: 24;
|
font-size: 24;
|
||||||
}
|
}
|
||||||
|
&.selected-sd-item {
|
||||||
|
color: $orange;
|
||||||
|
}
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
Label {
|
Label {
|
||||||
font-size: 16;
|
font-size: 16;
|
||||||
|
@ -489,6 +481,7 @@ RadListView {
|
||||||
.closeBtn {
|
.closeBtn {
|
||||||
padding: 4;
|
padding: 4;
|
||||||
margin-top: 16;
|
margin-top: 16;
|
||||||
|
vertical-alignment: top;
|
||||||
}
|
}
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
// DIALOGS
|
// DIALOGS
|
||||||
|
|
Before Width: | Height: | Size: 93 KiB |
|
@ -19,7 +19,7 @@
|
||||||
orientation="horizontal"
|
orientation="horizontal"
|
||||||
class="appIconContainer"
|
class="appIconContainer"
|
||||||
>
|
>
|
||||||
<Image src="res://logo_white" class="appIcon" stretch="aspectFit" />
|
<Image src="res://logo_light" class="appIcon" stretch="aspectFit" />
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<StackLayout orientation="horizontal" class="option">
|
<StackLayout orientation="horizontal" class="option">
|
||||||
<Label class="bx" :text="icon.info" />
|
<Label class="bx" :text="icon.info" />
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<Page actionBarHidden="true">
|
<Page
|
||||||
|
@loaded="initialize"
|
||||||
|
actionBarHidden="true"
|
||||||
|
:androidStatusBarBackground="themeName == 'Light' ? '#fafafa' : '#212121'"
|
||||||
|
>
|
||||||
<RadSideDrawer
|
<RadSideDrawer
|
||||||
ref="drawer"
|
ref="drawer"
|
||||||
allowEdgeSwipe="true"
|
allowEdgeSwipe="true"
|
||||||
|
@ -173,6 +177,7 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
catEditMode: false,
|
catEditMode: false,
|
||||||
|
themeName: "Light",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -198,6 +203,14 @@ export default {
|
||||||
"initializeYieldUnits",
|
"initializeYieldUnits",
|
||||||
"renameCategoryAction",
|
"renameCategoryAction",
|
||||||
]),
|
]),
|
||||||
|
initialize() {
|
||||||
|
if (this.themeName === "Light") {
|
||||||
|
const View = android.view.View
|
||||||
|
const window = Application.android.startActivity.getWindow()
|
||||||
|
const decorView = window.getDecorView()
|
||||||
|
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR)
|
||||||
|
}
|
||||||
|
},
|
||||||
toggleCatEdit() {
|
toggleCatEdit() {
|
||||||
this.catEditMode = !this.catEditMode
|
this.catEditMode = !this.catEditMode
|
||||||
if (this.selectedCategory) this.setComponent("EnRecipes")
|
if (this.selectedCategory) this.setComponent("EnRecipes")
|
||||||
|
@ -353,8 +366,10 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
let themeName = ApplicationSettings.getString("appTheme", "Light")
|
this.themeName = ApplicationSettings.getString("appTheme", "Light")
|
||||||
setTimeout((e) => Theme.setMode(Theme[themeName]), 50)
|
setTimeout((e) => {
|
||||||
|
Theme.setMode(Theme[this.themeName])
|
||||||
|
}, 50)
|
||||||
if (!this.recipes.length) this.initializeRecipes()
|
if (!this.recipes.length) this.initializeRecipes()
|
||||||
if (!this.categories.length) this.initializeCategories()
|
if (!this.categories.length) this.initializeCategories()
|
||||||
if (!this.yieldUnits.length) this.initializeYieldUnits()
|
if (!this.yieldUnits.length) this.initializeYieldUnits()
|
||||||
|
|
|
@ -39,8 +39,9 @@
|
||||||
v-if="recipeContent.imageSrc"
|
v-if="recipeContent.imageSrc"
|
||||||
:src="recipeContent.imageSrc"
|
:src="recipeContent.imageSrc"
|
||||||
stretch="aspectFill"
|
stretch="aspectFill"
|
||||||
width="100%"
|
decodeWidth="100%"
|
||||||
:height="screenWidth"
|
:decodeHeight="screenWidth"
|
||||||
|
loadMode="async"
|
||||||
/>
|
/>
|
||||||
<Label
|
<Label
|
||||||
v-else
|
v-else
|
||||||
|
@ -248,7 +249,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { WorkerService } from "../worker.service"
|
import { WorkerService } from "../worker.service"
|
||||||
var workerService = new WorkerService()
|
const workerService = new WorkerService()
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Screen,
|
Screen,
|
||||||
|
@ -261,9 +262,8 @@ import {
|
||||||
File,
|
File,
|
||||||
ApplicationSettings,
|
ApplicationSettings,
|
||||||
} from "@nativescript/core"
|
} from "@nativescript/core"
|
||||||
import { Mediafilepicker } from "nativescript-mediafilepicker"
|
|
||||||
|
|
||||||
import { DateTimePicker, TimePickerField } from "@nativescript/datetimepicker"
|
import { Mediafilepicker } from "nativescript-mediafilepicker"
|
||||||
|
|
||||||
import { mapState, mapActions } from "vuex"
|
import { mapState, mapActions } from "vuex"
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,8 @@
|
||||||
<GridLayout
|
<GridLayout
|
||||||
class="recipeItem"
|
class="recipeItem"
|
||||||
rows="112"
|
rows="112"
|
||||||
columns="112, *"
|
columns="112, 100%"
|
||||||
androidElevation="2"
|
androidElevation="1"
|
||||||
>
|
>
|
||||||
<GridLayout class="imageHolder card" rows="112" columns="112">
|
<GridLayout class="imageHolder card" rows="112" columns="112">
|
||||||
<Image
|
<Image
|
||||||
|
@ -78,11 +78,12 @@
|
||||||
stretch="aspectFill"
|
stretch="aspectFill"
|
||||||
decodeWidth="112"
|
decodeWidth="112"
|
||||||
decodeHeight="112"
|
decodeHeight="112"
|
||||||
|
loadMode="async"
|
||||||
/>
|
/>
|
||||||
<Label
|
<Label
|
||||||
|
v-else
|
||||||
row="0"
|
row="0"
|
||||||
col="0"
|
col="0"
|
||||||
v-else
|
|
||||||
horizontalAlignment="center"
|
horizontalAlignment="center"
|
||||||
class="bx"
|
class="bx"
|
||||||
fontSize="56"
|
fontSize="56"
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<Page @loaded="initializePage" @unloaded="hideInfo">
|
<Page @loaded="initializePage" @unloaded="hideInfo">
|
||||||
<ActionBar height="136" margin="0" flat="true">
|
<ActionBar height="112" margin="0" flat="true">
|
||||||
<GridLayout rows="24, 64, 48" columns="auto, *, auto,auto, auto">
|
<GridLayout rows="64, 48" columns="auto, *, auto,auto, auto">
|
||||||
<Label
|
<Label
|
||||||
row="1"
|
row="0"
|
||||||
col="0"
|
col="0"
|
||||||
class="bx"
|
class="bx"
|
||||||
:text="icon.back"
|
:text="icon.back"
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
@tap="$navigateBack()"
|
@tap="$navigateBack()"
|
||||||
/>
|
/>
|
||||||
<ScrollView
|
<ScrollView
|
||||||
row="2"
|
row="1"
|
||||||
col="1"
|
col="1"
|
||||||
colSpan="3"
|
colSpan="3"
|
||||||
orientation="horizontal"
|
orientation="horizontal"
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
<Label
|
<Label
|
||||||
row="1"
|
row="0"
|
||||||
col="3"
|
col="3"
|
||||||
class="bx"
|
class="bx"
|
||||||
:text="recipe.isFavorite ? icon.heart : icon.heartOutline"
|
:text="recipe.isFavorite ? icon.heart : icon.heartOutline"
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
/>
|
/>
|
||||||
<Label
|
<Label
|
||||||
v-if="!filterTrylater"
|
v-if="!filterTrylater"
|
||||||
row="1"
|
row="0"
|
||||||
col="4"
|
col="4"
|
||||||
class="bx"
|
class="bx"
|
||||||
:text="recipe.tried ? icon.trylaterOutline : icon.trylater"
|
:text="recipe.tried ? icon.trylaterOutline : icon.trylater"
|
||||||
|
@ -40,13 +40,13 @@
|
||||||
/>
|
/>
|
||||||
<Label
|
<Label
|
||||||
v-if="!busy"
|
v-if="!busy"
|
||||||
row="1"
|
row="0"
|
||||||
col="2"
|
col="2"
|
||||||
class="bx"
|
class="bx"
|
||||||
:text="icon.edit"
|
:text="icon.edit"
|
||||||
@tap="editRecipe"
|
@tap="editRecipe"
|
||||||
/>
|
/>
|
||||||
<ActivityIndicator v-else row="1" col="2" :busy="busy" />
|
<ActivityIndicator v-else row="0" col="2" :busy="busy" />
|
||||||
</GridLayout>
|
</GridLayout>
|
||||||
</ActionBar>
|
</ActionBar>
|
||||||
<AbsoluteLayout>
|
<AbsoluteLayout>
|
||||||
|
@ -71,8 +71,9 @@
|
||||||
v-if="recipe.imageSrc"
|
v-if="recipe.imageSrc"
|
||||||
:src="recipe.imageSrc"
|
:src="recipe.imageSrc"
|
||||||
stretch="aspectFill"
|
stretch="aspectFill"
|
||||||
width="100%"
|
decodeWidth="100%"
|
||||||
:height="screenWidth"
|
:decodeHeight="screenWidth"
|
||||||
|
loadMode="async"
|
||||||
/>
|
/>
|
||||||
<Label
|
<Label
|
||||||
v-else
|
v-else
|
||||||
|
@ -296,7 +297,7 @@
|
||||||
<Label
|
<Label
|
||||||
verticalAlignment="top"
|
verticalAlignment="top"
|
||||||
horizontalAlignment="center"
|
horizontalAlignment="center"
|
||||||
class="count orkb"
|
class="count orkm"
|
||||||
col="0"
|
col="0"
|
||||||
:text="index + 1"
|
:text="index + 1"
|
||||||
/>
|
/>
|
||||||
|
@ -338,7 +339,7 @@
|
||||||
<Label
|
<Label
|
||||||
verticalAlignment="top"
|
verticalAlignment="top"
|
||||||
horizontalAlignment="center"
|
horizontalAlignment="center"
|
||||||
class="count square orkb"
|
class="count square orkm"
|
||||||
col="0"
|
col="0"
|
||||||
:text="index + 1"
|
:text="index + 1"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -5,9 +5,6 @@ import store from "./store"
|
||||||
import RadListView from "nativescript-ui-listview/vue"
|
import RadListView from "nativescript-ui-listview/vue"
|
||||||
Vue.use(RadListView)
|
Vue.use(RadListView)
|
||||||
|
|
||||||
import DateTimePicker from "@nativescript/datetimepicker/vue"
|
|
||||||
Vue.use(DateTimePicker)
|
|
||||||
|
|
||||||
Vue.registerElement(
|
Vue.registerElement(
|
||||||
"RadSideDrawer",
|
"RadSideDrawer",
|
||||||
() => require("nativescript-ui-sidedrawer").RadSideDrawer
|
() => require("nativescript-ui-sidedrawer").RadSideDrawer
|
||||||
|
|
5
package-lock.json
generated
|
@ -1117,11 +1117,6 @@
|
||||||
"tslib": "~2.0.0"
|
"tslib": "~2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@nativescript/datetimepicker": {
|
|
||||||
"version": "2.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@nativescript/datetimepicker/-/datetimepicker-2.0.4.tgz",
|
|
||||||
"integrity": "sha512-fhRFx70FYx/ge9W+qg+63UVlZ0jwEWT9TUz8cKeRD8UAhf+8lc0Fu3cHfAiqXw1eTVxTJt7+tRwMjX4h8qVTKA=="
|
|
||||||
},
|
|
||||||
"@nativescript/hook": {
|
"@nativescript/hook": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@nativescript/hook/-/hook-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@nativescript/hook/-/hook-2.0.0.tgz",
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nativescript-community/perms": "^2.1.1",
|
"@nativescript-community/perms": "^2.1.1",
|
||||||
"@nativescript/core": "~7.0.0",
|
"@nativescript/core": "~7.0.0",
|
||||||
"@nativescript/datetimepicker": "^2.0.4",
|
|
||||||
"@nativescript/theme": "^3.0.0",
|
"@nativescript/theme": "^3.0.0",
|
||||||
"@nativescript/webpack": "3.0.0",
|
"@nativescript/webpack": "3.0.0",
|
||||||
"@nativescript/zip": "^5.0.0",
|
"@nativescript/zip": "^5.0.0",
|
||||||
|
|