我的 KDE 系统托盘图标在 Kubuntu 14.04 中非常大:
请注意,Skype 和 wicd 图标大小合适,它们不是 KDE 应用程序。但是 KDE 应用程序的图标(Klipper 和音量控制)很大。我已经检查过了,我已经有了 “改进 HiDPI 显示屏上的系统托盘”补丁应用于我的系统:
file:a/plasma/generic/applets/systemtray/package/contents/ui/IconsList.qml -> file:b/plasma/generic/applets/systemtray/package/contents/ui/IconsList.qml
--- a/plasma/generic/applets/systemtray/package/contents/ui/IconsList.qml
+++ b/plasma/generic/applets/systemtray/package/contents/ui/IconsList.qml
@@ -33,7 +33,7 @@
id: root_item
property int icons_size: 24 ///< Size of icons, icons are square i.e. width == height
- property int icons_margins: 4 ///< Margins for icons
+ property int icons_margins: icons_size/3 ///< Margins for icons
property alias icons_number: repeater.count ///< [readonly] Number of icons
property alias model: repeater.model; ///< Model for grid
property int cell_size: icons_size + 2*icons_margins ///< [readonly] size of grid cell
file:a/plasma/generic/applets/systemtray/package/contents/ui/main.qml -> file:b/plasma/generic/applets/systemtray/package/contents/ui/main.qml
--- a/plasma/generic/applets/systemtray/package/contents/ui/main.qml
+++ b/plasma/generic/applets/systemtray/package/contents/ui/main.qml
@@ -34,7 +34,7 @@
property int minimumWidth: JS.MINIMUM_SIZE
property int minimumHeight: JS.MINIMUM_SIZE
- property int iconSize: Math.min(root_item.width, Math.min(root_item.height, JS.ICONS_SIZE))
+ property int iconSize: Math.min(root_item.width, Math.min(root_item.height, theme.defaultFont.mSize.height < 20 ? 24 : theme.largeIconSize)) //Math.min(root_item.width, Math.min(root_item.height, JS.ICONS_SIZE))
// Data Models
property list<ListModel> models: [
@@ -112,7 +112,7 @@
content: IconsList {
id: popup_area
- icons_size: JS.ICONS_SIZE
+ icons_size: root_item.iconSize
model: model_popup
}
}
考虑到我已经有补丁了,导致 KDE 系统托盘图标过大的原因是什么?
答案1
是的。您已“改善 HiDPI 显示器上的系统托盘”,但您尚未设置正确的 DPI。您应该在系统控制中的“外观-字体”设置中为您的显示器设置 True DPI 值。如果此方法无效,请在 Xorg 设置中设置正确的 DPI。