[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arrow of NSMenu
From: |
Eric Wasylishen |
Subject: |
Re: Arrow of NSMenu |
Date: |
Sat, 6 Apr 2013 04:06:33 -0400 |
Hi Riccardo,
I committed a fix in r36474. What I ended up doing is, when a GSTheme
activates, it takes the image name -> path dictionary of images in the theme,
and "expands" it by applying all of the nsmappings.strings mappings.
So if your theme defines common_3DArrowRight.tiff but not NSMenuArrow, I'll
produce a dictionary like:
{
"common_3DArrowRight" : "path/to/common_3DArrowRight.tiff",
"NSMenuArrow" : "path/to/common_3DArrowRight.tiff",
}
This expanded set of images is then applied to the app state using +[NSImage
_setImagePath:name:], and the same expanded set is unregistered when the theme
deactivates.
Hope this works for you, and the behaviour sounds sensible.
Cheers.
Eric
On 2013-04-05, at 5:25 AM, Riccardo Mottola <address@hidden> wrote:
> Hi all,
>
> On 03/28/13 16:40, Eric Wasylishen wrote:
>>
>> Hey Riccardo, check the nsmappings.strings file in Images. I think that maps
>> nsmenuarrow to one of the common_ images.
>>
> back to the original problem, which is different from what German supposed.
>
> Let's remember that we have a mapping
>
> NSMenuArrow = common_3DArrowRight;
>
>
> Leaving out Thematic for a moment, I found that placing inside the Theme
> Images a an image named
>
> common_3DArrowRight.tif
>
> doesn't work, while putting one called
>
> NSMenuArrow.tif
>
> works fine and the image gets loaded even dynamically when changing the theme.
>
>
> Riccardo
- Re: Arrow of NSMenu,
Eric Wasylishen <=