Opened 18 years ago
Closed 18 years ago
#1033 closed bug (fixed)
8-bit icons in Tracker's context menu's "New" submenu
Reported by: | jonas.kirilla | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Tracker | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Tracker's context menu's "New" menu items still show 8-bit icons, so here's a patch for review and commit:
http://www.kirilla.com/haiku/IconMenuItem.cpp.diff
I don't know if the Push/PopState() is necessary.
Attachments (2)
Change History (8)
by , 18 years ago
Attachment: | IconMenuItem.cpp.diff added |
---|
follow-up: 2 comment:1 by , 18 years ago
Thanks for the patch! Bug reports like this are the best :-) Unfortunately, I can't commit it, as it will break Tracker's "New" menu on R5. If you have the time to rework it for both builds, I'd appreciate it, but if not, I can do it as well. Just tell me.
The Push/PopState() should not be necessary (at least not if it wasn't before), but it shouldn't hurt either.
comment:2 by , 18 years ago
Replying to axeld:
If you have the time to rework it for both builds, I'd appreciate it, but if not, I can do it as well. Just tell me.
I can do it tomorrow or early next week. I suppose with ifdefs for Haiku/BeOS in the IconMenuItems' constructors bitmap creation (CMAP8/RGB32) and for part of DrawContent().
by , 18 years ago
Attachment: | IconMenuItem.cpp.2.diff added |
---|
follow-up: 5 comment:4 by , 18 years ago
I think I'm done. See attachment: IconMenuItem.cpp.2.diff
Axel, feel free to edit as you see fit. I'll take a look at your changes in SVN.
comment:5 by , 18 years ago
Having had another look at the result, magnified, I think the line "where.y = Frame().top + 2;" should be "where.y = Frame().top + 1;" instead, so there's space below as well as above the icon.
comment:6 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks! Patch applied in hrev20240. While I was at it, I've changed the positioning code to duplicate the method used in ModelMenuItem which should work better with larger font sizes.
Possible fix