mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
Qt: include debug tool colors in stylesheet (#3527)
Qt: include debug tool colors in stylesheet
This commit is contained in:
parent
b338c81907
commit
cf83b796e1
11 changed files with 99 additions and 34 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "game_list_grid.h"
|
||||
#include "game_list_grid_delegate.h"
|
||||
#include "gui_settings.h"
|
||||
|
||||
#include <QHeaderView>
|
||||
#include <QLabel>
|
||||
|
@ -18,11 +19,8 @@ game_list_grid::game_list_grid(const QSize& icon_size, const QColor& icon_color,
|
|||
}
|
||||
|
||||
// font by stylesheet
|
||||
QLabel font_dummy;
|
||||
font_dummy.setObjectName("gamegrid_font");
|
||||
font_dummy.ensurePolished();
|
||||
QFont font = font_dummy.font();
|
||||
QColor font_color = font_dummy.palette().color(QPalette::Foreground);
|
||||
QFont font = GUI::get_Label_Font("gamegrid_font");
|
||||
QColor font_color = GUI::get_Label_Color("gamegrid_font");
|
||||
|
||||
grid_item_delegate = new game_list_grid_delegate(item_size, m_margin_factor, m_text_factor, font, font_color, this);
|
||||
setItemDelegate(grid_item_delegate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue