mirror of
https://github.com/UN-GCPDS/qt-material.git
synced 2025-01-13 16:42:56 +08:00
Merge branch 'master' of github.com:UN-GCPDS/qt-material
This commit is contained in:
commit
3590d89f89
@ -3,6 +3,7 @@ import sys
|
||||
import logging
|
||||
import base64
|
||||
from xml.etree import ElementTree
|
||||
from pathlib import Path
|
||||
|
||||
from qt_material.resources import ResourseGenerator, RESOURCES_PATH
|
||||
GUI = True
|
||||
@ -377,3 +378,8 @@ class QtStyleTools:
|
||||
button = getattr(self.dock_theme, f'pushButton_{color}')
|
||||
button.clicked.connect(self.set_color(parent, color))
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
def get_hook_dirs():
|
||||
package_folder = Path(__file__).parent
|
||||
return [str(package_folder.absolute())]
|
19
qt_material/hook-qt_material.py
Normal file
19
qt_material/hook-qt_material.py
Normal file
@ -0,0 +1,19 @@
|
||||
import qt_material
|
||||
from pathlib import Path
|
||||
|
||||
qt_material_path = Path(qt_material.__file__).parent
|
||||
|
||||
fonts_path = qt_material_path / "fonts"
|
||||
datas = [(str(fonts_path), "qt_material/fonts")]
|
||||
|
||||
themes_path = qt_material_path / "themes"
|
||||
datas += [(str(themes_path), "qt_material/themes")]
|
||||
|
||||
dock_path = qt_material_path / "dock_theme.ui"
|
||||
datas += [(str(dock_path), "qt_material")]
|
||||
|
||||
template_path = qt_material_path / "material.css.template"
|
||||
datas += [(str(template_path), "qt_material")]
|
||||
|
||||
resources_path = qt_material_path / "resources"
|
||||
datas += [(str(resources_path), "qt_material/resources")]
|
Loading…
x
Reference in New Issue
Block a user