Fixed acrylic theme editable listwidget

This commit is contained in:
BarsTiger
2022-12-23 10:45:05 +02:00
parent 8a5d2738ab
commit 3b1488c5b5
4 changed files with 36 additions and 7 deletions

View File

@@ -18,6 +18,9 @@ def on_load(ui: Ui_MainWindow, MainWindow: QMainWindow):
ui.menu.setStyleSheet(styles.menupage())
if 'acrylic' in Config.get().theme:
GlobalBlur(MainWindow.winId(), acrylic=True)
ui.edit_first_pads_collection_list.setStyleSheet(styles.editable_lw_b)
ui.edit_second_pads_collection_list.setStyleSheet(styles.editable_lw_b)
ui.edit_collections_paths.setStyleSheet(styles.editable_lw_b)
ui.timer = QtCore.QTimer(MainWindow)
ui.timer.start(100)

View File

@@ -3,8 +3,8 @@ from modules.config import Config
centralwidget_b = """
QWidget {
background-color: rgba(30, 30, 30, 0.1);
color: white;
background-color: rgba(30, 30, 30, 0);
color: rgba(255, 255, 255, 1);
font: 10pt "Segoe UI";
}
@@ -47,7 +47,7 @@ QPushButton {
border-radius:6px;
border-style: solid;
border-color: rgba(48, 48, 48, 0.5);
background-color: rgba(44, 45, 46, 0.3);
background-color: rgba(44, 45, 46, 0.2);
}
QPushButton:hover {
border-width: 2px;
@@ -309,6 +309,32 @@ QListWidget:item:selected {
}
"""
editable_lw_b = """
QListWidget {
border-width: 1px;
border-radius: 15px;
border-style: solid;
border-color: rgba(48, 48, 48);
padding: 10px;
background-color: rgba(100, 100, 100, 0);
font: 10pt "Segoe UI";
}
QListWidget:item {
background-color: rgba(36, 36, 36, 0);
selection-color: rgba(0, 0, 0, 0);
selection-background-color: rgba(0, 0, 0, 0);
}
QListWidget:item:hover {
background-color: rgba(50, 50, 50, 0);
}
QListWidget:item:selected {
color: rgba(0, 0, 0, 0);
background-color: rgba(119, 119, 119, 1);
selection-color: rgba(0, 0, 0, 0);
selection-background-color: rgba(255, 255, 255, 0);
}
"""
centralwidget_g = """
QWidget {
background-color: #1e1e1e;