mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-78382 bugs&lags in color chooser
This commit is contained in:
@@ -185,7 +185,7 @@ public class ColorPicker extends JPanel implements Consumer<Color>, DocumentList
|
||||
}
|
||||
|
||||
if (color != null) {
|
||||
updatePreview(color, true);
|
||||
updatePreview(color, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -256,6 +256,7 @@ public class ColorPicker extends JPanel implements Consumer<Color>, DocumentList
|
||||
forEveryKey(new PairFunction<JTextField, Pair<String, String>, Boolean>() {
|
||||
@Override
|
||||
public Boolean fun(JTextField _c, Pair<String, String> pair) {
|
||||
if (_c.hasFocus()) return true;
|
||||
final String R = Integer.toHexString(c.getRed());
|
||||
final String G = Integer.toHexString(c.getGreen());
|
||||
final String B = Integer.toHexString(c.getBlue());
|
||||
|
||||
Reference in New Issue
Block a user