Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: option to use KIconThemes instead of Qt5XdgIconLoader #135

Closed
wants to merge 1 commit into from

Conversation

BLumia
Copy link
Member

@BLumia BLumia commented Mar 13, 2023

提供选项,使用 KIconThemes 替代 Qt5XdgIconLoader。

目前加了一些 ifdef 去判断用哪个,但我们还有必要保留使用 Qt5XdgIconLoader 的实现吗?

相关:

@BLumia BLumia requested a review from zccrs March 13, 2023 03:04
@deepin-bot
Copy link
Contributor

deepin-bot bot commented Mar 13, 2023

Doc Check bot
🟢 Document Coverage Check Passed!

CMakeLists.txt Outdated Show resolved Hide resolved
src/CMakeLists.txt Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
src/util/util.cmake Outdated Show resolved Hide resolved
提供选项,使用 KIconThemes 的 KIconEngine 取代 Qt5XdgIconLoader

Log:
@BLumia BLumia marked this pull request as draft March 13, 2023 04:35
@@ -87,10 +92,14 @@ static inline QIconEngine *createBuiltinIconEngine(const QString &iconName)
return new DBuiltinIconEngine(iconName);
}

#ifndef DTK_DISABLE_LIBXDG
#ifndef DTK_DISABLE_ICON_ENGINE_PROXY
static inline QIconEngine *createXdgProxyIconEngine(const QString &iconName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

函数名改改

@@ -19,7 +21,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Set build option
option(DTK_DISABLE_LIBXDG "Disable libxdg" OFF)
option(DTK_DISABLE_ICON_ENGINE_PROXY "Disable icon engine, use QIcon::fromTheme() as possible fallback" OFF)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同步更新一下readme?

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jan 9, 2024

TAG Bot

New tag: 5.6.21
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #214

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jan 12, 2024

TAG Bot

New tag: 5.6.22
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #219

@BLumia
Copy link
Member Author

BLumia commented Jan 12, 2024

目前没空处理这个了,暂时关闭,回头可能要单独重搞下这个或者 fork 一份 KIconTheme 改改用

@BLumia BLumia closed this Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants