enrecipes/app/components/modal/ShareChooser.vue

60 lines
2.1 KiB
Vue
Raw Normal View History

2020-11-10 18:28:48 +00:00
<template>
<Page>
<StackLayout class="dialogContainer" :class="appTheme">
2021-01-23 17:20:15 +00:00
<Label class="er dialogIcon" backgroundColor="#858585" :color="iconColor" :text="icon[helpIcon]" />
<Label class="dialogTitle orkm" :text="`${title}` | L" />
2021-01-13 05:02:48 +00:00
<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')" />
2021-01-23 17:20:15 +00:00
<Label row="0" class="er" :text="icon.img" />
2021-01-13 05:02:48 +00:00
<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')" />
2021-01-23 17:20:15 +00:00
<Label row="0" class="er" :text="icon.text" />
2021-01-13 05:02:48 +00:00
<Label row="1" class="item" :text="'rec' | L" textWrap="true" />
</GridLayout>
2021-01-23 17:20:15 +00:00
<!-- <GridLayout class="shareItem" :backgroundColor="bgColor" row="2" columns="*" rows="auto, auto">
2021-01-13 05:02:48 +00:00
<MDRipple :rippleColor="rippleColor" rowSpan="2" @tap="$modal.close('file')" />
2021-01-23 17:20:15 +00:00
<Label row="0" class="er" :text="icon.zip" />
2021-01-13 05:02:48 +00:00
<Label row="1" class="item" :text="'fil' | L" textWrap="true" />
2021-01-23 17:20:15 +00:00
</GridLayout> -->
2021-01-13 05:02:48 +00:00
</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>
2020-11-10 18:28:48 +00:00
</template>
<script>
import {
Application
} from "@nativescript/core"
import {
mapState
} from "vuex"
2020-11-10 18:28:48 +00:00
export default {
2021-01-13 05:02:48 +00:00
props: [ "title", "helpIcon" ],
2020-11-10 18:28:48 +00:00
computed: {
...mapState( [ "icon" ] ),
2020-11-10 18:28:48 +00:00
appTheme() {
return Application.systemAppearance()
},
2021-01-13 05:02:48 +00:00
isLightMode() {
return this.appTheme == "light"
},
2020-11-10 18:28:48 +00:00
rippleColor() {
2021-01-23 17:20:15 +00:00
return "rgba(133,133,133,0.2)"
2021-01-13 05:02:48 +00:00
},
iconColor() {
2021-01-23 17:20:15 +00:00
return this.isLightMode ? "#f0f0f0" : "#1A1A1A"
2020-11-10 18:28:48 +00:00
},
2021-01-13 05:02:48 +00:00
bgColor() {
2021-01-23 17:20:15 +00:00
return this.isLightMode ? "#fff" : "#292929"
2020-11-10 18:28:48 +00:00
},
},
}
</script>