mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-27 21:15:37 +00:00
Added: #2305 Saving recent colors in the color selection dialog
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user