mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-12 21:53:14 +00:00
* Help - improvement * Adding shadow below icons * Adding keys icon + Update changelog * color according to the selected theme * submenu 'Keys and Shortcuts' * clang * + * remove keys_shortcuts --------- Co-authored-by: ¥IGA <164882787+Xphalnos@users.noreply.github.com>
36 lines
732 B
C++
36 lines
732 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QDesktopServices>
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QPixmap>
|
|
#include <QUrl>
|
|
|
|
namespace Ui {
|
|
class AboutDialog;
|
|
}
|
|
|
|
class AboutDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AboutDialog(QWidget* parent = nullptr);
|
|
~AboutDialog();
|
|
bool eventFilter(QObject* obj, QEvent* event);
|
|
|
|
private:
|
|
Ui::AboutDialog* ui;
|
|
|
|
void preloadImages();
|
|
void updateImagesForCurrentTheme();
|
|
void applyHoverEffect(QLabel* label);
|
|
void removeHoverEffect(QLabel* label);
|
|
|
|
bool isDarkTheme() const;
|
|
|
|
QPixmap originalImages[5];
|
|
QPixmap invertedImages[5];
|
|
};
|