color picker: resize color slider to fit knob at max rgba values
This commit is contained in:
@@ -98,7 +98,7 @@ public class ColorValueSlider extends JPanel
|
||||
super.paint(g);
|
||||
|
||||
g.setColor(TRACK_COLOR);
|
||||
g.fillRect(0, this.getHeight() / 2 - 2, this.getWidth() - KNOB_WIDTH, 5);
|
||||
g.fillRect(0, this.getHeight() / 2 - 2, ColorUtil.MAX_RGB_VALUE + KNOB_WIDTH * 2, 5);
|
||||
|
||||
g.setColor(KNOB_COLOR);
|
||||
g.fillRect(value - KNOB_WIDTH / 2, this.getHeight() / 2 - KNOB_HEIGHT / 2, KNOB_WIDTH, KNOB_HEIGHT);
|
||||
|
||||
@@ -65,7 +65,7 @@ public class RuneliteColorPicker extends JDialog
|
||||
{
|
||||
static final String CONFIG_GROUP = "colorpicker";
|
||||
|
||||
private final static int FRAME_WIDTH = 400;
|
||||
private final static int FRAME_WIDTH = 410;
|
||||
private final static int FRAME_HEIGHT = 380;
|
||||
private final static int TONE_PANEL_SIZE = 160;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user