forked from Support/sp-hydra-veil-gui
63 lines
No EOL
1.6 KiB
Python
63 lines
No EOL
1.6 KiB
Python
|
|
|
|
|
|
TICKET_SETTING_STYLE_A = """
|
|
QScrollArea {
|
|
background-color: transparent;
|
|
border: none;
|
|
}
|
|
QScrollArea > QWidget > QWidget {
|
|
background-color: transparent;
|
|
}
|
|
"""
|
|
|
|
|
|
def setting_style_b(font_style: str) -> str:
|
|
return f"""
|
|
QPushButton {{
|
|
background: #00aaff; color: white; border: none;
|
|
border-radius: 5px; font-weight: bold; {font_style}
|
|
}}
|
|
QPushButton:hover {{ background: #0088cc; }}
|
|
"""
|
|
|
|
|
|
def setting_evaluate_style_c(font_style: str) -> str:
|
|
return f"""
|
|
QPushButton {{
|
|
background: #00aaff; color: white; border: none;
|
|
border-radius: 5px; font-weight: bold; {font_style}
|
|
}}
|
|
QPushButton:hover:!disabled {{ background: #0088cc; }}
|
|
QPushButton:disabled {{ background: #666666; color: #bbbbbb; }}
|
|
"""
|
|
|
|
def setting_evaluate_style_d(font_style: str) -> str:
|
|
return f"""
|
|
QPushButton {{
|
|
background: #c0392b; color: white; border: none;
|
|
border-radius: 5px; font-size: 10px; font-weight: bold; {font_style}
|
|
}}
|
|
QPushButton:hover:!disabled {{ background: #a93226; }}
|
|
QPushButton:disabled {{ background: #666666; color: #bbbbbb; }}
|
|
"""
|
|
|
|
|
|
|
|
STOP_SIGN_STYLE = """
|
|
QPushButton {
|
|
background-color: #cc0000;
|
|
color: white;
|
|
font-weight: bold;
|
|
border: 2px solid #8b0000;
|
|
border-radius: 10px;
|
|
padding: 5px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #ff0000;
|
|
border: 2px solid #cc0000;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #8b0000;
|
|
}
|
|
""" |