Make the icon hitboxes for the System Tray Plasmoid larger when Kirigami Tablet…

Authored by The-Feren-OS-Dev on Feb 29 2020, 2:20 PM.

Description

Make the icon hitboxes for the System Tray Plasmoid larger when Kirigami Tablet Mode is enabled

Summary:
@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
  1. Tablet Mode increases tray icon spacing
  1. Increase tray icon spacing slightly on Non-Tablet Mode (half of the amount it increases by in Tablet Mode)

This patch integrates both patch 1 and 2 of what ngraham recommended to make system tray icon click areas larger when Kirigami's Tablet Mode setting is true than they normally are.

Test Plan:

  1. Test that System Tray still works after these changes have been made
  1. Check that when Kirigami.Settings.tabletMode is enabled the system tray icon click areas become slightly larger in size

Reviewers: ngraham, VDG, Plasma, niccolove

Reviewed By: ngraham, VDG, niccolove

Subscribers: davidre, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D27465