Skip to content

Commit 6d94887

Browse files
committed
refactor(ui): replace core renderer PIL operations with Qt painting
1 parent eb5367c commit 6d94887

12 files changed

Lines changed: 400 additions & 821 deletions

File tree

‎src/tagstudio/previews/base_preview.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ class BasePreview:
1717
"""A base preview renderer class.
1818
1919
Attributes:
20-
_fallback_icon (str): The name of the fallback icon resource to use, if needed.
2120
has_small_variant (bool): Whether `is_small` renders a different image than the preview.
2221
media_type_name (str): Used for identifying the MediaType.
2322
priority (int): Render priority over other Preview classes.
2423
"""
2524

26-
_fallback_icon: str = ""
2725
has_small_variant: bool = False
2826
media_type_name: str
2927
priority: int = 50
@@ -45,8 +43,3 @@ def render(
4543
dpi_scale: float,
4644
) -> Image | None:
4745
raise NotImplementedError
48-
49-
@classmethod
50-
def icon_name(cls) -> str:
51-
"""Get the name of the fallback icon resource associated with this renderer."""
52-
return cls._fallback_icon or cls.media_type_name

0 commit comments

Comments
 (0)