-
Notifications
You must be signed in to change notification settings - Fork 55
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
Conversation
Doc Check bot |
提供选项,使用 KIconThemes 的 KIconEngine 取代 Qt5XdgIconLoader Log:
@@ -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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同步更新一下readme?
TAG Bot New tag: 5.6.21 |
TAG Bot New tag: 5.6.22 |
目前没空处理这个了,暂时关闭,回头可能要单独重搞下这个或者 fork 一份 KIconTheme 改改用 |
提供选项,使用 KIconThemes 替代 Qt5XdgIconLoader。
目前加了一些 ifdef 去判断用哪个,但我们还有必要保留使用 Qt5XdgIconLoader 的实现吗?
相关: