mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-244727 make registry key handle all new color pickers
GitOrigin-RevId: 29aed03642dc34fbbdad53ef8ca8620423044afd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
524d72b8af
commit
187bfe5e05
@@ -21,6 +21,7 @@ import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.NlsContexts.DialogTitle;
|
||||
import com.intellij.openapi.util.Ref;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.wm.IdeFocusManager;
|
||||
import com.intellij.openapi.wm.WindowManager;
|
||||
@@ -422,7 +423,7 @@ public class ColorPicker extends JPanel implements ColorListener, DocumentListen
|
||||
}
|
||||
|
||||
public static void showColorPickerPopup(@Nullable final Project project, @Nullable Color currentColor, @NotNull final ColorListener listener, @Nullable RelativePoint location, boolean showAlpha, boolean showAlphaAsPercent) {
|
||||
if(!isEnoughSpaceToShowPopup()) {
|
||||
if( !isEnoughSpaceToShowPopup() || !Registry.is("ide.new.color.picker")) {
|
||||
Color color = showDialog(IdeFocusManager.getGlobalInstance().getFocusOwner(), IdeBundle.message("dialog.title.choose.color"),
|
||||
currentColor, showAlpha, null, showAlphaAsPercent);
|
||||
if (color != null) {
|
||||
|
||||
Reference in New Issue
Block a user