2020-11-10 18:28:48 +00:00
|
|
|
<template>
|
2020-12-07 14:45:00 +00:00
|
|
|
<Page>
|
|
|
|
<StackLayout class="dialogContainer" :class="appTheme">
|
|
|
|
<Label class="dialogTitle orkm" :text="`${title}` | L" />
|
|
|
|
<GridLayout rows="auto, auto" columns="*" class="actionsContainer">
|
|
|
|
<MDButton :rippleColor="rippleColor" :backgroundColor="backgroundColor" row="0" class="actionIcon" src="res://photo" :text="'Photo' | L" @tap="$modal.close('photo')" />
|
|
|
|
<MDButton :rippleColor="rippleColor" :backgroundColor="backgroundColor" row="1" class="actionIcon" src="res://detail" :text="'Recipe' | L" @tap="$modal.close('recipe')" />
|
|
|
|
</GridLayout>
|
|
|
|
</StackLayout>
|
|
|
|
</Page>
|
2020-11-10 18:28:48 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-12-07 14:45:00 +00:00
|
|
|
import {
|
|
|
|
Application
|
|
|
|
} from "@nativescript/core"
|
|
|
|
import {
|
|
|
|
mapState
|
|
|
|
} from "vuex"
|
2020-11-10 18:28:48 +00:00
|
|
|
export default {
|
2020-12-07 14:45:00 +00:00
|
|
|
props: [ "title" ],
|
2020-11-10 18:28:48 +00:00
|
|
|
computed: {
|
2020-12-07 14:45:00 +00:00
|
|
|
...mapState( [ "icon" ] ),
|
2020-11-10 18:28:48 +00:00
|
|
|
appTheme() {
|
|
|
|
return Application.systemAppearance()
|
|
|
|
},
|
|
|
|
rippleColor() {
|
2020-12-07 14:45:00 +00:00
|
|
|
return this.appTheme == "light" ? "rgba(134,142,150,0.2)" : "rgba(206,212,218,0.1)"
|
2020-11-10 18:28:48 +00:00
|
|
|
},
|
|
|
|
backgroundColor() {
|
|
|
|
return this.appTheme == "light" ? "#fff" : "#343a40"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|