图标选择区域面积放大到170,用以显示完整的高度按钮
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -1339,7 +1339,7 @@ class ImageGeneratorWindow(QMainWindow): | ... | @@ -1339,7 +1339,7 @@ class ImageGeneratorWindow(QMainWindow): |
| 1339 | self.img_scroll.setWidgetResizable(True) | 1339 | self.img_scroll.setWidgetResizable(True) |
| 1340 | self.img_scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOn) | 1340 | self.img_scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOn) |
| 1341 | self.img_scroll.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) | 1341 | self.img_scroll.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) |
| 1342 | self.img_scroll.setFixedHeight(160) | 1342 | self.img_scroll.setFixedHeight(180) |
| 1343 | 1343 | ||
| 1344 | self.img_container = QWidget() | 1344 | self.img_container = QWidget() |
| 1345 | self.img_layout = QHBoxLayout() | 1345 | self.img_layout = QHBoxLayout() |
| ... | @@ -3249,7 +3249,7 @@ class StyleDesignerTab(QWidget): | ... | @@ -3249,7 +3249,7 @@ class StyleDesignerTab(QWidget): |
| 3249 | # 获取设置 | 3249 | # 获取设置 |
| 3250 | aspect_ratio = self.aspect_ratio.currentText() | 3250 | aspect_ratio = self.aspect_ratio.currentText() |
| 3251 | image_size = self.image_size.currentText() | 3251 | image_size = self.image_size.currentText() |
| 3252 | model = "imagen-3.0-generate-002" # 硬编码使用默认模型 | 3252 | model = "gemini-3-pro-image-preview" # 硬编码使用默认模型 |
| 3253 | 3253 | ||
| 3254 | # 获取父窗口的 API key | 3254 | # 获取父窗口的 API key |
| 3255 | if not hasattr(self.parent_window, 'api_key') or not self.parent_window.api_key: | 3255 | if not hasattr(self.parent_window, 'api_key') or not self.parent_window.api_key: |
| ... | @@ -3325,7 +3325,7 @@ class StyleDesignerTab(QWidget): | ... | @@ -3325,7 +3325,7 @@ class StyleDesignerTab(QWidget): |
| 3325 | reference_images=[], # 款式设计无参考图 | 3325 | reference_images=[], # 款式设计无参考图 |
| 3326 | aspect_ratio=self.aspect_ratio.currentText(), | 3326 | aspect_ratio=self.aspect_ratio.currentText(), |
| 3327 | image_size=self.image_size.currentText(), | 3327 | image_size=self.image_size.currentText(), |
| 3328 | model="imagen-3.0-generate-002" | 3328 | model="gemini-3-pro-image-preview" |
| 3329 | ) | 3329 | ) |
| 3330 | self.logger.info(f"款式设计已添加到历史记录: {timestamp}") | 3330 | self.logger.info(f"款式设计已添加到历史记录: {timestamp}") |
| 3331 | 3331 | ... | ... |
-
Please register or sign in to post a comment