mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 01:53:25 -08:00
[Fonts] Migrate DeckList and InterfaceDefault surfaces to theme roles
This commit is contained in:
parent
d4f0b75e87
commit
dd15c1a5f9
45 changed files with 392 additions and 75 deletions
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "tab_developer.h"
|
||||
|
||||
#include "../interface/theme_manager.h"
|
||||
#include "libcockatrice/protocol/pb/response.pb.h"
|
||||
|
||||
#include <QAbstractItemView>
|
||||
|
|
@ -155,7 +156,8 @@ void TabDeveloper::appendSeparatorRow(const QString §ionTitle)
|
|||
const int row = statsTable->rowCount();
|
||||
statsTable->insertRow(row);
|
||||
auto *labelItem = new QTableWidgetItem(sectionTitle);
|
||||
auto font = labelItem->font();
|
||||
// Family comes from the InterfaceDefault theme role; bold stays caller-side.
|
||||
QFont font = themeManager->appFont(AppFont::InterfaceDefault);
|
||||
font.setBold(true);
|
||||
labelItem->setFont(font);
|
||||
labelItem->setFlags(labelItem->flags() & ~Qt::ItemIsSelectable);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue