applets/taskmanager: use TextMetrics directly to elide long recent items
Currently the code uses a linear search to elide long recent items. This can take more than 10 seconds for apps like qBittorrent which can have recent URL items with 1000+ characters.
Change the code to use TextMetrics.elidedText directly without a linear search.
(cherry picked from commit 2a334405)