Cold style improvement
Changed if query with isVertical in PrimaryScrollBar to short form.
This commit is contained in:
		| @@ -83,14 +83,14 @@ public class PrimaryScrollBar extends BasicScrollBarUI{ | ||||
| 			color = scrollBarColor; | ||||
| 		} | ||||
|  | ||||
| 		if (isVertical == true) { | ||||
| 		if (isVertical) { | ||||
| 			g2.setPaint(color); | ||||
| 			g2.fillRoundRect(r.x + 9, r.y, r.width - 10, r.height, arcSize, arcSize); | ||||
| 			g2.setPaint(Settings.getInstance().getThemes().get(Settings.getInstance().getCurrentTheme()).getCellColor()); | ||||
| 			g2.drawRoundRect(r.x + 9, r.y, r.width - 10, r.height, arcSize, arcSize); | ||||
| 			g2.dispose(); | ||||
| 		} | ||||
| 		if (isVertical == false) { | ||||
| 		if (!isVertical) { | ||||
| 			g2.setPaint(color); | ||||
| 			g2.fillRoundRect(r.x, r.y + 9, r.width, r.height - 10, arcSize, arcSize); | ||||
| 			g2.setPaint(Settings.getInstance().getThemes().get(Settings.getInstance().getCurrentTheme()).getCellColor()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 DieGurke
					DieGurke