MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / loadUserTheme

Method loadUserTheme

Utils/ThemeManager.py:309–315  ·  view source on GitHub ↗

加载主题目录里的主题 :param cls: :param theme: 文件夹名字

(cls, theme='Default')

Source from the content-addressed store, hash-verified

307
308 @classmethod
309 def loadUserTheme(cls, theme='Default'):
310 """加载主题目录里的主题
311 :param cls:
312 :param theme: 文件夹名字
313 """
314 Setting.setValue('theme', theme)
315 cls.loadTheme()
316
317 @classmethod
318 def loadColourfulTheme(cls, color, widget=None, replaces={}):

Callers 2

setStyleFunction · 0.80

Calls 2

loadThemeMethod · 0.80
setValueMethod · 0.45

Tested by 1

setStyleFunction · 0.64