59 lines
2.2 KiB
Vue
59 lines
2.2 KiB
Vue
<template>
|
|
<Page>
|
|
<StackLayout class="dialogContainer" :class="appTheme">
|
|
<Label class="bx dialogIcon flip" backgroundColor="#adb5bd" :color="iconColor" :text="icon[helpIcon]" />
|
|
<Label class="dialogTitle orkm" :text="`${title}` | L" />
|
|
<GridLayout rows="auto, auto, auto" columns="*" class="actionsContainer">
|
|
|
|
<GridLayout class="shareItem" :backgroundColor="bgColor" row="0" columns="*" rows="auto, auto">
|
|
<MDRipple :rippleColor="rippleColor" rowSpan="2" @tap="$modal.close('photo')" />
|
|
<Label row="0" class="bx" :text="icon.image" />
|
|
<Label row="1" class="item" :text="'pht' | L" textWrap="true" />
|
|
</GridLayout>
|
|
<GridLayout class="shareItem" :backgroundColor="bgColor" row="1" columns="*" rows="auto, auto">
|
|
<MDRipple :rippleColor="rippleColor" rowSpan="2" @tap="$modal.close('recipe')" />
|
|
<Label row="0" class="bx" :text="icon.text" />
|
|
<Label row="1" class="item" :text="'rec' | L" textWrap="true" />
|
|
</GridLayout>
|
|
<GridLayout class="shareItem" :backgroundColor="bgColor" row="2" columns="*" rows="auto, auto">
|
|
<MDRipple :rippleColor="rippleColor" rowSpan="2" @tap="$modal.close('file')" />
|
|
<Label row="0" class="bx" :text="icon.zip" />
|
|
<Label row="1" class="item" :text="'fil' | L" textWrap="true" />
|
|
</GridLayout>
|
|
</GridLayout>
|
|
<GridLayout rows="auto" columns="*, auto" class="actionsContainer">
|
|
<MDButton :rippleColor="rippleColor" variant="text" col="1" class="action orkm" :text="'cBtn' | L" @tap="$modal.close()" />
|
|
</GridLayout>
|
|
</StackLayout>
|
|
</Page>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
Application
|
|
} from "@nativescript/core"
|
|
import {
|
|
mapState
|
|
} from "vuex"
|
|
export default {
|
|
props: [ "title", "helpIcon" ],
|
|
computed: {
|
|
...mapState( [ "icon" ] ),
|
|
appTheme() {
|
|
return Application.systemAppearance()
|
|
},
|
|
isLightMode() {
|
|
return this.appTheme == "light"
|
|
},
|
|
rippleColor() {
|
|
return this.isLightMode ? "rgba(134,142,150,0.2)" : "rgba(206,212,218,0.1)"
|
|
},
|
|
iconColor() {
|
|
return this.isLightMode ? "#f1f3f5" : "#212529"
|
|
},
|
|
bgColor() {
|
|
return this.isLightMode ? "#fff" : "#343a40"
|
|
},
|
|
},
|
|
}
|
|
</script>
|