client: Set toggle button size

This commit is contained in:
Owain van Brakel
2021-10-01 10:38:04 +02:00
parent 4938b84123
commit b0cad55c48
2 changed files with 2 additions and 1 deletions

View File

@@ -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));

View File

@@ -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();