mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
* Source/NSSecureTextFieldCell (-drawInteriorWithFrame:): Draw
disabled cell with controlBackgroundColor. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24289 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d6fb03e8c5
commit
24f6989433
2 changed files with 10 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
cell background with controlBackgroundColor.
|
||||
* Source/NSCell.m (-drawInteriorWithFrame:): Draw disabled cell text
|
||||
with disabledControlTextColor.
|
||||
* Source/NSSecureTextFieldCell (-drawInteriorWithFrame:): Draw
|
||||
disabled cell with controlBackgroundColor.
|
||||
|
||||
2006-12-27 Richard Frith-Macdoanld <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -117,7 +117,14 @@
|
|||
/* Draw background, then ... */
|
||||
if (_textfieldcell_draws_background)
|
||||
{
|
||||
[_background_color set];
|
||||
if ([self isEnabled])
|
||||
{
|
||||
[_background_color set];
|
||||
}
|
||||
else
|
||||
{
|
||||
[[NSColor controlBackgroundColor] set];
|
||||
}
|
||||
NSRectFill ([self drawingRectForBounds: cellFrame]);
|
||||
}
|
||||
/* .. do nothing. */
|
||||
|
|
Loading…
Reference in a new issue