Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uptray icons: fix the 'black hole' #127
Comments
marmarek
added this to the Release 1 Beta 1 milestone
Mar 8, 2015
marmarek
added
bug
C: gui-virtualization
P: major
labels
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by joanna on 24 Mar 2011 20:52 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by smoku on 27 Mar 2011 15:17 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by smoku on 28 Mar 2011 12:51 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by smoku on 30 Mar 2011 12:11 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by smoku on 1 Apr 2011 01:58 UTC
Implemented in: http://git.qubes-os.org/?p=smoku/gui;a=commit;h=35647b9eb54c689e81aa5b9bdd4ab60fc1de41d2
Some comments though:
I do not have full alpha channel available. I do not even have ''any'' transparency info. So I assume that the color of the top-left pixel of the tray icon is a transparent color, then generate transparency mask accordingly.
It creates an issue with alpha blended (antialiased) icons. They are blended to vmside root window, which is black. This creates even more ugly "shadow" around the icon.
My idea to mitigate it is:
- set the docked icon background to the VM color (as Joanna wished anyway)
xsetroot -solid VM_COLORon the vmside
This blends the icon to the color of the VM and paints on the same color background, which does not look ugly.
|
Comment by smoku on 1 Apr 2011 01:58 UTC Some comments though: It creates an issue with alpha blended (antialiased) icons. They are blended to vmside root window, which is black. This creates even more ugly "shadow" around the icon. My idea to mitigate it is:
|
marmarek
closed this
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 4 Apr 2011 12:40 UTC
I have never wished to set the icon's background to the VM color (I said we could repain the icon in "grayscale" colored to the VM color) -- this not only looks bad, but is also insecure, as the AppVM controls the background!
|
Comment by joanna on 4 Apr 2011 12:40 UTC |
marmarek
added
P: critical
and removed
P: major
labels
Mar 8, 2015
marmarek
reopened this
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 4 Apr 2011 12:46 UTC
If nothing better was possible, we could just set the bgd of the parent (root) window to white. And still draw the frame in Dom0 around the icon using the VM.color.
|
Comment by joanna on 4 Apr 2011 12:46 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 4 Apr 2011 12:47 UTC
Set bgd to white in the VM. I think white is the safefest color, assuring most icons would just look good. Or some light gray.
|
Comment by joanna on 4 Apr 2011 12:47 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 4 Apr 2011 12:59 UTC
Actually the tray icon (as of v1.2.1) is transparent to Dom0 root window, not to VM root window. I.e. if I move a window in Dom0 beneath the tray, I can see it through the icon's bgd.
|
Comment by joanna on 4 Apr 2011 12:59 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by marmarek on 4 Apr 2011 15:47 UTC |
marmarek
self-assigned this
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by smoku on 5 Apr 2011 11:12 UTC |
marmarek
removed their assignment
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by smoku on 5 Apr 2011 19:31 UTC
White tray and vm background implemented in: http://git.qubes-os.org/?p=smoku/gui;a=commit;h=329128f313738c42c5a7a21638c13855cff7b23a
|
Comment by smoku on 5 Apr 2011 19:31 UTC |
marmarek commentedMar 8, 2015
Reported by joanna on 24 Mar 2011 16:58 UTC
We should really use the tray's background instead of the ugly black background for displaying tray icons from AppVMs!
Migrated-From: https://wiki.qubes-os.org/ticket/127