Skip to content

Commit

Permalink
Qt - Set Fusion on Windows 10
Browse files Browse the repository at this point in the history
Fixes #872
  • Loading branch information
nlogozzo committed Oct 8, 2024
1 parent bc6fd2a commit 424b512
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/html/fr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="region"><div class="contents pagewide">
<p class="p">Cette documentation vous aidera à comprendre comment configurer <span class="app">Parabole</span> pour tirer le meilleur parti de l’application.</p>
<p class="p">Pour obtenir de l’aide, utilisez les <span class="link"><a href="https://github.com/NickvisionApps/Parabolic/issues" title="https://github.com/NickvisionApps/Parabolic/issues">signalements</a></span> ou <span class="link"><a href="https://github.com/NickvisionApps/Parabolic/discussions" title="https://github.com/NickvisionApps/Parabolic/discussions">discussions</a></span> sur Github, ou <span class="link"><a href="https://bit.ly/3GrfEid" title="https://bit.ly/3GrfEid">rejoignez notre salon de discussion Matrix</a></span>.</p>
<p class="p">Les développeurs de Nickvision Parabole ne sont pas responsables de toute utilisation abusive de ce programme qui pourrait violer les lois locales sur le copyright/DMCA. Les utilisateurs se servent de cette application à leurs propres risques.</p>
<p class="p">Les développeurs de Nickvision Parabolic ne sont pas responsables de toute utilisation abusive de ce programme qui pourrait violer les lois locales sur le copyright/DMCA. Les utilisateurs se servent de cette application à leurs propres risques.</p>
<div class="links topiclinks"><div class="inner"><div class="region"><div class="links-divs">
<div class="linkdiv "><a class="linkdiv" href="converter.html" title="Convertisseur"><span class="title">Convertisseur ⚒️</span></a></div>
<div class="linkdiv "><a class="linkdiv" href="newDownload.html" title="Nouveau téléchargement"><span class="title">Nouveau téléchargement 🆕</span></a></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/yelp/fr/index.page
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
<title><media its:translate="no" type="image" src="figures/parabolic.png"/> Aide de Parabole</title>
<p>Cette documentation vous aidera à comprendre comment configurer <app>Parabole</app> pour tirer le meilleur parti de l’application.</p>
<p>Pour obtenir de l’aide, utilisez les <link href="https://github.com/NickvisionApps/Parabolic/issues">signalements</link> ou <link href="https://github.com/NickvisionApps/Parabolic/discussions">discussions</link> sur Github, ou <link href="https://bit.ly/3GrfEid">rejoignez notre salon de discussion Matrix</link>.</p>
<p>Les développeurs de Nickvision Parabole ne sont pas responsables de toute utilisation abusive de ce programme qui pourrait violer les lois locales sur le copyright/DMCA. Les utilisateurs se servent de cette application à leurs propres risques.</p>
<p>Les développeurs de Nickvision Parabolic ne sont pas responsables de toute utilisation abusive de ce programme qui pourrait violer les lois locales sur le copyright/DMCA. Les utilisateurs se servent de cette application à leurs propres risques.</p>
</page>
2 changes: 1 addition & 1 deletion libparabolic/src/controllers/mainwindowcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace Nickvision::TubeConverter::Shared::Controllers
m_appInfo.setVersion({ "2024.10.1-next" });
m_appInfo.setShortName(_("Parabolic"));
m_appInfo.setDescription(_("Download web video and audio"));
m_appInfo.setChangelog("- Added the ability to specify arguments to pass to ffmpeg in converter settings\n- Fixed an issue where the Add Download action was disabled incorrectly\n- Fixed an issue where the app crashed when attempting to use aria2c\n- Fixed an issue where the Qt version of the app did not display subtitle and playlist item rows correctly");
m_appInfo.setChangelog("- Added the ability to specify arguments to pass to ffmpeg in converter settings\n- Fixed an issue where the Add Download action was disabled incorrectly\n- Fixed an issue where the app crashed when attempting to use aria2c\n- Fixed an issue where the Qt version of the app did not display subtitle and playlist item rows correctly\n- Fixed an issue where the Qt version of the app did not respect dark mode on Windows 10\n- Updated yt-dlp to 2024.10.07");
m_appInfo.setSourceRepo("https://github.com/NickvisionApps/Parabolic");
m_appInfo.setIssueTracker("https://github.com/NickvisionApps/Parabolic/issues/new");
m_appInfo.setSupportUrl("https://github.com/NickvisionApps/Parabolic/discussions");
Expand Down
7 changes: 6 additions & 1 deletion org.nickvision.tubeconverter.qt/src/application.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "application.h"
#include <QSysInfo>

using namespace Nickvision::TubeConverter::Shared::Controllers;

Expand All @@ -9,7 +10,11 @@ namespace Nickvision::TubeConverter::QT
m_controller{ std::make_shared<MainWindowController>(std::vector<std::string>(argv, argv + argc)) },
m_mainWindow{ nullptr }
{

//Set Fusion style on Windows 10 for dark mode support
if (QSysInfo::productType() == "windows" && QSysInfo::productVersion() == "10")
{
QApplication::setStyle("Fusion");
}
}

int Application::exec()
Expand Down
2 changes: 2 additions & 0 deletions resources/linux/org.nickvision.tubeconverter.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
<p>- Fixed an issue where the Add Download action was disabled incorrectly</p>
<p>- Fixed an issue where the app crashed when attempting to use aria2c</p>
<p>- Fixed an issue where the Qt version of the app did not display subtitle and playlist item rows correctly</p>
<p>- Fixed an issue where the Qt version of the app did not respect dark mode on Windows 10</p>
<p>- Updated yt-dlp to 2024.10.07</p>
</description>
</release>
</releases>
Expand Down

0 comments on commit 424b512

Please sign in to comment.