Replaced the slider's images with alpha-channel ones. Modified NSSliderCell to draw the background behind

the button using [NSColor controlBackgroundColor]. (images from Ingolf Jandt)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22685 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicolas Roard 2006-03-19 18:59:38 +00:00
parent 75da7d8cdc
commit dd5173a47a
3 changed files with 4 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -181,6 +181,10 @@ DEFINE_RINT_IF_MISSING
*/
- (void) drawKnob: (NSRect)knobRect
{
NSColor* knobBackgroundColor = [NSColor controlBackgroundColor];
[knobBackgroundColor set];
NSRectFill (knobRect);
[_knobCell drawInteriorWithFrame: knobRect inView: _control_view];
}