fix: polish layout and app branding
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 800 B After Width: | Height: | Size: 15 KiB |
@@ -54,7 +54,9 @@ pub async fn generate_image(
|
||||
let model = input
|
||||
.model
|
||||
.clone()
|
||||
.filter(|model| !model.trim().is_empty())
|
||||
.or_else(|| provider.image_model.clone())
|
||||
.filter(|model| !model.trim().is_empty())
|
||||
.ok_or_else(|| AppError::Provider("image model is empty".to_string()))?;
|
||||
|
||||
let task = repository::create_generation_task(
|
||||
|
||||
@@ -13,23 +13,23 @@
|
||||
"windows": [
|
||||
{
|
||||
"title": "Image Draw AI",
|
||||
"width": 1100,
|
||||
"height": 760,
|
||||
"minWidth": 900,
|
||||
"minHeight": 620
|
||||
"width": 1280,
|
||||
"height": 1160,
|
||||
"minWidth": 1180,
|
||||
"minHeight": 1100
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
"csp": null,
|
||||
"assetProtocol": {
|
||||
"enable": true,
|
||||
"scope": ["$APPDATA/**"]
|
||||
"scope": ["$APPDATA/**", "$HOME/**", "$PICTURE/**", "$DOWNLOAD/**", "$DESKTOP/**", "$DOCUMENT/**"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"targets": "all",
|
||||
"icon": []
|
||||
"icon": ["icons/icon.png"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user