mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-20 19:44:30 -04:00
Edit configure_audio.cpp
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
||||
// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include <map>
|
||||
@@ -18,12 +19,13 @@
|
||||
#include "citron/configuration/configure_audio.h"
|
||||
#include "citron/configuration/shared_translation.h"
|
||||
#include "citron/configuration/shared_widget.h"
|
||||
#include "citron/theme.h" // Added for theming
|
||||
#include "citron/uisettings.h"
|
||||
|
||||
ConfigureAudio::ConfigureAudio(const Core::System& system_,
|
||||
std::shared_ptr<std::vector<ConfigurationShared::Tab*>> group_,
|
||||
const ConfigurationShared::Builder& builder, QWidget* parent)
|
||||
: Tab(group_, parent), ui(std::make_unique<Ui::ConfigureAudio>()), system{system_} {
|
||||
: Tab(group_, parent), ui(std::make_unique<Ui::ConfigureAudio>()), system{system_} {
|
||||
ui->setupUi(this);
|
||||
Setup(builder);
|
||||
|
||||
@@ -276,3 +278,16 @@ void ConfigureAudio::InitializeAudioSinkComboBox() {
|
||||
void ConfigureAudio::RetranslateUI() {
|
||||
ui->retranslateUi(this);
|
||||
}
|
||||
|
||||
QString ConfigureAudio::GetTemplateStyleSheet() const {
|
||||
return m_template_style_sheet;
|
||||
}
|
||||
|
||||
void ConfigureAudio::SetTemplateStyleSheet(const QString& sheet) {
|
||||
if (m_template_style_sheet == sheet) {
|
||||
return;
|
||||
}
|
||||
m_template_style_sheet = sheet;
|
||||
setStyleSheet(sheet);
|
||||
emit TemplateStyleSheetChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user