Revision: 13005 http://sourceforge.net/p/skim-app/code/13005 Author: hofman Date: 2022-07-10 23:30:43 +0000 (Sun, 10 Jul 2022) Log Message: ----------- set accssibility description for bookmark icons
Modified Paths: -------------- trunk/SKBookmark.m Modified: trunk/SKBookmark.m =================================================================== --- trunk/SKBookmark.m 2022-07-10 22:21:00 UTC (rev 13004) +++ trunk/SKBookmark.m 2022-07-10 23:30:43 UTC (rev 13005) @@ -443,6 +443,8 @@ [icon drawInRect:rect fromRect:NSZeroRect operation:NSCompositeDestinationOver fraction:1.0]; return YES; }]; + if (type) + [icon setAccessibilityDescription:[[NSWorkspace sharedWorkspace] localizedDescriptionForType:type]]; [setupFileTypeIcons setObject:icon forKey:type ?: @""]; } } else { @@ -451,8 +453,10 @@ if (icon == nil) { if (fileTypeIcons == nil) fileTypeIcons = [[NSMutableDictionary alloc] init]; - if (type) + if (type) { icon = [[NSWorkspace sharedWorkspace] iconForFileType:type]; + [icon setAccessibilityDescription:[[NSWorkspace sharedWorkspace] localizedDescriptionForType:type]]; + } if (icon == nil) { NSImage *genericDocImage = [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kGenericDocumentIcon)]; NSImage *questionMark = [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kQuestionMarkIcon)]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit