Bug 417943 - [Solved] System tray icons too small, and no option to increase them
Summary: [Solved] System tray icons too small, and no option to increase them
Status: RESOLVED UPSTREAM
Alias: None
Product: lattedock
Classification: Unmaintained
Component: plasmoid (other bugs)
Version First Reported In: 0.9.8.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-20 17:06 UTC by Recesvintvs
Modified: 2020-02-21 18:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Detail of the systray on Latte (188.02 KB, image/jpeg)
2020-02-20 17:06 UTC, Recesvintvs
Details
plasma-org.kde.plasma.desktop-appletsrc (3.89 KB, text/plain)
2020-02-20 20:55 UTC, Recesvintvs
Details
Systray without and with "iconSize" tweak (4.80 KB, image/jpeg)
2020-02-20 20:59 UTC, Recesvintvs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Recesvintvs 2020-02-20 17:06:27 UTC
Here I post a detailed screenshot of the system tray widget on Latte Dock. Note that I've put a ruler, stuck to the screen, so you can see that some icons are almost as small as 2,6 or 2,7 mm wide, no more.
This is on a 27" 4K screen, which normally one will watch from a distance of 70 or 80 cm at least; so, even with a perfect vision, it's not very comfortable.

for the Plasma native panel one could edit the file plasma-org.kde.plasma.desktop-appletsrc and increase the size. Dealing with config files is far away from an optimal solution for an average desktop user, but it worked; but it seems that this doesn't have any effect in Latte, I guess it don't use plasma-org.kde.plasma.desktop-appletsrc, nor there is any GUI to change icons' size (or at least I havent been able to find it). Maybe something is scaping to me?
Comment 1 Recesvintvs 2020-02-20 17:06:57 UTC
Created attachment 126219 [details]
Detail of the systray on Latte
Comment 2 Michail Vourlakos 2020-02-20 17:34:56 UTC
If you want to edit the Latte systray you can do show at the Latte layout files.
Comment 3 Michail Vourlakos 2020-02-20 17:38:51 UTC
But please give me some information what setting you are adding in the configuration file, because
I can play with this with my systray tweaks at https://github.com/psifidotos/plasma-systray-latte-tweaks
Comment 4 Recesvintvs 2020-02-20 18:15:23 UTC
(In reply to Michail Vourlakos from comment #2)
> If you want to edit the Latte systray you can do show at the Latte layout
> files.

If I understand you well you mean that I can edit the .latte files like for Plasma desktop files, right?
Well, I've done like I used to do in the old file plasma-org.kde.plasma.desktop-appletsrc: I have quitted Latte, searched, in the  the default layout (where lives the dock which systray I want to modify), the line beginning with "extraItems=", added "iconSize=" as a new line right after, and played with different values; then I restarted latte, but there have been no changes and the file Por omisión.layout (that's how it's named the default layout file in my spanish configured desktop) is overwritten every time I restart Latte.
I supose that I'm not doing the things well...
Comment 5 Recesvintvs 2020-02-20 18:23:37 UTC
(In reply to Michail Vourlakos from comment #3)
> But please give me some information what setting you are adding in the
> configuration file, because
> I can play with this with my systray tweaks at
> https://github.com/psifidotos/plasma-systray-latte-tweaks

I see, but besides the icon color that GUI only permits to modify icons space, no? I don't mind very much the separation between icons but the size of them. Sometimes they are hard to distinguish but not for being too close one to the others, but because a bad "legibility" of the icons themselves.
I don't know if I've explained me well; as you sure have noted, english tonge is not one of my talents 😅. Please dont hesitate saying "Hey, dude, I don't understand a s*it of what you say". Ill try to do my best and try again
Comment 6 Michail Vourlakos 2020-02-20 19:15:42 UTC
Send me a plasma applets rc file that you have added the iconSize record and it works in your Plasma 5.18 system and your plasma panels.
Comment 7 Michail Vourlakos 2020-02-20 19:17:59 UTC
You can read at, https://github.com/KDE/plasma-workspace/blob/master/applets/systemtray/package/contents/config/main.xml#L28 what values are accepted for iconSize, it is NOT a pixels value.
Comment 8 Recesvintvs 2020-02-20 20:55:22 UTC
> Send me a plasma applets rc file that you have added the iconSize record and
> it works in your Plasma 5.18 system and your plasma panels.

Here you have it:
Comment 9 Recesvintvs 2020-02-20 20:55:42 UTC
Created attachment 126231 [details]
plasma-org.kde.plasma.desktop-appletsrc
Comment 10 Recesvintvs 2020-02-20 20:58:43 UTC
As you can see, only adding the line "iconSize=2" at the end of the paragraph that beins with "extraItems" in the section "[Containments][26][General]" does the trick.

I attach below also a before/after screenshot for ilustrative purposes.
Comment 11 Recesvintvs 2020-02-20 20:59:43 UTC
Created attachment 126232 [details]
Systray without and with "iconSize" tweak
Comment 12 Michail Vourlakos 2020-02-21 05:50:42 UTC
that works just fine with Latte you probably have added the iconSize value in wrong systray... I will add that option in my plasma systray tweaks also...
Comment 13 Michail Vourlakos 2020-02-21 05:52:13 UTC
please go to folder "~/.config/latte" and run command "ls -al" and send here its output, I want to check something.
Comment 14 Recesvintvs 2020-02-21 14:36:27 UTC
(In reply to Michail Vourlakos from comment #12)
> that works just fine with Latte you probably have added the iconSize value
> in wrong systray... I will add that option in my plasma systray tweaks
> also...

I think your words might be significant: What do you mean with «works just fine with Latte» and «you probably have added the iconSize value in wrong systray»? I have not added anything anywhere but in the file plasma-org.kde.plasma.desktop-appletsrc, and only after you asked me to send you that file.

I think I mentioned it in the other bug, but probably I should have done it here too. I'm using a "dummy" user account for all these tests. I try to do it always, if possible, when I report a bug. I have a user account on my system that I only use for tests in case of problems. That user gets completely wiped its home folder every time I need to report a new bug, so I reproduce the bug with a fresh and clean session. I do this to be sure that the problem, isn't due to some configuration that isnt supported anymore by KDE nor because some corrupted file or anything that could come from an user configuration.
I explain this for make clear that these tests have been done without any change from my side but adding "inconSize=2" in the plasma config file to show you haow I could increase the icons size in the Plasma panel but not in Latte. But besides that, everithing is done using default values. Sorry if I had made you think otherwise

So, according to you comment I understand that you are asuming that I should have added the iconSize thing somewhere besides the file plasma-org.kde.plasma.desktop-appletsrc, am I right? If yes, please, tell me where should I have added the "iconSize" modifier? Maybe there is the root of the problem.
Comment 15 Recesvintvs 2020-02-21 14:39:21 UTC
(In reply to Michail Vourlakos from comment #13)
> please go to folder "~/.config/latte" and run command "ls -al" and send here
> its output, I want to check something.

"pruebas", meaning "tests", is the username, as you can guess.

ls -al /home/pruebas/.config/latte
total 32
drwxr-xr-x 1 pruebas pruebas  302 feb 20 21:47  .
drwxr-xr-x 1 pruebas pruebas 1364 feb 20 21:47  ..
-rw-r--r-- 1 pruebas pruebas 3804 feb 20 15:01  Extendido.layout.latte
-rw-r--r-- 1 pruebas pruebas 1600 feb 20 21:47  L1.layout.latte
-rw-r--r-- 1 pruebas pruebas 1391 feb 20 21:47  L2.layout.latte
-rw-r--r-- 1 pruebas pruebas  122 feb 20 21:47  .multiple-layouts_hidden.layout.latte
-rw-r--r-- 1 pruebas pruebas 3186 feb 20 15:01  Plasma.layout.latte
-rw-r--r-- 1 pruebas pruebas 4978 feb 20 21:47 'Por omisión.layout.latte'
-rw-r--r-- 1 pruebas pruebas 3948 feb 20 15:01  Unity.layout.latte
Comment 16 Michail Vourlakos 2020-02-21 16:08:10 UTC
Solution A:
You can use my plasma systray tweaks than now provide an IconSize option to choose the icons size from: https://github.com/psifidotos/plasma-systray-latte-tweaks

Solution B:
The iconSize=2 value must be added in your latte layout file. In your case that is:
~/.config/latte/Por omisión.layout.latte
Comment 17 Recesvintvs 2020-02-21 18:21:01 UTC
> Solution B:
> The iconSize=2 value must be added in your latte layout file. In your case
> that is:
> ~/.config/latte/Por omisión.layout.latte

Ok, that was the problem. I had to add "iconSize=2" as a new line to the paragraph that begins with «[Containments][Some number here][General]
extraItems=» in the .latte file that affects the dock in question. Exactly like in the file plasma-org.kde.plasma.desktop-appletsrc and problem gone. I should have digged deeper in those .latte files once I knew of them; we would have save many headaches. 😅

I've tried your GUI as well. Perfect. The perfect solution for the vast majority, I think, who dont feel confortable editing config files o that ignore absolutelly, like I did, that exist those useful .latte files inside .config/latte directory.
It also has that icon color configuration tool that is very useful when one cant see well the icons because the desktop wallpaper has a similar color.
Very nice tool . I hope it will be integrate in Latte so people doesnt have to installa and uptade it from Github manually.

So, problem solved. Efjaristó polí, Michail. :)