Commit d1d76984 authored by Dominic Hayes's avatar Dominic Hayes Committed by Nate Graham

Increase the size of system tray icon hitboxes on the System Tray Plasmoid

Summary:
Depends on D27465

@ngraham recommended that I split up https://phabricator.kde.org/D27438 into three patches:

1. The foundation code to get landed first so that the other two patches can be done as patches that change two separate lines instead of just one

2. Tablet Mode increases tray icon spacing

3. This patch - Increase tray icon spacing slightly on Non-Tablet Mode (half of the amount it increases by in Tablet Mode)

This patch is for the third patch of the three recommended patches to split the original patch into, and makes the click areas for the System Tray Plasmoid slightly larger in normal Plasma.

Test Plan:
1. Install this patch to the System Tray Plasmoid

BEFORE:
{F8109485}

AFTER:
{F8109489}

Reviewers: #vdg, niccolove, ngraham

Reviewed By: #vdg, niccolove, ngraham

Subscribers: kmaterka, gvgeo, ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27466
parent 39975673
......@@ -48,7 +48,7 @@ MouseArea {
// Set the tray items' clickable areas on the panel to be bigger than normal to allow for easier touchability
return baseSize + units.smallSpacing;
} else {
return baseSize;
return baseSize + Math.round(units.smallSpacing/2);
}
}
property int hiddenItemSize: units.iconSizes.smallMedium
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment