PDF拆分、合并

This commit is contained in:
2025-06-08 23:55:24 +08:00
parent 0323e92151
commit 7d72f1f0e9
10 changed files with 250 additions and 56 deletions

View File

@@ -616,7 +616,8 @@ class AppCenter(QWidget):
self.apps_container.setVisible(True)
# 计算列数并显示应用卡片
cards_per_row = max(1, self.width() // 350) if self.width() > 0 else 3
# cards_per_row = max(1, self.width() // 350) if self.width() > 0 else 3
cards_per_row = 3
self.display_apps(self.apps, cards_per_row)
# 重置动画状态
@@ -648,7 +649,8 @@ class AppCenter(QWidget):
filtered_apps.append(app)
# 计算列数并显示过滤后的应用
cards_per_row = max(1, self.width() // 350) if self.width() > 0 else 3
# cards_per_row = max(1, self.width() // 350) if self.width() > 0 else 3
cards_per_row = 3
self.display_apps(filtered_apps, cards_per_row)
def filter_by_category(self, category):

View File

@@ -195,41 +195,41 @@ class Home(QWidget):
"color": ("#6366F1", "#4F46E5"), # 紫色
"icon": "word_to_pdf"
},
{
"id": "ocr",
"title": "OCR文字识别",
"desc": "从图片中提取文字内容",
"color": ("#4ADE80", "#22C55E"), # 绿色
"icon": "ocr"
},
{
"id": "image_convert",
"title": "图片格式转换",
"desc": "转换图像文件格式并优化",
"color": ("#F97316", "#EA580C"), # 橙色
"icon": "image_convert"
},
# {
# "id": "ocr",
# "title": "OCR文字识别",
# "desc": "从图片中提取文字内容",
# "color": ("#4ADE80", "#22C55E"), # 绿色
# "icon": "ocr"
# },
# {
# "id": "image_convert",
# "title": "图片格式转换",
# "desc": "转换图像文件格式并优化",
# "color": ("#F97316", "#EA580C"), # 橙色
# "icon": "image_convert"
# },
{
"id": "pdf_merge",
"title": "PDF合并工具",
"desc": "合并多个PDF文件为一个",
"title": "PDF工具",
"desc": "合并多个PDF文件为一个拆分PDF文件为多个文档",
"color": ("#8B5CF6", "#7C3AED"), # 紫色
"icon": "pdf_merge"
},
{
"id": "pdf_split",
"title": "PDF拆分工具",
"desc": "拆分PDF文件为多个文档",
"color": ("#EC4899", "#DB2777"), # 粉色
"icon": "pdf_split"
},
{
"id": "video_compress",
"title": "视频压缩",
"desc": "减小视频文件大小",
"color": ("#3B82F6", "#2563EB"), # 蓝色
"icon": "video_compress"
}
# {
# "id": "pdf_split",
# "title": "PDF拆分工具",
# "desc": "拆分PDF文件为多个文档",
# "color": ("#EC4899", "#DB2777"), # 粉色
# "icon": "pdf_split"
# },
# {
# "id": "video_compress",
# "title": "视频压缩",
# "desc": "减小视频文件大小",
# "color": ("#3B82F6", "#2563EB"), # 蓝色
# "icon": "video_compress"
# }
]
# 每行显示3张卡片