forked from Support/sp-hydra-veil-gui
67 lines
2 KiB
Python
67 lines
2 KiB
Python
|
|
|
|
def get_message_style(message: str):
|
|
"""Returns the Gothic Dark CSS for the label based on text length."""
|
|
# Determine font size: 24px for short messages, 16px for long ones
|
|
font_size = 24 if len(message) < 150 else 16
|
|
|
|
return f"""
|
|
QLabel {{
|
|
color: #33ff33;
|
|
font-size: {font_size}px;
|
|
background: transparent;
|
|
border: none;
|
|
font-family: 'Georgia', serif;
|
|
}}
|
|
"""
|
|
|
|
|
|
GOTHIC_DARK_THEME = """
|
|
QDialog {
|
|
background-color: #000000;
|
|
border-radius: 20px;
|
|
}
|
|
QScrollArea {
|
|
background-color: #000000;
|
|
border: none;
|
|
}
|
|
QLabel {
|
|
color: #33ff33;
|
|
font-size: 16px;
|
|
background: transparent;
|
|
border: none;
|
|
font-family: 'Georgia', serif;
|
|
}
|
|
QPushButton {
|
|
color: white;
|
|
font-size: 20px;
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
min-height: 50px;
|
|
}
|
|
"""
|
|
|
|
|
|
CORPORATE_PUNK_DYING_ROT = """
|
|
QPushButton {
|
|
background-color: #0a0d0a; /* Deep, muddy 'decayed earth' black */
|
|
color: #33ff33; /* The forced, sterile corporate neon */
|
|
border: 2px solid #1a331a; /* Dull, corroded green border */
|
|
border-radius: 4px; /* Sharper edges feel more industrial/corporate */
|
|
font-family: 'Georgia', serif;
|
|
font-weight: bold;
|
|
font-size: 18px;
|
|
padding: 10px 20px;
|
|
min-height: 50px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #151a15; /* Slightly lighter, like a failing light */
|
|
color: #ffffff; /* Clinical, sterile white */
|
|
border: 2px solid #33ff33; /* The neon 'activates' - forced corporate perfection */
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #050705; /* Sinks back into the void */
|
|
color: #1a331a; /* Text fades into the rot */
|
|
border: 2px solid #000000; /* Border vanishes into the dark */
|
|
}
|
|
"""
|