Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Vers version 4.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Paullux committed Jan 5, 2022
1 parent 3ea7e65 commit e66a985
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
cmake_minimum_required(VERSION 3.5)

if(WIN32)
project(heficience-menu VERSION "4.18")
project(heficience-menu VERSION "4.20")
else()
project(heficience-menu LANGUAGES CXX VERSION "4.18")
project(heficience-menu LANGUAGES CXX VERSION "4.20")
endif()

set(CMAKE_INCLUDE_CURRENT_DIR ON)
Expand Down
2 changes: 1 addition & 1 deletion Linux/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ AppDir:
id: heficience-menu
name: Heficience Menu
icon: Heficience_Icone
version: '4.18'
version: '4.20'
exec: usr/bin/heficience-menu
exec_args: $@
runtime:
Expand Down
2 changes: 1 addition & 1 deletion Windows/Setup-heficience-menu-qt.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Heficience Menu"
#define MyAppVersion "0.4.18"
#define MyAppVersion "4.20"
#define MyAppPublisher "Heficience"
#define MyAppURL "https://www.heficience.com/"
#define MyAppExeName "heficience-menu.exe"
Expand Down
8 changes: 4 additions & 4 deletions src/controlmenumain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ ControlMenuMain::ControlMenuMain(QWidget *parent) :

if (DarkMode) {
ui->DarkMode->toggle();
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=true");
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=true,darkModeInversionAlgorithm=4");
} else {
ui->NormalMode->toggle();
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=false");
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=false,darkModeInversionAlgorithm=0");
}

FirstTime = false;
Expand Down Expand Up @@ -116,7 +116,7 @@ void ControlMenuMain::on_DarkMode_toggled(bool checked)
if (checked) {
mySettings.beginGroup("DarkMode");
mySettings.setValue("DarkMode", true);
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=true");
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=true,darkModeInversionAlgorithm=4");
mySettings.endGroup();
if (!FirstTime) {
QTimer *timer = new QTimer(this);
Expand All @@ -131,7 +131,7 @@ void ControlMenuMain::on_NormalMode_toggled(bool checked)
if (checked) {
mySettings.beginGroup("DarkMode");
mySettings.setValue("DarkMode", false);
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=false");
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=false,darkModeInversionAlgorithm=0");
mySettings.endGroup();
if (!FirstTime) {
QTimer *timer = new QTimer(this);
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ int main(int argc, char *argv[])
mySettings.endGroup();

if (DarkMode) {
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=true");
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=true,darkModeInversionAlgorithm=4");
} else {
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=false");
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--blink-settings=forceDarkModeEnabled=false,darkModeInversionAlgorithm=0");
}

MainWindow w;
Expand Down

0 comments on commit e66a985

Please sign in to comment.