initial fluent-widgets ui
This commit is contained in:
25
app/common/style_sheet.py
Normal file
25
app/common/style_sheet.py
Normal file
@ -0,0 +1,25 @@
|
||||
# coding: utf-8
|
||||
from enum import Enum
|
||||
|
||||
from qfluentwidgets import StyleSheetBase, Theme, isDarkTheme, qconfig
|
||||
|
||||
|
||||
class StyleSheet(StyleSheetBase, Enum):
|
||||
""" Style sheet """
|
||||
|
||||
LINK_CARD = "link_card"
|
||||
SAMPLE_CARD = "sample_card"
|
||||
HOME_INTERFACE = "home_interface"
|
||||
ICON_INTERFACE = "icon_interface"
|
||||
VIEW_INTERFACE = "view_interface"
|
||||
SETTING_INTERFACE = "setting_interface"
|
||||
GALLERY_INTERFACE = "gallery_interface"
|
||||
NAVIGATION_VIEW_INTERFACE = "navigation_view_interface"
|
||||
|
||||
SYSTEM_INTERFACE = "system_interface"
|
||||
|
||||
def path(self, theme=Theme.AUTO):
|
||||
theme = qconfig.theme if theme == Theme.AUTO else theme
|
||||
#D:\Downloads\PyQt-Fluent-Widgets-PySide6\app\resource\qss\dark\view_interface.qss
|
||||
#return f"./app/gallery/qss/{theme.value.lower()}/{self.value}.qss"
|
||||
return f"./app/resource/qss/{theme.value.lower()}/{self.value}.qss"
|
||||
Reference in New Issue
Block a user