v0.31.2: panels pushed in, buttons pushed out; black bpm text

- The now-playing panel and the visualizer are debossed by exactly as
  much as the buttons are embossed: the same rims and outline, flipped
  (theme.deboss_qss / theme.paint_deboss), so things you press stand out
  and things that show you something sit in.
- The bpm button's text is black, enabled or not.
This commit is contained in:
2026-09-28 22:23:34 -07:00
parent 2d0f077af0
commit f280fc5330
4 changed files with 65 additions and 27 deletions
+5 -6
View File
@@ -51,6 +51,9 @@ TILE_STYLE = """
QFrame#transportBox QToolButton, QFrame#transportBox QPushButton {
border: none; background: transparent; border-radius: 6px;
}
QFrame#transportBox QPushButton, QFrame#transportBox QPushButton:disabled {
color: black;
}
QFrame#transportBox[tiles="true"] QToolButton:hover {
background: rgba(0, 0, 0, 22);
}
@@ -61,12 +64,8 @@ QFrame#transportBox[tiles="true"] QToolButton:pressed {
def _nowplaying_style(bg: QColor) -> str:
return f"""
QFrame#nowPlayingBox {{
background: {bg.name()};
border-radius: 8px;
}}
"""
"""Debossed: pushed in as far as the buttons stand out."""
return theme.deboss_qss("QFrame#nowPlayingBox", bg, radius=8)
# Title sits this many points above the artist/album line, both following the
# UI-scale app font (see theme.UI_SCALES).