From 84021cb0c708ce4fcfacb5a3313cab1d9147b281 Mon Sep 17 00:00:00 2001 From: stoyan Date: Wed, 7 Jul 2004 21:49:08 +0000 Subject: [PATCH] Use added highlighted images of buttons git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19691 72102866-910b-0410-8b05-ffd578937521 --- Source/NSScroller.m | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/NSScroller.m b/Source/NSScroller.m index 4d2f0280e..1a63c12dc 100644 --- a/Source/NSScroller.m +++ b/Source/NSScroller.m @@ -275,32 +275,36 @@ static NSColor *scrollBarColor = nil; return; upCell = [NSButtonCell new]; - [upCell setHighlightsBy: NSChangeBackgroundCellMask]; + [upCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask]; [upCell setImage: [NSImage imageNamed: @"common_ArrowUp"]]; + [upCell setAlternateImage: [NSImage imageNamed: @"common_ArrowUpH"]]; [upCell setImagePosition: NSImageOnly]; [upCell setContinuous: YES]; [upCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)]; [upCell setPeriodicDelay: 0.3 interval: 0.03]; downCell = [NSButtonCell new]; - [downCell setHighlightsBy: NSChangeBackgroundCellMask]; + [downCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask]; [downCell setImage: [NSImage imageNamed: @"common_ArrowDown"]]; + [downCell setAlternateImage: [NSImage imageNamed: @"common_ArrowDownH"]]; [downCell setImagePosition: NSImageOnly]; [downCell setContinuous: YES]; [downCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)]; [downCell setPeriodicDelay: 0.3 interval: 0.03]; leftCell = [NSButtonCell new]; - [leftCell setHighlightsBy: NSChangeBackgroundCellMask]; + [leftCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask]; [leftCell setImage: [NSImage imageNamed: @"common_ArrowLeft"]]; + [leftCell setAlternateImage: [NSImage imageNamed: @"common_ArrowLeftH"]]; [leftCell setImagePosition: NSImageOnly]; [leftCell setContinuous: YES]; [leftCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)]; [leftCell setPeriodicDelay: 0.3 interval: 0.03]; rightCell = [NSButtonCell new]; - [rightCell setHighlightsBy: NSChangeBackgroundCellMask]; + [rightCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask]; [rightCell setImage: [NSImage imageNamed: @"common_ArrowRight"]]; + [rightCell setAlternateImage: [NSImage imageNamed: @"common_ArrowRightH"]]; [rightCell setImagePosition: NSImageOnly]; [rightCell setContinuous: YES]; [rightCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];