使用PySide6-Fluent-Widgets重构整套UI

添加任务列表组件并优化视频加载逻辑
支持可视化显示字幕区域
整理所有模型, 分别为STTN智能擦除, STTN字幕检测, LAMA, ProPainter, OpenCV
提高处理性能
新增CPU运行模式并优化多语言支持
修复Propainter模式部分视频报错

本次提交新增了CPU运行模式,适用于无GPU加速的场景。同时,优化了多语言支持,新增了日语、韩语、越南语等语言配置文件,并更新了README文档以反映新的运行模式和多语言支持。此外,修复了部分代码逻辑,提升了系统的稳定性和兼容性。
This commit is contained in:
Jason
2025-05-12 16:39:48 +08:00
parent 7049a24883
commit f78e985e1c
62 changed files with 5412 additions and 1520 deletions

11
ui/icon/my_fluent_icon.py Normal file
View File

@@ -0,0 +1,11 @@
from enum import Enum
from qfluentwidgets import getIconColor, Theme, FluentIconBase
class MyFluentIcon(FluentIconBase, Enum):
Stop = "stop"
def path(self, theme=Theme.AUTO):
# getIconColor() return "white" or "black" according to current theme
return f'./ui/icon/{self.value}_{getIconColor(theme)}.svg'

1
ui/icon/stop_black.svg Normal file
View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1747016366598" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2793" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M832 992H192a160 160 0 0 1-160-160V192a160 160 0 0 1 160-160h640a160 160 0 0 1 160 160v640a160 160 0 0 1-160 160zM192 96a96 96 0 0 0-96 96v640a96 96 0 0 0 96 96h640a96 96 0 0 0 96-96V192a96 96 0 0 0-96-96z" fill="#000000" p-id="2794"></path></svg>

After

Width:  |  Height:  |  Size: 580 B

1
ui/icon/stop_white.svg Normal file
View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1747016366598" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2793" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M832 992H192a160 160 0 0 1-160-160V192a160 160 0 0 1 160-160h640a160 160 0 0 1 160 160v640a160 160 0 0 1-160 160zM192 96a96 96 0 0 0-96 96v640a96 96 0 0 0 96 96h640a96 96 0 0 0 96-96V192a96 96 0 0 0-96-96z" fill="#ffffff" p-id="2794"></path></svg>

After

Width:  |  Height:  |  Size: 580 B