import '../../../globals.js';
// Copyright 2014-2022, University of Colorado Boulder
/**
 * Button for returning to the level selection screen.
 *
 * @author John Blanco
 */
import optionize from '../../../phet-core/js/optionize.js';
import { Path } from '../../../scenery/js/imports.js';
import RectangularPushButton from '../../../sun/js/buttons/RectangularPushButton.js';
import PhetColorScheme from '../PhetColorScheme.js';
import sceneryPhet from '../sceneryPhet.js';
import StarShape from '../StarShape.js';
export default class StarButton extends RectangularPushButton {
    constructor(providedOptions) {
        const options = optionize()({
            // RectangularPushButtonOptions
            baseColor: PhetColorScheme.BUTTON_YELLOW,
            // Match the size of the star button to the refresh buttons, since they often appear together.
            // see https://github.com/phetsims/scenery-phet/issues/44
            xMargin: 8.134152255572697
        }, providedOptions);
        options.content = new Path(new StarShape(), { fill: 'black' });
        super(options);
    }
}
sceneryPhet.register('StarButton', StarButton);
//# sourceMappingURL=StarButton.js.map