代码拉取完成,页面将自动刷新
# -*- coding: utf-8 -*-
# widgets style using setStyleSheet
class LabelStyle:
@staticmethod
def get_title():
return 'QLabel{font-size:16px; padding-left:8px}'
@staticmethod
def get_close():
return 'QLabel:hover{background-color:red}'
@staticmethod
def get_default():
return 'QLabel{padding-left:14px; border-radius:6px;border-width:1px;border-color:black;border-style: solid} QLabel:hover{border-width:2px;}'
@staticmethod
def get_theme(color):
return 'QLabel{padding-left:10px; background-color: %s} QLabel:hover{border-width:1px; border-style: solid}' % color
class ButtonStyle:
@staticmethod
def get_close():
return 'QPushButton:hover{background-color:red}'
@staticmethod
def get_more():
return 'QPushButton::menu-indicator{width:0px}'
class MenuStyle:
@staticmethod
def get_more():
return 'QMenu::item{height:20px; width:100px}'
class WidgetStyle:
@staticmethod
def get_border(name):
return 'QWidget#%s{border:1px solid; border-color:#4f5b62}' % name
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。