initial fluent-widgets ui

This commit is contained in:
2025-08-14 18:45:16 +08:00
parent 746e83ab23
commit 4c66886257
1198 changed files with 805339 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# coding: utf-8
from PySide6.QtCore import QTranslator, QLocale
class FluentTranslator(QTranslator):
""" Translator of fluent widgets """
def __init__(self, locale: QLocale = None, parent=None):
super().__init__(parent=parent)
self.load(locale or QLocale())
def load(self, locale: QLocale):
""" load translation file """
super().load(f":/qfluentwidgets/i18n/qfluentwidgets.{locale.name()}.qm")