Closed Bug 95894 Opened 23 years ago Closed 23 years ago

Turbo icon is horked

Categories

(Core Graveyard :: QuickLaunch (AKA turbo mode), defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

Attachments

(1 file, 1 obsolete file)

System tray icons can only support up to 16 colors, hence how bad they currently 
look :-)
QA Contact: sairuh → jrgm
Blocks: 75599
is 16 a limitation of the windows system tray, what about the rest of the start 
bar?
are there other icons (plural) needed for system tray?  or just turbo?
All that's needed now is the N for commercial, mozilla's gecko is fine (this
should really be a bugscape bug).
at the moment we have no control over the system tray icon, windows is so 
intelligent, that it just takes and dithers and distorts the application icon. 
so, there is no "system tray icon", just the application icon.  if you come up 
with a way to have one, then that would be great.
mIconData.hIcon =  ::LoadIcon( ::GetModuleHandle( NULL ), IDI_APPLICATION )

MSDN wasn't too helpful in identifying other possible constants besides
IDI_APPLICATION, other than things like IDI_EXCLAMATION and the other standard
win32 msgbox icons.

Bill, any ideas?
Attached image netscape system tray icon in win 4 bit (obsolete) —
what's weird is that the 4bit icon in the App.ico is fine, so i am not sure what 
the deal is.  System tray must be destroying it
::LoadIcon probably loads the first image in the icon resource.  When the system
tray gets that, it scales/dithers.  The fix *might* be to use ::LoadImage to
load the properly-sized icon, which the system tray would then use without
screwing it up.

There's an example of the necessary ::LoadImage call at
http://lxr.mozilla.org/seamonkey/source/widget/src/windows/nsWindow.cpp#4612. 
That code loads icons from .ico files, but converting it to load the application
icon from the .exe resource is straightforward.
Blocks: 99488
No longer blocks: 75599
Target Milestone: --- → mozilla1.0
--> QuickLaunch, because I'm not sure what to do with this. It sure is ugly, though.
Assignee: blakeross → law
Component: XP Apps: GUI Features → QuickLaunch (AKA turbo mode)
QA Contact: jrgm → gbush
Target Milestone: mozilla1.0 → ---
Blake, did you try loading the icon size 
::GetSystemMetrics(SM_CXSMICON) x ::GetSystemMetrics(SM_CYSMICON)
as I suggested?  I think that should work, but if you tried that, please let me 
know.

->mozilla0.9.9
Target Milestone: --- → mozilla0.9.9
balancing move of Helper App Mgt feature work bugs to this milestone
Keywords: nsbeta1+
Target Milestone: mozilla0.9.9 → mozilla1.0
-> me
Assignee: law → blaker
Summary: Turbo needs better icon(s) → Turbo icon is horked
Attached patch patchSplinter Review
your idea did work, Bill
Attachment #47931 - Attachment is obsolete: true
Comment on attachment 67560 [details] [diff] [review]
patch

r=law

...after you fix the typo and change the second SM_CXSMICON to SM_CYSMICON.
Attachment #67560 - Flags: review+
fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified code fix
Status: RESOLVED → VERIFIED
QA: this is a real gui bug which should be verified by twiddling with gui settings not by code inspection.
No longer blocks: 99488
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: