mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
wip: Add logic necessary to make widget style config values work
Widget repainting isn't implemented yet, it's necessary to close and reopen shadPS4 after changing widget style
This commit is contained in:
parent
d46af2f8f8
commit
a584a6d92e
@ -119,7 +119,12 @@ void MainWindow::CreateActions() {
|
||||
|
||||
void MainWindow::AddUiWidgets() {
|
||||
// add toolbar widgets
|
||||
QApplication::style()->objectName();
|
||||
std::string widget_style = Config::getWidgetStyle();
|
||||
if (widget_style == "Fusion") {
|
||||
QApplication::setStyle("Fusion");
|
||||
} else if (widget_style == "System") {
|
||||
QApplication::style()->objectName();
|
||||
}
|
||||
ui->toolBar->setObjectName("mw_toolbar");
|
||||
ui->toolBar->addWidget(ui->playButton);
|
||||
ui->toolBar->addWidget(ui->pauseButton);
|
||||
|
Loading…
Reference in New Issue
Block a user