From 6b59a64e4f11cb6dfb2a5d8642567eea4d2335c7 Mon Sep 17 00:00:00 2001 From: zhangkun2 Date: Mon, 14 Sep 2026 19:00:41 +0800 Subject: [PATCH] fix: add fallback cursor name for thumbnail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Root cause: presentCursors second group only had "left_ptr_watch" with no fallback, themes like Adwaita lack this file causing thumbnail to show 6 states instead of 7 with wrong icon 2. Fix: add "watch" as fallback name, Adwaita provides watch->wait symlink so the busy cursor state loads correctly 3. Impact: themes with left_ptr_watch (e.g. bloom) unaffected as first name matches first, only themes lacking it get the fallback Log: Fix cursor thumbnail showing wrong icon for some themes Influence: 1. Test Adwaita cursor theme thumbnail shows 7 states correctly 2. Test bloom cursor theme thumbnail has no regression 3. Verify second-to-last cursor icon is grab not fleur fix: 修复部分主题光标缩略图图标错误 1. 根因:presentCursors 第2组仅有"left_ptr_watch"无备选名,Adwaita等 主题缺少该文件导致缩略图少显示一个状态且图标错位 2. 方案:添加"watch"作为备选光标名,Adwaita提供watch->wait符号链接 可正确加载忙碌状态光标 3. 影响:已有left_ptr_watch的主题(如bloom)不受影响,仅缺少该名称的 主题启用备选 Log: 修复部分光标主题缩略图图标显示错误 Influence: 1. 测试Adwaita光标主题缩略图正确显示7个状态 2. 测试bloom光标主题缩略图无回归 3. 验证倒数第二个光标图标为grab而非fleur PMS: BUG-375317 --- src/service/modules/api/themethumb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/modules/api/themethumb.cpp b/src/service/modules/api/themethumb.cpp index e9d8eeb..b6cab03 100644 --- a/src/service/modules/api/themethumb.cpp +++ b/src/service/modules/api/themethumb.cpp @@ -32,7 +32,7 @@ const int baseIconSize = 36; static QVector presentCursors { {"left_ptr"}, - {"left_ptr_watch"}, + {"left_ptr_watch", "watch"}, {"x-cursor", "X_cursor"}, {"hand2", "hand1"}, {"grab", "grabbing", "closedhand"},