mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 10:50:37 +00:00
NSSegmentedCell themeing support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29435 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b53c941c37
commit
e6c79f2fb8
7 changed files with 115 additions and 9 deletions
|
@ -660,6 +660,23 @@
|
|||
[self drawStepperDownButton: downRect];
|
||||
}
|
||||
|
||||
// NSSegmentedControl drawing methods
|
||||
|
||||
- (void) drawSegmentedControlSegment: (NSCell *)cell
|
||||
withFrame: (NSRect)cellFrame
|
||||
inView: (NSView *)controlView
|
||||
style: (NSSegmentStyle)style
|
||||
state: (GSThemeControlState)state
|
||||
roundedLeft: (BOOL)roundedLeft
|
||||
roundedRight: (BOOL)roundedRight
|
||||
{
|
||||
[[GSTheme theme] drawButton: cellFrame
|
||||
in: cell
|
||||
view: controlView
|
||||
style: NSRegularSquareBezelStyle
|
||||
state: state];
|
||||
}
|
||||
|
||||
- (void) drawImage: (NSImage *)image
|
||||
inButtonCell: (NSButtonCell *) cell
|
||||
withFrame: (NSRect) aRect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue