* ColorPickers/GSWheelColorPicker.m: Rewrite to draw the HSV

wheel in a bitmap. This gives a pretty large performance improvement.
* Source/NSColorPanel.m: Set a sensible min and max size for the
color panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31195 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-08-23 23:34:06 +00:00
parent 11dd73b98a
commit f44eeebd53
3 changed files with 266 additions and 141 deletions

View file

@ -207,6 +207,7 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
- (id) _initWithoutGModel
{
NSRect contentRect = {{352, 519}, {200, 270}};
NSSize maxContentSize = {500, 675};
NSRect topViewRect = {{0, 0}, {200, 270}};
NSRect magnifyRect = {{4, 230}, {50, 36}};
NSRect wellRect = {{58, 230}, {138, 36}};
@ -232,7 +233,8 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
screen: nil];
[self setTitle: _(@"Colors")];
[self setBecomesKeyOnlyIfNeeded: YES];
[self setContentMinSize: contentRect.size];
[self setContentMaxSize: maxContentSize];
v = [self contentView];
_topView = [[NSView alloc] initWithFrame: topViewRect];