pyside_queue_sqlite/app/style/button_style.py

106 lines
1.6 KiB
Python
Raw Normal View History

2025-09-06 16:06:30 +08:00
BUTTON_STYLE = """
QPushButton {
border: none;
padding: 5px 10px;
font-family: 'Segoe UI', 'Microsoft YaHei';
font-size: 14px;
color: white;
border-radius: 5px;
}
QPushButton:hover {
background-color: rgba(255, 255, 255, 0.1);
}
QPushButton:pressed{
background-color: rgba(255, 255, 255, 0.2);
}
"""
2025-09-13 12:13:52 +08:00
ADD_BUTTON_STYLE = (
BUTTON_STYLE
+ """
2025-09-06 16:06:30 +08:00
QPushButton {
background-color: #0d6efd;
}
QPushButton:hover {
background-color: #0b5ed7;
}
QPushButton:pressed{
background-color: #0a58ca;
}
"""
2025-09-13 12:13:52 +08:00
)
2025-09-06 16:06:30 +08:00
2025-09-13 12:13:52 +08:00
DELETE_BUTTON_STYLE = (
BUTTON_STYLE
+ """
2025-09-06 16:06:30 +08:00
QPushButton {
background-color: #dc3545;
}
QPushButton:hover {
background-color: #bb2d3b;
}
QPushButton:pressed{
background-color: #b02a37;
"""
2025-09-13 12:13:52 +08:00
)
2025-09-06 16:06:30 +08:00
2025-09-13 12:13:52 +08:00
BATCH_DELETE_BUTTON_STYLE = (
BUTTON_STYLE
+ """
2025-09-06 16:06:30 +08:00
QPushButton {
background-color: #fd7e14;
}
QPushButton:hover {
background-color: #e96b10;
}
QPushButton:pressed{
background-color: #dc680f;
}
"""
2025-09-13 12:13:52 +08:00
)
2025-09-06 16:06:30 +08:00
2025-09-13 12:13:52 +08:00
UPDATE_BUTTON_STYLE = (
BUTTON_STYLE
+ """
2025-09-06 16:06:30 +08:00
QPushButton {
background-color: #198754;
}
QPushButton:hover {
background-color: #157347;
}
QPushButton:pressed{
background-color: #146c43;
}
"""
2025-09-13 12:13:52 +08:00
)
2025-09-06 16:06:30 +08:00
2025-09-13 12:13:52 +08:00
IMPORT_BUTTON_STYLE = (
BUTTON_STYLE
+ """
2025-09-06 16:06:30 +08:00
QPushButton {
background-color: #6f42c1;
}
QPushButton:hover {
background-color: #5936a2;
}
QPushButton:pressed{
background-color: #4a2d8e;
}
"""
2025-09-13 12:13:52 +08:00
)
2025-09-06 16:06:30 +08:00
2025-09-13 12:13:52 +08:00
EXPORT_BUTTON_STYLE = (
BUTTON_STYLE
+ """
2025-09-06 16:06:30 +08:00
QPushButton {
background-color: #20c997;
}
QPushButton:hover {
background-color: #1aa179;
}
QPushButton:pressed{
background-color: #198b6d;
}
"""
2025-09-13 12:13:52 +08:00
)