Revision: 29771
http://sourceforge.net/p/bibdesk/svn/29771
Author: hofman
Date: 2025-11-06 22:48:42 +0000 (Thu, 06 Nov 2025)
Log Message:
-----------
set text color for header cells in nib
Modified Paths:
--------------
trunk/bibdesk/BDSKFileMatcher.m
trunk/bibdesk/Base.lproj/FileMatcher.xib
Modified: trunk/bibdesk/BDSKFileMatcher.m
===================================================================
--- trunk/bibdesk/BDSKFileMatcher.m 2025-11-06 22:33:50 UTC (rev 29770)
+++ trunk/bibdesk/BDSKFileMatcher.m 2025-11-06 22:48:42 UTC (rev 29771)
@@ -260,15 +260,10 @@
#pragma mark Delegate display methods
- (NSView *)outlineView:(NSOutlineView *)ov viewForTableColumn:(NSTableColumn
*)tableColumn item:(id)item {
- NSString *columnID = [tableColumn identifier];
- NSTableCellView *view = nil;
- if ([item isLeaf]) {
- view = [ov makeViewWithIdentifier:columnID owner:self];
- } else {
- view = [ov makeViewWithIdentifier:[columnID
stringByAppendingString:@"Head"] owner:self];
- [[view textField] setTextColor:[NSColor secondaryLabelColor]];
- }
- return view;
+ NSString *identifier = [tableColumn identifier];
+ if ([item isLeaf] == NO)
+ identifier = [identifier stringByAppendingString:@"Head"];
+ return [ov makeViewWithIdentifier:identifier owner:self];
}
// return a larger row height for the items; tried using a spotlight
controller image, but row size is too large to be practical
Modified: trunk/bibdesk/Base.lproj/FileMatcher.xib
===================================================================
--- trunk/bibdesk/Base.lproj/FileMatcher.xib 2025-11-06 22:33:50 UTC (rev
29770)
+++ trunk/bibdesk/Base.lproj/FileMatcher.xib 2025-11-06 22:48:42 UTC (rev
29771)
@@ -75,7 +75,7 @@
<rect key="frame"
x="16" y="1" width="354" height="16"/>
<textFieldCell
key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES"
id="ej0-Y0-FYX">
<font
key="font" metaFont="systemBold"/>
- <color
key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+ <color
key="textColor" name="secondaryLabelColor" catalog="System"
colorSpace="catalog"/>
<color
key="backgroundColor" name="textBackgroundColor" catalog="System"
colorSpace="catalog"/>
</textFieldCell>
<connections>
@@ -155,7 +155,7 @@
<rect key="frame"
x="0.0" y="0.0" width="73" height="16"/>
<textFieldCell
key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES"
id="XDG-m0-fd9">
<font
key="font" metaFont="system"/>
- <color
key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+ <color
key="textColor" name="secondaryLabelColor" catalog="System"
colorSpace="catalog"/>
<color
key="backgroundColor" name="textBackgroundColor" catalog="System"
colorSpace="catalog"/>
</textFieldCell>
<connections>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit