From caa141f8f36a4b7e3027d6d1f01e5f5a8bfe2c9b Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Thu, 11 Jul 2024 23:21:10 +0200 Subject: [PATCH 1/2] Gui: Utilize XDG icon themes properly --- src/Gui/Icons/resource.qrc | 120 +++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc index fad9ea8dae..b8d60435b5 100644 --- a/src/Gui/Icons/resource.qrc +++ b/src/Gui/Icons/resource.qrc @@ -282,6 +282,126 @@ index.theme + + + delete.svg + list-remove.svg + list-add.svg + freecad.svg + freecad-doc.png + freecad-doc.svg + bulb.svg + button_down.svg + button_left.svg + button_right.svg + button_up.svg + button_sort.svg + button_add_all.svg + button_valid.svg + button_invalid.svg + media-playback-start.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 + bound-expression.svg + bound-expression-unset.svg + breakpoint.svg + debug-marker.svg + debug-start.svg + debug-stop.svg + document-new.svg + document-open.svg + document-save.svg + document-save-as.svg + document-print.svg + document-print-preview.svg + document-properties.svg + application-exit.svg + edit_OK.svg + edit_Cancel.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 + 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 + sel-back.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 + camera-photo.svg + applications-accessories.svg + applications-python.svg + accessories-text-editor.svg + accessories-calculator.svg + internet-web-browser.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 + user.svg + px.svg + align-to-selection.svg + folder.svg + document-python.svg + document-package.svg + cursor-through.svg + image-open.svg + image-plane.svg + image-scaling.svg + ../../Doc/CONTRIBUTORS ../../../PRIVACY_POLICY.md From dc6456caf9abc1381584bdfe38b838e2f945af7e Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Wed, 26 Jun 2024 21:10:04 +0200 Subject: [PATCH 2/2] Gui: Use FreeCAD supplied icons on Linux by default Fixes: #14968 --- src/Gui/Icons/resource.qrc | 1 - src/Gui/StartupProcess.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc index b8d60435b5..a98e838822 100644 --- a/src/Gui/Icons/resource.qrc +++ b/src/Gui/Icons/resource.qrc @@ -361,7 +361,6 @@ preferences-system.svg process-stop.svg window-new.svg - camera-photo.svg applications-accessories.svg applications-python.svg accessories-text-editor.svg diff --git a/src/Gui/StartupProcess.cpp b/src/Gui/StartupProcess.cpp index 8406d9cf5e..f1b627e6d9 100644 --- a/src/Gui/StartupProcess.cpp +++ b/src/Gui/StartupProcess.cpp @@ -170,9 +170,9 @@ void StartupProcess::setThemePaths() << QString::fromLatin1(":/icons/FreeCAD-default")); QIcon::setThemeName(QLatin1String("FreeCAD-default")); #else - // Option to opt-out from using a Linux desktop icon theme. + // Option to opt-in into using a Linux desktop icon theme. // https://forum.freecad.org/viewtopic.php?f=4&t=35624 - bool themePaths = hTheme->GetBool("ThemeSearchPaths",true); + bool themePaths = hTheme->GetBool("ThemeSearchPaths", false); if (!themePaths) { QStringList searchPaths; searchPaths.prepend(QString::fromUtf8(":/icons"));