Added: #2305 Saving recent colors in the color selection dialog

This commit is contained in:
Jindra Petřík
2024-09-28 22:55:25 +02:00
parent 3a702a21d7
commit 078e0564d8
10 changed files with 1110 additions and 3 deletions

View File

@@ -16,8 +16,10 @@
*/
package com.jpexs.decompiler.flash.gui;
import com.jpexs.decompiler.flash.gui.colordialog.MyColorChooserDialog;
import com.jpexs.decompiler.flash.configuration.ConfigurationItem;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JCheckBox;
@@ -134,4 +136,10 @@ public class ViewMessages {
});
return ret[0];
}
public static Color showColorDialog(Component parentComponent, Color initialColor, boolean withTransparency) {
MyColorChooserDialog colorDialog = new MyColorChooserDialog(parentComponent, initialColor, withTransparency);
colorDialog.setVisible(true);
return colorDialog.getColor();
}
}