|
|
@@ -91,8 +91,8 @@ class PlotPanel(QWidget):
|
|
|
_dark = system_is_dark()
|
|
|
pg.setConfigOptions(
|
|
|
antialias=True,
|
|
|
- background=QColor("#1e1e1e") if _dark else QColor("#ffffff"),
|
|
|
- foreground="w" if _dark else "k",
|
|
|
+ background=QColor("#1a1a2e") if _dark else QColor("#f0f0f8"),
|
|
|
+ foreground=QColor("#ddddff") if _dark else QColor("#1a1a2e"),
|
|
|
)
|
|
|
|
|
|
root = QVBoxLayout(self)
|
|
|
@@ -103,7 +103,7 @@ class PlotPanel(QWidget):
|
|
|
self._btn_bar = QWidget()
|
|
|
self._btn_bar.setObjectName("PlotBtnBar")
|
|
|
self._btn_bar.setStyleSheet(
|
|
|
- "#PlotBtnBar { border-bottom: 1px solid palette(mid); }"
|
|
|
+ "#PlotBtnBar { background: #16162a; border-bottom: 1px solid #333355; }"
|
|
|
)
|
|
|
self._btn_lay = QHBoxLayout(self._btn_bar)
|
|
|
self._btn_lay.setContentsMargins(6, 3, 6, 3)
|
|
|
@@ -434,15 +434,16 @@ class PlotPanel(QWidget):
|
|
|
btn.setFixedHeight(20)
|
|
|
btn.setStyleSheet(
|
|
|
f"QPushButton {{"
|
|
|
- f" color: palette(mid); font-size: 11px;"
|
|
|
+ f" color: #666688; font-size: 11px;"
|
|
|
f" padding: 0px 7px;"
|
|
|
- f" border: 1px solid palette(mid);"
|
|
|
+ f" border: 1px solid #333355;"
|
|
|
f" border-radius: 3px;"
|
|
|
+ f" background: #1e1e38;"
|
|
|
f"}}"
|
|
|
f"QPushButton:checked {{"
|
|
|
f" color: {color}; font-weight: bold;"
|
|
|
f" border-color: {color};"
|
|
|
- f" background: palette(alternateBase);"
|
|
|
+ f" background: #16162a;"
|
|
|
f"}}"
|
|
|
)
|
|
|
btn.toggled.connect(lambda checked, k=key: self._on_row_toggle(k, checked))
|
|
|
@@ -469,15 +470,16 @@ class PlotPanel(QWidget):
|
|
|
btn.setFixedHeight(20)
|
|
|
btn.setStyleSheet(
|
|
|
f"QPushButton {{"
|
|
|
- f" color: palette(mid); font-size: 11px;"
|
|
|
+ f" color: #666688; font-size: 11px;"
|
|
|
f" padding: 0px 7px;"
|
|
|
- f" border: 1px solid palette(mid);"
|
|
|
+ f" border: 1px solid #333355;"
|
|
|
f" border-radius: 3px;"
|
|
|
+ f" background: #1e1e38;"
|
|
|
f"}}"
|
|
|
f"QPushButton:checked {{"
|
|
|
f" color: {color}; font-weight: bold;"
|
|
|
f" border-color: {color};"
|
|
|
- f" background: palette(alternateBase);"
|
|
|
+ f" background: #16162a;"
|
|
|
f"}}"
|
|
|
)
|
|
|
btn.toggled.connect(
|