Mercurial > minori
comparison src/gui/widgets/sidebar.cpp @ 74:5ccb99bfa605
fix regressions on macOS
for now, we're setting our font sizes using setPixelSize, and later I'll
use a macro or something to make the point size constant across platforms
also anilist user id stuff stopped working :) that's fixed now
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 03 Oct 2023 06:12:43 -0400 |
parents | 5f9bdcea3d01 |
children | d3e9310598b1 |
comparison
equal
deleted
inserted
replaced
73:f1fc8b04bc63 | 74:5ccb99bfa605 |
---|---|
17 setStyleSheet("QListWidget::item:disabled { background: transparent }"); | 17 setStyleSheet("QListWidget::item:disabled { background: transparent }"); |
18 | 18 |
19 SetBackgroundColor(Qt::transparent); | 19 SetBackgroundColor(Qt::transparent); |
20 | 20 |
21 QFont font; | 21 QFont font; |
22 font.setPointSize(9); | 22 font.setPixelSize(12); |
23 setFont(font); | 23 setFont(font); |
24 | 24 |
25 connect(this, &QListWidget::currentRowChanged, this, | 25 connect(this, &QListWidget::currentRowChanged, this, |
26 [this](int index) { emit CurrentItemChanged(RemoveSeparatorsFromIndex(index)); }); | 26 [this](int index) { emit CurrentItemChanged(RemoveSeparatorsFromIndex(index)); }); |
27 } | 27 } |