mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
stylesheets: UI Colors fixes
This commit is contained in:
parent
a822d990d2
commit
ee98683538
7 changed files with 32 additions and 23 deletions
|
|
@ -288,7 +288,7 @@ void rpcs3_app::OnChangeStyleSheetRequest(const QString& sheetFilePath)
|
|||
if (sheetFilePath == "")
|
||||
{
|
||||
// toolbar color stylesheet
|
||||
QColor tbc = guiSettings->GetValue(GUI::mw_toolBarColor).value<QColor>();
|
||||
QColor tbc = GUI::mw_tool_bar_color;
|
||||
QString style_toolbar = QString(
|
||||
"QLineEdit#mw_searchbar { margin-left:14px; background-color: rgba(%1, %2, %3, %4); }"
|
||||
"QToolBar#mw_toolbar { background-color: rgba(%1, %2, %3, %4); }"
|
||||
|
|
@ -298,24 +298,30 @@ void rpcs3_app::OnChangeStyleSheetRequest(const QString& sheetFilePath)
|
|||
.arg(tbc.red() - 20).arg(tbc.green() - 20).arg(tbc.blue() - 20).arg(tbc.alpha() - 20);
|
||||
|
||||
// toolbar icon color stylesheet
|
||||
QColor tic = guiSettings->GetValue(GUI::mw_toolIconColor).value<QColor>();
|
||||
QColor tic = GUI::mw_tool_icon_color;
|
||||
QString style_toolbar_icons = QString(
|
||||
"QLabel#toolbar_icon_color { color: rgba(%1, %2, %3, %4); }")
|
||||
.arg(tic.red()).arg(tic.green()).arg(tic.blue()).arg(tic.alpha());
|
||||
|
||||
// gamelist toolbar stylesheet
|
||||
QColor gltic = guiSettings->GetValue(GUI::gl_toolIconColor).value<QColor>();
|
||||
QColor gltic = GUI::gl_tool_icon_color;
|
||||
QString style_gamelist_toolbar = QString(
|
||||
"QLineEdit#tb_searchbar { background: transparent; }"
|
||||
"QLabel#gamelist_toolbar_icon_color { color: rgba(%1, %2, %3, %4); }")
|
||||
.arg(gltic.red()).arg(gltic.green()).arg(gltic.blue()).arg(gltic.alpha());
|
||||
|
||||
// gamelist icon color stylesheet
|
||||
QColor glic = GUI::gl_icon_color;
|
||||
QString style_gamelist_icons = QString(
|
||||
"QLabel#gamelist_icon_background_color { color: rgba(%1, %2, %3, %4); }")
|
||||
.arg(glic.red()).arg(glic.green()).arg(glic.blue()).arg(glic.alpha());
|
||||
|
||||
// other objects' stylesheet
|
||||
QString style_rest = QString(
|
||||
"QWidget#header_section { background-color: #ffffff; }"
|
||||
"QLabel#gamegrid_font { font-weight: 600; font-size: 8pt; font-family: Lucida Grande; color: rgba(51, 51, 51, 255); }");
|
||||
|
||||
setStyleSheet(style_toolbar + style_toolbar_icons + style_gamelist_toolbar + style_rest);
|
||||
setStyleSheet(style_toolbar + style_toolbar_icons + style_gamelist_toolbar + style_gamelist_icons + style_rest);
|
||||
}
|
||||
else if (file.open(QIODevice::ReadOnly | QIODevice::Text))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue