Compare commits

..
Author SHA1 Message Date
Jeremy Rimpo ad18983546 Set 'fusion' as base style
- Fusion already implements light/dark mode switching, the original 'windowsvista' style does not
- Applying the stylesheet on top of Fusion colors the titlebar based on the OS setting
2023-11-29 10:00:02 -06:00
Jeremy Rimpo aa381255a9 Use Windows settings to determine titlebar color 2023-11-29 00:09:00 -06:00
5 changed files with 10 additions and 11 deletions
+2 -3
View File
@@ -148,9 +148,8 @@ void CategoriesDialog::commitChanges()
for (int i = 0; i < ui->categoriesTable->rowCount(); ++i) {
int index = ui->categoriesTable->verticalHeader()->logicalIndex(i);
QVariantList nexusData;
if (ui->categoriesTable->item(index, 3) != nullptr)
nexusData = ui->categoriesTable->item(index, 3)->data(Qt::UserRole).toList();
QVariantList nexusData =
ui->categoriesTable->item(index, 3)->data(Qt::UserRole).toList();
std::vector<CategoryFactory::NexusCategory> nexusCats;
for (auto nexusCat : nexusData) {
nexusCats.push_back(CategoryFactory::NexusCategory(
+2
View File
@@ -154,6 +154,7 @@ MOApplication::MOApplication(int& argc, char** argv) : QApplication(argc, argv)
updateStyle(file);
});
setStyle("fusion");
m_defaultStyle = style()->objectName();
setStyle(new ProxyStyle(style()));
addDllsToPath();
@@ -354,6 +355,7 @@ int MOApplication::run(MOMultiProcess& multiProcess)
log::debug("displaying main window");
mainWindow.show();
mainWindow.activateWindow();
splash.close();
tt.stop();
+2 -4
View File
@@ -1245,6 +1245,8 @@ QVariant PluginList::fontData(const QModelIndex& modelIndex) const
result.setWeight(QFont::Bold);
if (m_ESPs[index].isLightFlagged || m_ESPs[index].hasLightExtension)
result.setItalic(true);
if (m_ESPs[index].hasNoRecords)
result.setStrikeOut(true);
return result;
}
@@ -1474,10 +1476,6 @@ QVariant PluginList::iconData(const QModelIndex& modelIndex) const
result.append(":/MO/gui/awaiting");
}
if (esp.hasNoRecords) {
result.append(":/MO/gui/unchecked-checkbox");
}
if (esp.isOverlayFlagged) {
result.append(":/MO/gui/instance_switch");
}
+1 -1
View File
@@ -104,7 +104,7 @@ function setupTooptips() {
switch (tutorialControl.getTabName("tabWidget")) {
case "espTab":
tooltipWidget("espList", qsTr("Plugins (esp/esm/esl files) of the mods in the current profile. They need to be checked to be loaded."))
tooltipWidget("sortButton", qsTr("Automatically sort plugins using the bundled LOOT application."))
tooltipWidget("bossButton", qsTr("Automatically sort plugins using the bundled LOOT application."))
tooltipWidget("restoreButton", qsTr("Restore a backup of your plugin list order."))
tooltipWidget("saveButton", qsTr("Save a backup of your plugin list order."))
tooltipWidget("activePluginsCounter", qsTr("Counter of your total active plugins. Hover to see a breakdown of plugin types."))
+3 -3
View File
@@ -3,14 +3,14 @@
// If VS_FF_PRERELEASE is not set, MO labels the build as a release and uses VER_FILEVERSION to determine version number.
// Otherwise, if letters are used in VER_FILEVERSION_STR, uses the full MOBase::VersionInfo parser
// Otherwise, uses the numbers from VER_FILEVERSION and sets the release type as pre-alpha
#define VER_FILEVERSION 2,5,1
#define VER_FILEVERSION_STR "2.5.1rc1\0"
#define VER_FILEVERSION 2,5,0
#define VER_FILEVERSION_STR "2.5.0\0"
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_FILEVERSION
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS VS_FF_PRERELEASE
FILEFLAGS (0)
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE (0)