m0ngr31/VirtualDesktopManager

Changing Icons

chitarup opened this issue · 4 comments

Hi,
thanks for the nice and helpful app. I tried to compile with different icons, but unfortunately replacing the icon-files is not enough. I also couldn't find the piece of code where icons get loaded. Are there more lines of code as the ones I get when downloading the source code zip file?

Best whishes
Chitarup

iskmz commented

@chitarup

at first , I did as you, changing the icon files and recompiling in Visual Studio , nothing changed.

so after digging deeper into the changes in the code, more specifically in the latest release (1.9) after it was adapted to support up to 999 icons , I figured it out! The icon files which remained there are all extra and not used by the code anymore ; only mainIco.png is used and you can change it as you wish in order to change the BACKGROUND of numbers in tray icon.

but to change the number itself (its color, size, x-y-positions, font, ... ) you need to change the code in the file: "Form1.cs", at function "private void changeTrayIcon(...)" : lines 239-276.

attached is the current "modified" version 1.9 I use, with changes to mainIco.png and to Form1.cs ; note that I restricted the code back to 0-9 desktops only with "+" for >9 desktops (this way numbers are big enough to be seen!) .. it is already compiled, you can simply run it if you like ...

VirtualDesktopManager-1.9.0_SOURCE__ReCompiled.zip

iskmz commented

added few more useful features today ...
below is the latest version (source code + compilation) ....

  1. move to next desktop (by numerical order) on single-left-mouse-click (on tray icon)
  2. move to previous desktop (by numerical order) on single-left-mouse-click + holding SHIFT button (right or left)
  3. two tooltip menu items: NEXT , PREVIOUS that do the above functionalities (1,2) ...

VirtualDesktopManager-1.9.0_ReCompiled_added-features.zip


idea for future (or someone else might do it):-
adding all desktops currently open as tooltip-menu items ... and moving to each directly on click ....
but should learn how to add tooltip-menu items programmatically first .... maybe later ...

iskmz commented

last update ...
after many failures , was able to finally add desktops list menu .. to go to each desktop by a single click ...
also added Desktop# shown when mouse-hovering over tray icon (useful when >9 desktops)

Screenshot 2022-02-19 000216

Screenshot 2022-02-19 102819

VirtualDesktopManager-1.9.0__recompiled_final__2022-02-19.zip