* 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.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-08-28 21:22:52 +00:00
parent fd1e6db81d
commit 989fb01d6d
4 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,14 @@
2009-08-28 17:19-EDT Gregory John Casamento <greg.casamento@gmail.com>
* 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 <rfm@gnu.org>
* Source/GSTheme.m: Fixes to properly restore previous common images

View file

@ -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 \

BIN
Images/common_DimpleH.tiff Normal file

Binary file not shown.

View file

@ -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;