Document QSS button text limitations in theme docs

Qt QSS doesn't support CSS content property for replacing text.
Document Nerd Font workaround and note that button labels require
code changes.
This commit is contained in:
pax 2026-04-05 05:00:06 -05:00
parent 915afb41df
commit 7c30ec5819

View File

@ -48,6 +48,16 @@ QPushButton:pressed { background-color: #555; }
QPushButton:checked { background-color: #0078d7; } /* Active tab (Browse/Bookmarks/Library), Autoplay, Loop toggles */ QPushButton:checked { background-color: #0078d7; } /* Active tab (Browse/Bookmarks/Library), Autoplay, Loop toggles */
``` ```
**Note:** Qt's QSS does not support the CSS `content` property, so you cannot replace button text (e.g. "Play" → "") via stylesheet alone. However, you can use a Nerd Font to change how unicode characters render:
```css
QPushButton {
font-family: "JetBrainsMono Nerd Font", monospace;
}
```
To use icon buttons, you would need to modify the Python source code directly — the button labels are set in `preview.py` via `QPushButton("Play")` etc.
### Text Inputs ### Text Inputs
```css ```css