client: Set toggle button size
This commit is contained in:
@@ -489,6 +489,7 @@ class ConfigPanel extends PluginPanel
|
||||
if (cid.getType() == boolean.class)
|
||||
{
|
||||
JCheckBox checkbox = new ToggleButton();
|
||||
checkbox.setPreferredSize(new Dimension(26, 25));
|
||||
checkbox.setSelected(Boolean.parseBoolean(configManager.getConfiguration(cd.getGroup().value(), cid.getItem().keyName())));
|
||||
checkbox.addActionListener(ae -> changeConfiguration(checkbox, cd, cid));
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ class PluginToggleButton extends ToggleButton
|
||||
public PluginToggleButton()
|
||||
{
|
||||
super();
|
||||
setPreferredSize(new Dimension(25, 0));
|
||||
setPreferredSize(new Dimension(26, 25));
|
||||
|
||||
addItemListener(l -> updateTooltip());
|
||||
updateTooltip();
|
||||
|
||||
Reference in New Issue
Block a user