diff --git a/ChangeLog b/ChangeLog index 65028a27d..1d9805924 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2009-08-28 17:19-EDT Gregory John Casamento + + * Images/common_DimpleH.tiff: Horizontal image for dimple. This + image is not different from the vertical dimple for the default + theme. It's here so that it can be overriden by a theme, if + needed. + * Images/GNUmakefile: Add new image. + * Source/GSThemeDrawing.m: Modify code in cellForScrollerKnob + to use common_Dimple.tiff or common_DimpleH.tiff depending + on the orientation of the scroller. + 2009-08-28 Richard Frith-Macdonald * Source/GSTheme.m: Fixes to properly restore previous common images diff --git a/Images/GNUmakefile b/Images/GNUmakefile index 3ba3c0556..b9bc0b395 100644 --- a/Images/GNUmakefile +++ b/Images/GNUmakefile @@ -88,6 +88,7 @@ common_UpAndDownArrowSmall.tiff \ common_DownArrowSmall.tiff \ common_Nibble.tiff \ common_Dimple.tiff \ +common_DimpleH.tiff \ common_ret.tiff \ common_retH.tiff \ common_Unknown.tiff \ diff --git a/Images/common_DimpleH.tiff b/Images/common_DimpleH.tiff new file mode 100644 index 000000000..e46c0022e Binary files /dev/null and b/Images/common_DimpleH.tiff differ diff --git a/Source/GSThemeDrawing.m b/Source/GSThemeDrawing.m index 5ba2a5979..f38cd920e 100644 --- a/Source/GSThemeDrawing.m +++ b/Source/GSThemeDrawing.m @@ -348,15 +348,17 @@ cell = [NSButtonCell new]; [cell setButtonType: NSMomentaryChangeButton]; - [cell setImage: [NSImage imageNamed: @"common_Dimple"]]; [cell setImagePosition: NSImageOnly]; if (horizontal) { [self setName: GSScrollerHorizontalKnob forElement: cell temporary: YES]; + [cell setImage: [NSImage imageNamed: @"common_Dimple"]]; } else { [self setName: GSScrollerVerticalKnob forElement: cell temporary: YES]; + [cell setImage: [NSImage imageNamed: @"common_DimpleH"]]; + } RELEASE(cell); return cell;