17 lines
374 B
Python
17 lines
374 B
Python
|
|
# coding: utf-8
|
||
|
|
from enum import Enum
|
||
|
|
|
||
|
|
from qfluentwidgets import FluentIconBase, getIconColor, Theme
|
||
|
|
|
||
|
|
|
||
|
|
class Icon(FluentIconBase, Enum):
|
||
|
|
|
||
|
|
GRID = "Grid"
|
||
|
|
MENU = "Menu"
|
||
|
|
TEXT = "Text"
|
||
|
|
PRICE = "Price"
|
||
|
|
EMOJI_TAB_SYMBOLS = "EmojiTabSymbols"
|
||
|
|
|
||
|
|
def path(self, theme=Theme.AUTO):
|
||
|
|
return f":/gallery/images/icons/{self.value}_{getIconColor(theme)}.svg"
|