VAqua.src.org.violetlib.aqua.AquaIconToggleButtonBorder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaqua Show documentation
Show all versions of vaqua Show documentation
An improved native Swing look and feel for macOS
The newest version!
/*
* Copyright (c) 2015-2020 Alan Snyder.
* All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the license agreement. For details see
* accompanying license terms.
*/
package org.violetlib.aqua;
import java.awt.*;
import javax.swing.*;
import org.jetbrains.annotations.NotNull;
import org.violetlib.jnr.aqua.AquaUIPainter.Size;
/**
* The border used for the icon button style.
*/
public class AquaIconToggleButtonBorder extends AquaToggleButtonBorder {
@Override
public @NotNull Font getCustomDefaultFont(@NotNull AbstractButton b, @NotNull Size size, @NotNull Font df) {
float fontSize = AquaFonts.getControlTextSmallFont().getSize2D();
return df.deriveFont(fontSize);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy