fix: polish layout and app branding

This commit is contained in:
2026-04-27 11:15:53 +08:00
parent 8254994df8
commit 20bd25e136
7 changed files with 311 additions and 205 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 800 B

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -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(

View File

@@ -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"]
}
}