Files
LorenEteval_Furious/Furious/Qt/__init__.py
T
Loren Eteval 0f8a792a6f feat: add smooth theme transitions
Apply resolved themes immediately beneath a 500 ms snapshot cross-fade shared by visible top-level windows. Keep interruption, resize, shutdown, and reduced-animation paths deterministic, with real Qt lifecycle coverage.

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
2026-08-29 21:05:58 +08:00

178 lines
4.5 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright (C) 2024–present Loren Eteval & contributors <loren.eteval@proton.me>
#
# This file is part of Furious.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Expose reusable Qt helpers and application-aware widgets."""
from __future__ import annotations
from .AppStyleSheet import AppStyleSheet
from .DynamicTheme import AppHue
from .DynamicTranslate import (
ABBR_TO_LANGUAGE,
LANGUAGE_TO_ABBR,
SUPPORTED_LANGUAGE,
gettext,
)
from .EditorWidgets import (
addEditorGridBinding,
addEditorGridFullRow,
GuiEditorItemBasicRemark,
GuiEditorItemProxyHttp,
GuiEditorItemProxySocks,
GuiEditorItemTextSwitch,
GuiEditorItemTextComboBox,
GuiEditorItemTextInput,
GuiEditorItemTextSpinBox,
GuiEditorWidgetQDialog,
GuiEditorWidgetQGroupBox,
GuiEditorWidgetQWidget,
)
from .QtGui import (
AppQAction,
AppQActionGroup,
AppQIcon,
AppQSeparator,
bootstrapIcon,
bootstrapIconMask,
bootstrapIconWhite,
bootstrapIconWithOpacity,
)
from .QtNetwork import AppQNetworkAccessManager
from .Signals import connectWeakly, singleShotWeakly
from .ThemeTransition import ThemeTransition
from .QtWidgets import (
AppQComboBox,
AppQComboBoxSeparatorDelegate,
AppQDialog,
AppQTransientDialog,
AppQDialogButtonBox,
AppQGroupBox,
AppQHeaderView,
AppQIconTextPushButton,
AppQLabel,
AppQLineEdit,
AppQListView,
AppQMainWindow,
AppQMenu,
AppQMenuBar,
AppQMenuPushButton,
AppQMessageBox,
AppQPushButton,
AppQSpinBox,
AppQSwitch,
AppQTableView,
AppQTabWidget,
AppQToolBar,
IconTextPushButton,
MBoxDirectRulesNotAllowed,
MBoxNewChangesNextTime,
MBoxQuestionDelete,
MBoxUnrecognizedConfig,
moveToCenter,
showMBoxDirectRulesNotAllowed,
showMBoxNewChangesNextTime,
showMBoxUnrecognizedConfig,
)
from .TextEditor import (
AppQPlainTextEdit,
AppQTextBrowser,
DraculaJSONTextEditor,
DraculaTextBrowser,
DraculaTextEditor,
)
from .TextEditorTheme import (
DraculaEditorTheme,
DraculaJSONSyntaxHighlighter,
DraculaLoggerSyntaxHighlighter,
configureEditorLogMetadata,
)
from .HttpGetManager import HttpGetManager
__all__ = [
'addEditorGridBinding',
'addEditorGridFullRow',
'ABBR_TO_LANGUAGE',
'AppHue',
'AppQAction',
'AppQActionGroup',
'AppQComboBox',
'AppQComboBoxSeparatorDelegate',
'AppQDialog',
'AppQTransientDialog',
'AppQDialogButtonBox',
'AppQGroupBox',
'AppQHeaderView',
'AppQIconTextPushButton',
'AppQIcon',
'AppQLabel',
'AppQLineEdit',
'AppQListView',
'AppQMainWindow',
'AppQMenu',
'AppQMenuBar',
'AppQMenuPushButton',
'AppQMessageBox',
'AppQNetworkAccessManager',
'AppQPlainTextEdit',
'AppQPushButton',
'AppQSeparator',
'AppQSpinBox',
'AppQSwitch',
'AppQTabWidget',
'AppQTableView',
'AppQTextBrowser',
'AppQToolBar',
'AppStyleSheet',
'DraculaEditorTheme',
'DraculaJSONSyntaxHighlighter',
'DraculaJSONTextEditor',
'DraculaLoggerSyntaxHighlighter',
'DraculaTextBrowser',
'DraculaTextEditor',
'GuiEditorItemBasicRemark',
'GuiEditorItemProxyHttp',
'GuiEditorItemProxySocks',
'GuiEditorItemTextSwitch',
'GuiEditorItemTextComboBox',
'GuiEditorItemTextInput',
'GuiEditorItemTextSpinBox',
'GuiEditorWidgetQDialog',
'GuiEditorWidgetQGroupBox',
'GuiEditorWidgetQWidget',
'IconTextPushButton',
'LANGUAGE_TO_ABBR',
'MBoxDirectRulesNotAllowed',
'MBoxNewChangesNextTime',
'MBoxQuestionDelete',
'MBoxUnrecognizedConfig',
'SUPPORTED_LANGUAGE',
'ThemeTransition',
'HttpGetManager',
'bootstrapIcon',
'bootstrapIconMask',
'bootstrapIconWhite',
'bootstrapIconWithOpacity',
'configureEditorLogMetadata',
'connectWeakly',
'gettext',
'moveToCenter',
'singleShotWeakly',
'showMBoxDirectRulesNotAllowed',
'showMBoxNewChangesNextTime',
'showMBoxUnrecognizedConfig',
]