From 16df8452f6fdf05c470c000ed43a8b6562df78ea Mon Sep 17 00:00:00 2001 From: SoftFever Date: Sat, 31 Oct 2026 02:23:57 +0800 Subject: [PATCH] Show the recording and screenshot icons in the Speed Dial at full size --- resources/images/recording_start.svg | 1 + resources/images/recording_stop.svg | 1 + resources/images/screenshot.svg | 1 + src/slic3r/GUI/NativeCommands.cpp | 6 +++--- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 resources/images/recording_start.svg create mode 100644 resources/images/recording_stop.svg create mode 100644 resources/images/screenshot.svg diff --git a/resources/images/recording_start.svg b/resources/images/recording_start.svg new file mode 100644 index 0000000000..729a1890d5 --- /dev/null +++ b/resources/images/recording_start.svg @@ -0,0 +1 @@ + diff --git a/resources/images/recording_stop.svg b/resources/images/recording_stop.svg new file mode 100644 index 0000000000..cefb4b0f0f --- /dev/null +++ b/resources/images/recording_stop.svg @@ -0,0 +1 @@ + diff --git a/resources/images/screenshot.svg b/resources/images/screenshot.svg new file mode 100644 index 0000000000..ff0196d93b --- /dev/null +++ b/resources/images/screenshot.svg @@ -0,0 +1 @@ + diff --git a/src/slic3r/GUI/NativeCommands.cpp b/src/slic3r/GUI/NativeCommands.cpp index ae2ccf70ef..b51fbd03aa 100644 --- a/src/slic3r/GUI/NativeCommands.cpp +++ b/src/slic3r/GUI/NativeCommands.cpp @@ -785,7 +785,7 @@ std::vector build_command_catalog() }); // ---- Screenshots and recordings ---- (the MCP screenshot and recording tools' defaults, for the person) - add_with_icon("take_screenshot", L("Take Screenshot"), L("Commands"), "monitor_recording_off", [](const std::string&) { + add_with_icon("take_screenshot", L("Take Screenshot"), L("Commands"), "screenshot", [](const std::string&) { MainFrame* mf = wxGetApp().mainframe; if (mf == nullptr) return AppActionRunResult{}; @@ -801,8 +801,8 @@ std::vector build_command_catalog() notify_saved(_L("Screenshot saved"), path); return AppActionRunResult{AppActionRunResult::Level::Success, {}, true, path_reply(path)}; }); - add_with_icon("start_recording", L("Start Recording"), L("Commands"), "monitor_recording_on", start_recording); - add_with_icon("stop_recording", L("Stop Recording"), L("Commands"), "video_state_off", [](const std::string&) { + add_with_icon("start_recording", L("Start Recording"), L("Commands"), "recording_start", start_recording); + add_with_icon("stop_recording", L("Stop Recording"), L("Commands"), "recording_stop", [](const std::string&) { Mcp::McpService* service = wxGetApp().mcp_service(); const nlohmann::json state = service != nullptr && service->started() ? service->recorder().state() : nlohmann::json(); if (state.is_null() || state.value("ending", false))