mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-101547 Please add a clock in fullscreen mode!
AffineTransform fix (mac os )
This commit is contained in:
@@ -118,7 +118,14 @@ public class ClockPanel extends JComponent implements CustomStatusBarWidget{
|
||||
int h = getHeight() - 4;
|
||||
int w = h / 2;
|
||||
float thickness = h * .1F;
|
||||
g.setTransform(new AffineTransform(1, 0, -thickness / h, 1, thickness * 3, thickness / 4));
|
||||
AffineTransform transform = g.getTransform();
|
||||
if (transform == null) {
|
||||
transform = new AffineTransform(1, 0, -thickness / h, 1, thickness * 3, thickness / 4);
|
||||
}
|
||||
else {
|
||||
transform.concatenate(new AffineTransform(1, 0, -thickness / h, 1, thickness * 3, thickness / 4));
|
||||
}
|
||||
g.setTransform(transform);
|
||||
g.setStroke(new BasicStroke(thickness, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
|
||||
g.setColor(UIManager.getColor("Label.foreground"));
|
||||
myCalendar.setTimeInMillis(System.currentTimeMillis());
|
||||
|
||||
Reference in New Issue
Block a user