From 3c1e197115c440c0f46353547a8afe1eb32b3470 Mon Sep 17 00:00:00 2001 From: Max Wilfinger Date: Thu, 19 Jun 2025 14:21:11 +0200 Subject: [PATCH] Gui: Add toggle overlay icons --- src/Gui/CommandView.cpp | 12 +- src/Gui/Icons/Std_DockOverlayToggleBottom.svg | 270 +++++++++++ src/Gui/Icons/Std_DockOverlayToggleLeft.svg | 171 +++++++ src/Gui/Icons/Std_DockOverlayToggleRight.svg | 171 +++++++ src/Gui/Icons/Std_DockOverlayToggleTop.svg | 171 +++++++ src/Gui/Icons/resource.qrc | 452 +++++++++--------- 6 files changed, 1017 insertions(+), 230 deletions(-) create mode 100755 src/Gui/Icons/Std_DockOverlayToggleBottom.svg create mode 100755 src/Gui/Icons/Std_DockOverlayToggleLeft.svg create mode 100755 src/Gui/Icons/Std_DockOverlayToggleRight.svg create mode 100755 src/Gui/Icons/Std_DockOverlayToggleTop.svg diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index ccf00cb137..91ee820349 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -3710,7 +3710,7 @@ StdCmdDockOverlayToggleLeft::StdCmdDockOverlayToggleLeft() sWhatsThis = "Std_DockOverlayToggleLeft"; sStatusTip = sToolTipText; sAccel = "Ctrl+Left"; - sPixmap = "qss:overlay/icons/close.svg"; + sPixmap = "Std_DockOverlayToggleLeft"; eType = 0; } @@ -3735,7 +3735,7 @@ StdCmdDockOverlayToggleRight::StdCmdDockOverlayToggleRight() sWhatsThis = "Std_DockOverlayToggleRight"; sStatusTip = sToolTipText; sAccel = "Ctrl+Right"; - sPixmap = "qss:overlay/icons/close.svg"; + sPixmap = "Std_DockOverlayToggleRight"; eType = 0; } @@ -3760,7 +3760,7 @@ StdCmdDockOverlayToggleTop::StdCmdDockOverlayToggleTop() sWhatsThis = "Std_DockOverlayToggleTop"; sStatusTip = sToolTipText; sAccel = "Ctrl+Up"; - sPixmap = "qss:overlay/icons/close.svg"; + sPixmap = "Std_DockOverlayToggleTop"; eType = 0; } @@ -3785,7 +3785,7 @@ StdCmdDockOverlayToggleBottom::StdCmdDockOverlayToggleBottom() sWhatsThis = "Std_DockOverlayToggleBottom"; sStatusTip = sToolTipText; sAccel = "Ctrl+Down"; - sPixmap = "qss:overlay/icons/close.svg"; + sPixmap = "Std_DockOverlayToggleBottom"; eType = 0; } @@ -3847,8 +3847,8 @@ public: :GroupCommand("Std_DockOverlay") { sGroup = "View"; - sMenuText = QT_TR_NOOP("Dock window overlay"); - sToolTipText = QT_TR_NOOP("Setting docked window overlay mode"); + sMenuText = QT_TR_NOOP("Dock panel overlay"); + sToolTipText = QT_TR_NOOP("Setting docked panel overlay mode"); sWhatsThis = "Std_DockOverlay"; sStatusTip = sToolTipText; eType = 0; diff --git a/src/Gui/Icons/Std_DockOverlayToggleBottom.svg b/src/Gui/Icons/Std_DockOverlayToggleBottom.svg new file mode 100755 index 0000000000..98038cb107 --- /dev/null +++ b/src/Gui/Icons/Std_DockOverlayToggleBottom.svg @@ -0,0 +1,270 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/ + + + FreeCAD LGPL2+ + + + 2024 + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_DockOverlayToggleLeft.svg b/src/Gui/Icons/Std_DockOverlayToggleLeft.svg new file mode 100755 index 0000000000..d19b0c4660 --- /dev/null +++ b/src/Gui/Icons/Std_DockOverlayToggleLeft.svg @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/ + + + FreeCAD LGPL2+ + + + 2024 + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_DockOverlayToggleRight.svg b/src/Gui/Icons/Std_DockOverlayToggleRight.svg new file mode 100755 index 0000000000..792c4db80d --- /dev/null +++ b/src/Gui/Icons/Std_DockOverlayToggleRight.svg @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/ + + + FreeCAD LGPL2+ + + + 2024 + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_DockOverlayToggleTop.svg b/src/Gui/Icons/Std_DockOverlayToggleTop.svg new file mode 100755 index 0000000000..81ceb9aa22 --- /dev/null +++ b/src/Gui/Icons/Std_DockOverlayToggleTop.svg @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + [maxwxyz] + + + https://www.freecad.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/ + + + FreeCAD LGPL2+ + + + 2024 + + + + + + + + + + + diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc index 1621edbb4a..86f5c4d0f9 100644 --- a/src/Gui/Icons/resource.qrc +++ b/src/Gui/Icons/resource.qrc @@ -1,178 +1,181 @@ - freecadsplash.png - freecadsplash0.png - freecadsplash1.png - freecadsplash2.png - freecadsplash3.png - freecadsplash4.png - freecadsplash5.png - freecadsplash6.png - freecadsplash7.png - freecadsplash8.png - freecadsplash9.png - freecadsplash10.png - freecadsplash11.png - freecadsplash12.png - freecadsplash_2x.png - freecadsplash0_2x.png - freecadsplash1_2x.png - freecadsplash2_2x.png - freecadsplash3_2x.png - freecadsplash4_2x.png - freecadsplash5_2x.png - freecadsplash6_2x.png - freecadsplash7_2x.png - freecadsplash8_2x.png - freecadsplash9_2x.png - freecadsplash10_2x.png - freecadsplash11_2x.png - freecadsplash12_2x.png - freecadabout.png + 3dx_pivot.png + accessories-calculator.svg + accessories-text-editor.svg + AddonManager.svg + align-to-selection.svg + application-exit.svg + applications-accessories.svg + applications-python.svg background.png - mouse_pointer.svg - Document.svg - Feature.svg - delete.svg - list-remove.svg - list-add.svg - freecad.svg - freecad-doc.png - freecad-doc.svg + bound-expression-unset.svg + bound-expression.svg + breakpoint.svg bulb.svg - TextDocument.svg + button_add_all.svg button_down.svg + button_invalid.svg button_left.svg button_right.svg - button_up.svg button_sort.svg - button_add_all.svg + button_up.svg button_valid.svg - button_invalid.svg - media-playback-start.svg - media-playback-start-back.svg - media-playback-step.svg - media-playback-step-back.svg - media-record.svg - media-playback-stop.svg - preferences-display.svg - preferences-python.svg - preferences-general.svg - preferences-import-export.svg - preferences-workbenches.svg - utilities-terminal.svg ClassBrowser/const_member.png - ClassBrowser/member.png - ClassBrowser/method.png - ClassBrowser/property.png - ClassBrowser/type_class.png - ClassBrowser/type_enum.png - ClassBrowser/type_module.png ClassBrowser/const_member.svg + ClassBrowser/member.png ClassBrowser/member.svg + ClassBrowser/method.png ClassBrowser/method.svg + ClassBrowser/property.png ClassBrowser/property.svg + ClassBrowser/type_class.png ClassBrowser/type_class.svg + ClassBrowser/type_enum.png ClassBrowser/type_enum.svg + ClassBrowser/type_module.png ClassBrowser/type_module.svg - style/windows_branch_closed.png - style/windows_branch_open.png - Std_ViewScreenShot.svg - bound-expression.svg - bound-expression-unset.svg - breakpoint.svg + clear-selection.svg + colors.svg + critical-info.svg + cursor-through.svg + dagViewFail.svg + dagViewPass.svg + dagViewPending.svg + dagViewVisible.svg debug-marker.svg debug-start.svg debug-stop.svg + delete.svg document-new.svg document-open.svg - document-save.svg - document-save-as.svg - document-print.svg + document-package.svg document-print-preview.svg + document-print.svg document-properties.svg - application-exit.svg - edit_OK.svg + document-python.svg + document-save-as.svg + document-save.svg + Document.svg + DrawStyleAsIs.svg + DrawStyleFlatLines.svg + DrawStyleHiddenLine.svg + DrawStyleNoShading.svg + DrawStylePoints.svg + DrawStyleShaded.svg + DrawStyleWireFrame.svg + edge-selection.svg edit_Cancel.svg + edit_OK.svg + edit-cleartext.svg edit-copy.svg edit-cut.svg edit-delete.svg - edit-paste.svg - edit-select-all.svg - edit-select-box.svg - edit-select-box-cross.svg - edit-element-select-box.svg - edit-element-select-box-cross.svg - edit-redo.svg - edit-undo.svg edit-edit.svg - edit-cleartext.svg + edit-element-select-box-cross.svg + edit-element-select-box.svg + edit-paste.svg + edit-redo.svg + edit-select-all.svg + edit-select-box-cross.svg + edit-select-box.svg + edit-undo.svg + face-selection.svg + feature_suppressed.svg + Feature.svg + folder.svg + forbidden.svg + freecad-doc.png + freecad-doc.svg + freecad.svg + freecadabout.png + freecadsplash_2x.png + freecadsplash.png + freecadsplash0_2x.png + freecadsplash0.png + freecadsplash1_2x.png + freecadsplash1.png + freecadsplash10_2x.png + freecadsplash10.png + freecadsplash11_2x.png + freecadsplash11.png + freecadsplash12_2x.png + freecadsplash12.png + freecadsplash2_2x.png + freecadsplash2.png + freecadsplash3_2x.png + freecadsplash3.png + freecadsplash4_2x.png + freecadsplash4.png + freecadsplash5_2x.png + freecadsplash5.png + freecadsplash6_2x.png + freecadsplash6.png + freecadsplash7_2x.png + freecadsplash7.png + freecadsplash8_2x.png + freecadsplash8.png + freecadsplash9_2x.png + freecadsplash9.png + Geoassembly.svg + Geofeaturegroup.svg + Group.svg + help-browser.svg + image-open.svg + image-plane.svg + image-scaling.svg info.svg - critical-info.svg - tree-item-drag.svg - tree-goto-sel.svg - tree-rec-sel.svg - tree-pre-sel.svg - tree-sync-sel.svg - tree-sync-view.svg - tree-sync-pla.svg - tree-doc-single.svg - tree-doc-multi.svg - tree-doc-collapse.svg + internet-web-browser.svg + InTray_missed_notifications.svg + InTray.svg + Invisible.svg + Link.svg + LinkArray.svg + LinkArrayOverlay.svg + LinkElement.svg + LinkGroup.svg + LinkImport.svg + LinkImportAll.svg + LinkOverlay.svg + LinkReplace.svg + LinkSelect.svg + LinkSelectAll.svg + LinkSelectFinal.svg + LinkSub.svg + LinkSubElement.svg + LinkSubOverlay.svg + list-add.svg + list-remove.svg + MacroEditor.svg + MacroFolder.svg + media-playback-start-back.svg + media-playback-start.svg + media-playback-step-back.svg + media-playback-step.svg + media-playback-stop.svg + media-record.svg + mouse_pointer.svg + overlay_error.svg + overlay_recompute.svg + Param_Bool.svg + Param_Float.svg + Param_Int.svg + Param_Text.svg + Param_UInt.svg + PolygonPick.svg + preferences-display.svg + preferences-general.svg + preferences-import-export.svg + preferences-python.svg + preferences-system.svg + preferences-workbenches.svg + process-stop.svg + px.svg + safe-mode-restart.svg sel-back.svg + sel-bbox.svg sel-forward.svg sel-instance.svg - sel-bbox.svg - vertex-selection.svg - edge-selection.svg - face-selection.svg - clear-selection.svg - help-browser.svg - preferences-system.svg - process-stop.svg - window-new.svg - applications-accessories.svg - applications-python.svg - accessories-text-editor.svg - accessories-calculator.svg - internet-web-browser.svg - InTray.svg - InTray_missed_notifications.svg - safe-mode-restart.svg - view-select.svg - view-unselectable.svg - view-refresh.svg - view-fullscreen.svg - view-axonometric.svg - view-isometric.svg - view-perspective.svg - view-bottom.svg - view-front.svg - view-left.svg - view-rear.svg - view-right.svg - view-top.svg - zoom-all.svg - zoom-border.svg - zoom-border-cross.svg - zoom-fit-best.svg - zoom-in.svg - zoom-out.svg - zoom-selection.svg - view-rotate-left.svg - view-rotate-right.svg - view-measurement.svg - view-measurement-cross.svg - umf-measurement.svg - Tree_Annotation.svg - Tree_Dimension.svg - Tree_Python.svg - TreeItemVisible.svg - TreeItemInvisible.svg - dagViewVisible.svg - dagViewPass.svg - dagViewFail.svg - dagViewPending.svg spaceball_button.svg SpNav-PanLR.svg SpNav-PanUD.svg @@ -180,52 +183,54 @@ SpNav-Spin.svg SpNav-Tilt.svg SpNav-Zoom.svg - DrawStyleAsIs.svg - DrawStyleFlatLines.svg - DrawStylePoints.svg - DrawStyleShaded.svg - DrawStyleWireFrame.svg - DrawStyleHiddenLine.svg - DrawStyleNoShading.svg - user.svg + Std_Alignment.svg + Std_Axis.svg Std_AxisCross.svg - Std_CoordinateSystem.svg - Std_CoordinateSystem_alt.svg - Std_Placement.svg - MacroEditor.svg - MacroFolder.svg - Param_Bool.svg - Param_Float.svg - Param_Int.svg - Param_Text.svg - Param_UInt.svg - PolygonPick.svg Std_CloseActiveWindow.svg Std_CloseAllWindows.svg + Std_CoordinateSystem_alt.svg + Std_CoordinateSystem.svg + Std_DemoMode.svg + Std_DependencyGraph.svg + Std_DlgParameter.svg + Std_DockOverlayToggleBottom.svg + Std_DockOverlayToggleLeft.svg + Std_DockOverlayToggleRight.svg + Std_DockOverlayToggleTop.svg + Std_DuplicateSelection.svg Std_Export.svg Std_HideObjects.svg Std_HideSelection.svg Std_Import.svg - Std_MergeProjects.svg Std_MarkToRecompute.svg + Std_MergeProjects.svg + Std_Placement.svg + Std_Plane.svg + Std_Point.svg Std_PrintPdf.svg + Std_ProjectUtil.svg Std_RandomColor.svg Std_RecentFiles.svg Std_RecentMacros.svg Std_Revert.svg Std_SaveAll.svg Std_SaveCopy.svg + Std_SceneInspector.svg Std_SelectVisibleObjects.svg Std_SetAppearance.svg Std_ShowObjects.svg Std_ShowSelection.svg Std_TextureMapping.svg Std_ToggleClipPlane.svg + Std_ToggleFreeze.svg Std_ToggleNavigation.svg Std_ToggleObjects.svg - Std_ToggleVisibility.svg Std_ToggleTransparency.svg + Std_ToggleVisibility.svg Std_Tool1.svg + Std_Tool10.svg + Std_Tool11.svg + Std_Tool12.svg Std_Tool2.svg Std_Tool3.svg Std_Tool4.svg @@ -234,10 +239,11 @@ Std_Tool7.svg Std_Tool8.svg Std_Tool9.svg - Std_Tool10.svg - Std_Tool11.svg - Std_Tool12.svg Std_TransformManip.svg + Std_UserEditModeColor.svg + Std_UserEditModeCutting.svg + Std_UserEditModeDefault.svg + Std_UserEditModeTransform.svg Std_ViewDimetric.svg Std_ViewHome.svg Std_ViewIvIssueCamPos.svg @@ -246,73 +252,71 @@ Std_ViewIvStereoOff.svg Std_ViewIvStereoQuadBuff.svg Std_ViewIvStereoRedGreen.svg + Std_ViewScreenShot.svg Std_ViewTrimetric.svg - Std_Windows.svg Std_WindowCascade.svg Std_WindowNext.svg Std_WindowPrev.svg + Std_Windows.svg Std_WindowTileVer.svg - Std_DemoMode.svg - Std_DependencyGraph.svg - Std_DlgParameter.svg - Std_ProjectUtil.svg - Std_SceneInspector.svg - WhatsThis.svg - colors.svg - px.svg - AddonManager.svg - align-to-selection.svg - Group.svg - Geofeaturegroup.svg - Geoassembly.svg - Std_Point.svg - Std_Axis.svg - Std_Plane.svg - Link.svg - LinkArray.svg - LinkElement.svg - LinkGroup.svg - LinkOverlay.svg - LinkArrayOverlay.svg - LinkSubOverlay.svg - LinkSubElement.svg - LinkSub.svg - LinkReplace.svg - LinkImport.svg - LinkImportAll.svg - LinkSelect.svg - LinkSelectFinal.svg - LinkSelectAll.svg + style/windows_branch_closed.png + style/windows_branch_open.png + TextDocument.svg + Tree_Annotation.svg + Tree_Dimension.svg + Tree_Python.svg + tree-doc-collapse.svg + tree-doc-multi.svg + tree-doc-single.svg + tree-goto-sel.svg + tree-item-drag.svg + tree-pre-sel.svg + tree-rec-sel.svg + tree-sync-pla.svg + tree-sync-sel.svg + tree-sync-view.svg + TreeItemInvisible.svg + TreeItemVisible.svg + umf-measurement.svg Unlink.svg - Invisible.svg - folder.svg - document-python.svg - document-package.svg - cursor-through.svg - Std_Alignment.svg - Std_DuplicateSelection.svg - Std_UserEditModeDefault.svg - Std_UserEditModeTransform.svg - Std_UserEditModeCutting.svg - Std_UserEditModeColor.svg - Warning.svg - image-open.svg - image-plane.svg - image-scaling.svg - VarSet.svg - Std_ToggleFreeze.svg - 3dx_pivot.png - overlay_recompute.svg - overlay_error.svg - feature_suppressed.svg - forbidden.svg user-input/mouse-left.svg - user-input/mouse-right.svg - user-input/mouse-move.svg user-input/mouse-middle.svg - user-input/mouse-scroll.svg - user-input/mouse-scroll-up.svg + user-input/mouse-move.svg + user-input/mouse-right.svg user-input/mouse-scroll-down.svg + user-input/mouse-scroll-up.svg + user-input/mouse-scroll.svg + user.svg + utilities-terminal.svg + VarSet.svg + vertex-selection.svg + view-axonometric.svg + view-bottom.svg + view-front.svg + view-fullscreen.svg + view-isometric.svg + view-left.svg + view-measurement-cross.svg + view-measurement.svg + view-perspective.svg + view-rear.svg + view-refresh.svg + view-right.svg + view-rotate-left.svg + view-rotate-right.svg + view-select.svg + view-top.svg + view-unselectable.svg + Warning.svg + WhatsThis.svg + window-new.svg + zoom-all.svg + zoom-border-cross.svg + zoom-border.svg + zoom-fit-best.svg + zoom-in.svg + zoom-out.svg + zoom-selection.svg index.theme