blob: e948f5a1967d27f61ae6754b09b8ab057f40a90b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package cuchaz.enigma.gui.util;
import java.io.IOException;
import java.io.InputStream;
import com.formdev.flatlaf.extras.FlatSVGIcon;
import cuchaz.enigma.api.EnigmaIcon;
import cuchaz.enigma.utils.IconLoadingService;
public class IconLoadingServiceImpl implements IconLoadingService {
@Override
public EnigmaIcon loadIcon(InputStream in) throws IOException {
return new EnigmaIconImpl(new FlatSVGIcon(in));
}
}
|