tooltips
Signed-off-by: Tayou <git@tayou.org>
This commit is contained in:
parent
4f795eb6ef
commit
d70be5121c
12 changed files with 189 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
/*
|
||||
* Prism Launcher - Minecraft Launcher
|
||||
* Copyright (C) 2022 Tayou <git@tayou.org>
|
||||
* Copyright (C) 2024 Tayou <git@tayou.org>
|
||||
* Copyright (C) 2024 TheKodeToad <TheKodeToad@proton.me>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
|
@ -35,7 +35,6 @@
|
|||
*/
|
||||
#include "SystemTheme.h"
|
||||
#include <QApplication>
|
||||
#include <QDebug>
|
||||
#include <QStyle>
|
||||
#include <QStyleFactory>
|
||||
#include "HintOverrideProxyStyle.h"
|
||||
|
@ -100,6 +99,23 @@ QString SystemTheme::name()
|
|||
}
|
||||
}
|
||||
|
||||
QString SystemTheme::tooltip()
|
||||
{
|
||||
if (themeName.toLower() == "windowsvista") {
|
||||
return QObject::tr("Widget style trying to look like your win32 theme");
|
||||
} else if (themeName.toLower() == "windows") {
|
||||
return QObject::tr("Windows 9x inspired widget style");
|
||||
} else if (themeName.toLower() == "windows11") {
|
||||
return QObject::tr("WinUI 3 inspired Qt widget style");
|
||||
} else if (themeName.toLower() == "fusion") {
|
||||
return QObject::tr("The default Qt widget style");
|
||||
} else if (themeName.toLower() == "system") {
|
||||
return QObject::tr("Your current system theme") + " (" + widgetTheme + ")";
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
QString SystemTheme::qtTheme()
|
||||
{
|
||||
return widgetTheme;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue