mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 22:06:42 +00:00
* 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:
parent
11dd73b98a
commit
f44eeebd53
3 changed files with 266 additions and 141 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue