Javadoc and short notation

This commit is contained in:
DieGurke 2019-12-23 16:43:59 +01:00
parent a6c4d42c98
commit 5c7563a06b
2 changed files with 3 additions and 6 deletions

View File

@ -17,6 +17,7 @@ import envoy.client.SettingsItem;
* Created: <strong>21 Dec 2019</strong><br>
*
* @author Maximilian K&auml;fer
* @author Kai S. K. Engelbart
* @since Envoy v0.3-alpha
*/
public class PrimaryToggleSwitch extends JButton {
@ -50,10 +51,6 @@ public class PrimaryToggleSwitch extends JButton {
g.fillRoundRect(0, 0, getWidth(), getHeight(), 25, 25);
g.setColor(Settings.getInstance().getThemes().get(Settings.getInstance().getCurrentTheme()).getInteractableBackgroundColor());
if (state)
g.fillRoundRect(25, 0, 25, 25, 25, 25);
else
g.fillRoundRect(0, 0, 25, 25, 25, 25);
g.fillRoundRect(state ? 25 : 0, 0, 25, 25, 25, 25);
}
}

View File

@ -19,7 +19,7 @@ import envoy.client.util.EnvoyLog;
* Displays GUI components that allow general settings regarding the client.<br>
* <br>
* Project: <strong>envoy-client</strong><br>
* File: <strong>General.java</strong><br>
* File: <strong>GeneralSettingsPanel.java</strong><br>
* Created: <strong>21 Dec 2019</strong><br>
*
* @author Maximilian K&auml;fer