mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Color chooser dialog defaults to the existing color value being edited
This commit is contained in:
@@ -3493,7 +3493,11 @@
|
|||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>NEW_FEATURE</changeType>
|
<changeType>NEW_FEATURE</changeType>
|
||||||
<description>When editing component colors, honor the specified 'alpha' value specified on each color individually in addition to the component-level alpha property</description>
|
<description>When editing component colors, honor the specified 'alpha' value specified on each color individually in addition to the component-level alpha property</description>
|
||||||
</org.diylc.appframework.update.Change>
|
</org.diylc.appframework.update.Change>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>Color chooser dialog defaults to the existing color value being edited</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Single click to expand and collapse categories in the component tree</description>
|
<description>Single click to expand and collapse categories in the component tree</description>
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ public class ColorEditor extends JPanel {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void mouseClicked(MouseEvent e) {
|
||||||
Color newColor = JColorChooser.showDialog(ColorEditor.this, "Choose Color", getBackground());
|
Color newColor = JColorChooser.showDialog(ColorEditor.this, "Choose Color", colorLabel.getBackground());
|
||||||
if (newColor != null) {
|
if (newColor != null) {
|
||||||
property.setChanged(true);
|
property.setChanged(true);
|
||||||
property.setValue(new Color(newColor.getRGB()));
|
property.setValue(new Color(newColor.getRGB()));
|
||||||
|
|||||||
Reference in New Issue
Block a user