Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
柴进
/
GoogleNanoBananaApp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ae44a010
authored
2025-12-10 16:37:54 +0800
by
shady
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
图标选择区域面积放大到170,用以显示完整的高度按钮
1 parent
5385b967
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
image_generator.py
image_generator.py
View file @
ae44a01
...
...
@@ -1339,7 +1339,7 @@ class ImageGeneratorWindow(QMainWindow):
self
.
img_scroll
.
setWidgetResizable
(
True
)
self
.
img_scroll
.
setHorizontalScrollBarPolicy
(
Qt
.
ScrollBarAlwaysOn
)
self
.
img_scroll
.
setVerticalScrollBarPolicy
(
Qt
.
ScrollBarAlwaysOff
)
self
.
img_scroll
.
setFixedHeight
(
1
6
0
)
self
.
img_scroll
.
setFixedHeight
(
1
8
0
)
self
.
img_container
=
QWidget
()
self
.
img_layout
=
QHBoxLayout
()
...
...
@@ -3249,7 +3249,7 @@ class StyleDesignerTab(QWidget):
# 获取设置
aspect_ratio
=
self
.
aspect_ratio
.
currentText
()
image_size
=
self
.
image_size
.
currentText
()
model
=
"
imagen-3.0-generate-002
"
# 硬编码使用默认模型
model
=
"
gemini-3-pro-image-preview
"
# 硬编码使用默认模型
# 获取父窗口的 API key
if
not
hasattr
(
self
.
parent_window
,
'api_key'
)
or
not
self
.
parent_window
.
api_key
:
...
...
@@ -3325,7 +3325,7 @@ class StyleDesignerTab(QWidget):
reference_images
=
[],
# 款式设计无参考图
aspect_ratio
=
self
.
aspect_ratio
.
currentText
(),
image_size
=
self
.
image_size
.
currentText
(),
model
=
"
imagen-3.0-generate-002
"
model
=
"
gemini-3-pro-image-preview
"
)
self
.
logger
.
info
(
f
"款式设计已添加到历史记录: {timestamp}"
)
...
...
Please
register
or
sign in
to post a comment