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();
|
||||
File.fromPath(recipeImage).writeSync(binarySource);
|
||||
this.recipe.imageSrc = recipeImage;
|
||||
knownFolders.temp().clear();
|
||||
knownFolders.temp().clear()
|
||||
}
|
||||
if (this.recipe.imageSrc) {
|
||||
if (
|
||||
|
|
|
@ -565,9 +565,6 @@ export default {
|
|||
const window = Application.android.startActivity.getWindow();
|
||||
const decorView = window.getDecorView();
|
||||
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) {
|
||||
window.setStatusBarColor(new Color(color).android);
|
||||
sdkv >= 27 && window.setNavigationBarColor(new Color(color).android);
|
||||
|
@ -584,13 +581,19 @@ export default {
|
|||
break;
|
||||
}
|
||||
if (sdkv >= 27)
|
||||
this.appTheme == "Light"
|
||||
? decorView.setSystemUiVisibility(
|
||||
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
||||
)
|
||||
: decorView.setSystemUiVisibility(
|
||||
View.SYSTEM_UI_FLAG_DARK_NAVIGATION_BAR
|
||||
);
|
||||
decorView.setSystemUiVisibility(
|
||||
this.appTheme == "Light"
|
||||
? View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR |
|
||||
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
||||
: View.SYSTEM_UI_FLAG_DARK_STATUS_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) {
|
||||
const page = args.object;
|
||||
|
|
|
@ -603,18 +603,18 @@ export default {
|
|||
this.$showModal(ActionDialog, {
|
||||
props: {
|
||||
title: "shr",
|
||||
list: ["pht", "rec"],
|
||||
list: ["rec", "pht"],
|
||||
},
|
||||
}).then((result) => {
|
||||
switch (result) {
|
||||
case "rec":
|
||||
this.shareRecipe();
|
||||
break;
|
||||
case "pht":
|
||||
ImageSource.fromFile(this.recipe.imageSrc).then((res) =>
|
||||
utils.shareImage(res, localize("srpu"))
|
||||
);
|
||||
break;
|
||||
case "rec":
|
||||
this.shareRecipe();
|
||||
break;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
|
@ -45,7 +45,7 @@ export default {
|
|||
},
|
||||
cancelButtonText: {
|
||||
type: String,
|
||||
required: true,
|
||||
required: false,
|
||||
},
|
||||
okButtonText: {
|
||||
type: String,
|
||||
|
|
|
@ -287,5 +287,6 @@
|
|||
"yesterday": "yesterday",
|
||||
"yieldQ": "Yield quantity",
|
||||
"yieldU": "Yield unit",
|
||||
"yld": "Yield"
|
||||
"yld": "Yield",
|
||||
"buto": "Backed up to %s"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue