mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 17:40:36 +00:00
* Source/NSTextFieldCell.m (-drawInteriorWithFrame:): Draw disabled
cell background with controlBackgroundColor. * Source/NSCell.m (-drawInteriorWithFrame:): Draw disabled cell text with disabledControlTextColor. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24288 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b5e970268a
commit
aca4927b57
3 changed files with 41 additions and 3 deletions
|
@ -189,9 +189,17 @@ static NSColor *txtCol;
|
|||
{
|
||||
if (_textfieldcell_draws_background)
|
||||
{
|
||||
[_background_color set];
|
||||
if ([self isEnabled])
|
||||
{
|
||||
[_background_color set];
|
||||
}
|
||||
else
|
||||
{
|
||||
[[NSColor controlBackgroundColor] set];
|
||||
}
|
||||
NSRectFill ([self drawingRectForBounds: cellFrame]);
|
||||
}
|
||||
|
||||
[super drawInteriorWithFrame: cellFrame inView: controlView];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue