added strings
This commit is contained in:
parent
f53ed08540
commit
4d9f0b2b31
5 changed files with 21 additions and 17 deletions
|
@ -761,7 +761,7 @@ export default {
|
||||||
let binarySource = File.fromPath(this.cacheImagePath).readSync();
|
let binarySource = File.fromPath(this.cacheImagePath).readSync();
|
||||||
File.fromPath(recipeImage).writeSync(binarySource);
|
File.fromPath(recipeImage).writeSync(binarySource);
|
||||||
this.recipe.imageSrc = recipeImage;
|
this.recipe.imageSrc = recipeImage;
|
||||||
knownFolders.temp().clear();
|
knownFolders.temp().clear()
|
||||||
}
|
}
|
||||||
if (this.recipe.imageSrc) {
|
if (this.recipe.imageSrc) {
|
||||||
if (
|
if (
|
||||||
|
|
|
@ -565,9 +565,6 @@ export default {
|
||||||
const window = Application.android.startActivity.getWindow();
|
const window = Application.android.startActivity.getWindow();
|
||||||
const decorView = window.getDecorView();
|
const decorView = window.getDecorView();
|
||||||
let sdkv = Device.sdkVersion;
|
let sdkv = Device.sdkVersion;
|
||||||
this.appTheme == "Light"
|
|
||||||
? decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR)
|
|
||||||
: decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_DARK_STATUS_BAR);
|
|
||||||
function setColors(color) {
|
function setColors(color) {
|
||||||
window.setStatusBarColor(new Color(color).android);
|
window.setStatusBarColor(new Color(color).android);
|
||||||
sdkv >= 27 && window.setNavigationBarColor(new Color(color).android);
|
sdkv >= 27 && window.setNavigationBarColor(new Color(color).android);
|
||||||
|
@ -584,13 +581,19 @@ export default {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (sdkv >= 27)
|
if (sdkv >= 27)
|
||||||
this.appTheme == "Light"
|
decorView.setSystemUiVisibility(
|
||||||
? decorView.setSystemUiVisibility(
|
this.appTheme == "Light"
|
||||||
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
? View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR |
|
||||||
)
|
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
||||||
: decorView.setSystemUiVisibility(
|
: View.SYSTEM_UI_FLAG_DARK_STATUS_BAR |
|
||||||
View.SYSTEM_UI_FLAG_DARK_NAVIGATION_BAR
|
View.SYSTEM_UI_FLAG_DARK_NAVIGATION_BAR
|
||||||
);
|
);
|
||||||
|
else
|
||||||
|
decorView.setSystemUiVisibility(
|
||||||
|
this.appTheme == "Light"
|
||||||
|
? View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
|
||||||
|
: View.SYSTEM_UI_FLAG_DARK_STATUS_BAR
|
||||||
|
);
|
||||||
},
|
},
|
||||||
onPageLoad(args) {
|
onPageLoad(args) {
|
||||||
const page = args.object;
|
const page = args.object;
|
||||||
|
|
|
@ -603,18 +603,18 @@ export default {
|
||||||
this.$showModal(ActionDialog, {
|
this.$showModal(ActionDialog, {
|
||||||
props: {
|
props: {
|
||||||
title: "shr",
|
title: "shr",
|
||||||
list: ["pht", "rec"],
|
list: ["rec", "pht"],
|
||||||
},
|
},
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
switch (result) {
|
switch (result) {
|
||||||
|
case "rec":
|
||||||
|
this.shareRecipe();
|
||||||
|
break;
|
||||||
case "pht":
|
case "pht":
|
||||||
ImageSource.fromFile(this.recipe.imageSrc).then((res) =>
|
ImageSource.fromFile(this.recipe.imageSrc).then((res) =>
|
||||||
utils.shareImage(res, localize("srpu"))
|
utils.shareImage(res, localize("srpu"))
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case "rec":
|
|
||||||
this.shareRecipe();
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -45,7 +45,7 @@ export default {
|
||||||
},
|
},
|
||||||
cancelButtonText: {
|
cancelButtonText: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: false,
|
||||||
},
|
},
|
||||||
okButtonText: {
|
okButtonText: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
@ -287,5 +287,6 @@
|
||||||
"yesterday": "yesterday",
|
"yesterday": "yesterday",
|
||||||
"yieldQ": "Yield quantity",
|
"yieldQ": "Yield quantity",
|
||||||
"yieldU": "Yield unit",
|
"yieldU": "Yield unit",
|
||||||
"yld": "Yield"
|
"yld": "Yield",
|
||||||
|
"buto": "Backed up to %s"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue