diff --git a/Acrylic_Dialog.pro.user b/Acrylic_Dialog.pro.user new file mode 100644 index 0000000..61a5d14 --- /dev/null +++ b/Acrylic_Dialog.pro.user @@ -0,0 +1,319 @@ + + + + + + EnvironmentId + {f5338de7-a70c-46ca-9eb0-741ca5e47cf3} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + false + true + false + 0 + true + true + 0 + 8 + true + false + 1 + true + true + true + *.md, *.MD, Makefile + false + true + + + + ProjectExplorer.Project.PluginSettings + + + true + false + true + true + true + true + + + 0 + true + + -fno-delayed-template-parsing + + true + Builtin.BuildSystem + + true + true + Builtin.DefaultTidyAndClazy + 8 + + + + true + + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop Qt 6.1.2 MSVC2019 64bit + Desktop Qt 6.1.2 MSVC2019 64bit + qt.qt6.612.win64_msvc2019_64_kit + 0 + 0 + 0 + + 0 + E:\Documents\Coding Repositories\Qt Default Repository\build-Acrylic_Dialog-Desktop_Qt_6_1_2_MSVC2019_64bit-Debug + E:/Documents/Coding Repositories/Qt Default Repository/build-Acrylic_Dialog-Desktop_Qt_6_1_2_MSVC2019_64bit-Debug + + + true + QtProjectManager.QMakeBuildStep + false + + + + true + Qt4ProjectManager.MakeStep + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + clean + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + + + E:\Documents\Coding Repositories\Qt Default Repository\build-Acrylic_Dialog-Desktop_Qt_6_1_2_MSVC2019_64bit-Release + E:/Documents/Coding Repositories/Qt Default Repository/build-Acrylic_Dialog-Desktop_Qt_6_1_2_MSVC2019_64bit-Release + + + true + QtProjectManager.QMakeBuildStep + false + + + + true + Qt4ProjectManager.MakeStep + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + clean + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + 0 + + + 0 + E:\Documents\Coding Repositories\Qt Default Repository\build-Acrylic_Dialog-Desktop_Qt_6_1_2_MSVC2019_64bit-Profile + E:/Documents/Coding Repositories/Qt Default Repository/build-Acrylic_Dialog-Desktop_Qt_6_1_2_MSVC2019_64bit-Profile + + + true + QtProjectManager.QMakeBuildStep + false + + + + true + Qt4ProjectManager.MakeStep + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + clean + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + 0 + 0 + + 3 + + + 0 + Deploy + Deploy + ProjectExplorer.BuildSteps.Deploy + + 1 + + false + ProjectExplorer.DefaultDeployConfiguration + + 1 + + dwarf + + cpu-cycles + + + 250 + + -e + cpu-cycles + --call-graph + dwarf,4096 + -F + 250 + + -F + true + 4096 + false + false + 1000 + + true + + + false + false + false + false + true + 0.01 + 10 + true + kcachegrind + 1 + + 25 + + 1 + true + false + true + + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + ProjectExplorer.CustomExecutableRunConfiguration + + false + true + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 22 + + + Version + 22 + + diff --git a/acrylic.cpp b/acrylic.cpp index 3c04ac9..f483899 100644 --- a/acrylic.cpp +++ b/acrylic.cpp @@ -100,6 +100,41 @@ Acrylic::Acrylic(QWidget *parent) ui->displayHis->setTextFormat(Qt::RichText); ui->displayHis->setAttribute(Qt::WA_TransparentForMouseEvents); + //Adjust Colors of the buttons + ui->opAdd ->setColor(QColor(250, 250, 250, 190)); + ui->opSub ->setColor(QColor(250, 250, 250, 190)); + ui->opMulti ->setColor(QColor(250, 250, 250, 190)); + ui->opDiv ->setColor(QColor(250, 250, 250, 190)); + ui->opSqr ->setColor(QColor(250, 250, 250, 190)); + ui->opPow ->setColor(QColor(250, 250, 250, 190)); + ui->opMod ->setColor(QColor(250, 250, 250, 190)); + ui->opBrckL ->setColor(QColor(250, 250, 250, 190)); + ui->opBrckR ->setColor(QColor(250, 250, 250, 190)); + ui->opClear ->setColor(QColor(250, 250, 250, 190)); + ui->bckSpace->setColor(QColor(250, 250, 250, 190)); + ui->opAdd ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opSub ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opMulti ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opDiv ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opSqr ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opPow ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opMod ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opBrckL ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opBrckR ->setHoverColor(QColor(70, 70, 70, 70)); + ui->opClear ->setHoverColor(QColor(70, 70, 70, 70)); + ui->bckSpace->setHoverColor(QColor(70, 70, 70, 70)); + ui->opAdd ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opSub ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opMulti ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opDiv ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opSqr ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opPow ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opMod ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opBrckL ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opBrckR ->setClickedColor(QColor(30, 30, 30, 70)); + ui->opClear ->setClickedColor(QColor(30, 30, 30, 70)); + ui->bckSpace->setClickedColor(QColor(30, 30, 30, 70)); + //Connect the buttons with input connect(ui->num0, &QPushButton::clicked, [=](){expr.insert('0'); RfrInput(); UpdStack();}); connect(ui->num1, &QPushButton::clicked, [=](){expr.insert('1'); RfrInput(); UpdStack();});