From 32f7d08602a78cbd92fb82ec2e00bc07a28a5d7d Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:37:09 +0000 Subject: [PATCH] [Gui] Allow power users to set their own max toggle transparency --- src/Gui/CommandView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 14e34c61c8..672c4862c6 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -976,7 +976,11 @@ void StdCmdToggleTransparency::activated(int iMsg) } } - int transparency = oneTransparent ? 0 : 70; + auto hGrp = + App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View"); + int userTransparency = hGrp->GetInt("ToggleTransparency", 70); + + int transparency = oneTransparent ? 0 : userTransparency; for (auto* view : viewsToToggle) { App::Property* prop = view->getPropertyByName("Transparency");