Javadoc and short notation
This commit is contained in:
		| @@ -17,6 +17,7 @@ import envoy.client.SettingsItem; | ||||
|  * Created: <strong>21 Dec 2019</strong><br> | ||||
|  *  | ||||
|  * @author Maximilian Kä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); | ||||
| 	} | ||||
| } | ||||
| @@ -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äfer | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 DieGurke
					DieGurke