forked from Support/sp-hydra-veil-gui
183 lines
4.2 KiB
Python
Executable file
183 lines
4.2 KiB
Python
Executable file
SCROLLBAR_CYAN_QSS = """
|
|
QScrollArea {
|
|
background-color: transparent;
|
|
border: none;
|
|
}
|
|
QScrollBar:vertical {
|
|
background-color: rgba(128, 128, 128, 0.3);
|
|
width: 12px;
|
|
border-radius: 6px;
|
|
}
|
|
QScrollBar::handle:vertical {
|
|
background-color: rgba(0, 255, 255, 0.7);
|
|
border-radius: 6px;
|
|
min-height: 20px;
|
|
}
|
|
QScrollBar::handle:vertical:hover {
|
|
background-color: rgba(0, 255, 255, 0.9);
|
|
}
|
|
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
|
|
background-color: transparent;
|
|
height: 0px;
|
|
}
|
|
"""
|
|
|
|
|
|
SCROLLBAR_WHITE_QSS = """
|
|
QScrollArea {
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
QScrollBar:vertical {
|
|
border: 1px solid white;
|
|
background: white;
|
|
width: 10px;
|
|
margin: 0px 0px 0px 0px;
|
|
}
|
|
QScrollBar::handle:vertical {
|
|
background: cyan;
|
|
min-height: 0px;
|
|
}
|
|
QScrollBar::add-line:vertical {
|
|
height: 0px;
|
|
subcontrol-position: bottom;
|
|
subcontrol-origin: margin;
|
|
}
|
|
QScrollBar::sub-line:vertical {
|
|
height: 0px;
|
|
subcontrol-position: top;
|
|
subcontrol-origin: margin;
|
|
}
|
|
"""
|
|
|
|
|
|
TERMINAL_LIST_QSS = """
|
|
QListWidget {
|
|
background-color: #000000;
|
|
color: #00ffff;
|
|
border: 2px solid #00ffff;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
}
|
|
QListWidget::item {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #003333;
|
|
}
|
|
QListWidget::item:hover { background-color: #003333; }
|
|
QListWidget::item:selected { background-color: #006666; color: white; }
|
|
"""
|
|
|
|
|
|
POPUP_BG_QSS = """
|
|
background-color: white;
|
|
border-radius: 10px;
|
|
"""
|
|
|
|
|
|
POPUP_CLOSE_BUTTON_QSS = """
|
|
QPushButton {
|
|
background-color: transparent;
|
|
color: #888888;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
border: none;
|
|
}
|
|
QPushButton:hover {
|
|
color: #ff4d4d;
|
|
}
|
|
"""
|
|
|
|
|
|
POPUP_CANCEL_BUTTON_QSS = """
|
|
QPushButton {
|
|
background-color: #e0e0e0;
|
|
border: none;
|
|
color: #333333;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
"""
|
|
|
|
|
|
POPUP_ACTION_BUTTON_RED_QSS = """
|
|
QPushButton {
|
|
background-color: #ff4d4d;
|
|
border: none;
|
|
color: white;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #ff3333;
|
|
}
|
|
"""
|
|
|
|
|
|
def combobox_style(font_style=""):
|
|
return f"""
|
|
QComboBox {{
|
|
color: black;
|
|
background: #f0f0f0;
|
|
padding: 5px 30px 5px 10px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
min-width: 120px;
|
|
margin-bottom: 10px;
|
|
{font_style}
|
|
}}
|
|
QComboBox:disabled {{
|
|
color: #666;
|
|
background: #e0e0e0;
|
|
}}
|
|
QComboBox::drop-down {{
|
|
border: none;
|
|
width: 30px;
|
|
}}
|
|
QComboBox::down-arrow {{
|
|
image: url(assets/down_arrow.png);
|
|
width: 12px;
|
|
height: 12px;
|
|
}}
|
|
QComboBox QAbstractItemView {{
|
|
color: black;
|
|
background: white;
|
|
selection-background-color: #007bff;
|
|
selection-color: white;
|
|
border: 1px solid #ccc;
|
|
{font_style}
|
|
}}
|
|
"""
|
|
|
|
|
|
def checkbox_style(font_style=""):
|
|
return f"""
|
|
QCheckBox {{
|
|
color: white;
|
|
spacing: 10px;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
font-size: 14px;
|
|
{font_style}
|
|
}}
|
|
QCheckBox::indicator {{
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid #666666;
|
|
border-radius: 3px;
|
|
background-color: #2a2a2a;
|
|
}}
|
|
QCheckBox::indicator:checked {{
|
|
background-color: #4CAF50;
|
|
border: 2px solid #4CAF50;
|
|
}}
|
|
QCheckBox::indicator:unchecked {{
|
|
background-color: #2a2a2a;
|
|
border: 2px solid #666666;
|
|
}}
|
|
QCheckBox::indicator:hover {{
|
|
border: 2px solid #888888;
|
|
}}
|
|
"""
|