initial fluent-widgets ui
This commit is contained in:
16
app/common/icon.py
Normal file
16
app/common/icon.py
Normal file
@ -0,0 +1,16 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user