lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
179 stars 135 forks source link

[Feature request] - User-configurable icon sizes for QuickLaunch and StatusNotifierPlugin #2023

Open AzumaHazuki opened 5 months ago

AzumaHazuki commented 5 months ago

Would this be possible? It would add flexibility and configurability, and the code might be partially reusable in both plugins since it's some else/if checks and a few combo/checkboxes added to their respective config dialogs.

Pseudocode:

if (userConfig.trayIconSize) < 1 { // No invisible icons
  userConfig.trayIconSize = userConfig.panelIconSize}
}
else if (userConfig.trayIconSize) > userConfig.panelHeight { // No icons bigger than the panel; still respects theme padding/margin if specified
  userConfig.trayIconSize = userConfig.panelIconSize}
}
else {
    drawIcon(position, name, userConfig.trayIconSize);
}