mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:20:37 +00:00
NSBrowser header themeing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30189 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5767b71934
commit
dcebe1ef37
5 changed files with 73 additions and 3 deletions
|
@ -206,14 +206,21 @@ static NSTextFieldCell *titleCell;
|
|||
- (NSRect) drawingRectForBounds: (NSRect)theRect
|
||||
{
|
||||
// This adjustment must match the drawn border
|
||||
return NSInsetRect(theRect, 2, 2);
|
||||
return [[GSTheme theme] browserHeaderDrawingRectForCell: self
|
||||
withFrame: theRect];
|
||||
}
|
||||
|
||||
- (void) _drawBorderAndBackgroundWithFrame: (NSRect)cellFrame
|
||||
inView: (NSView*)controlView
|
||||
{
|
||||
[[GSTheme theme] drawGrayBezel: cellFrame withClip: NSZeroRect];
|
||||
[self _drawBackgroundWithFrame: cellFrame inView: controlView];
|
||||
[[GSTheme theme] drawBrowserHeaderCell: self
|
||||
withFrame: cellFrame
|
||||
inView: controlView];
|
||||
}
|
||||
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue