mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-14 07:47:12 -06:00
Extras: renamed SVG utility class from com.formdev.flatlaf.extras.SVGUtils to com.formdev.flatlaf.extras.FlatSVGUtils
This commit is contained in:
@@ -8,6 +8,8 @@ FlatLaf Change Log
|
|||||||
- Extras: Renamed tri-state check box class from
|
- Extras: Renamed tri-state check box class from
|
||||||
`com.formdev.flatlaf.extras.TriStateCheckBox` to
|
`com.formdev.flatlaf.extras.TriStateCheckBox` to
|
||||||
`com.formdev.flatlaf.extras.components.FlatTriStateCheckBox`.
|
`com.formdev.flatlaf.extras.components.FlatTriStateCheckBox`.
|
||||||
|
- Extras: Renamed SVG utility class from `com.formdev.flatlaf.extras.SVGUtils`
|
||||||
|
to `com.formdev.flatlaf.extras.FlatSVGUtils`.
|
||||||
|
|
||||||
|
|
||||||
#### Fixed bugs
|
#### Fixed bugs
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import com.formdev.flatlaf.demo.intellijthemes.*;
|
|||||||
import com.formdev.flatlaf.extras.FlatAnimatedLafChange;
|
import com.formdev.flatlaf.extras.FlatAnimatedLafChange;
|
||||||
import com.formdev.flatlaf.extras.FlatSVGIcon;
|
import com.formdev.flatlaf.extras.FlatSVGIcon;
|
||||||
import com.formdev.flatlaf.extras.FlatUIDefaultsInspector;
|
import com.formdev.flatlaf.extras.FlatUIDefaultsInspector;
|
||||||
import com.formdev.flatlaf.extras.SVGUtils;
|
import com.formdev.flatlaf.extras.FlatSVGUtils;
|
||||||
import com.formdev.flatlaf.ui.JBRCustomDecorations;
|
import com.formdev.flatlaf.ui.JBRCustomDecorations;
|
||||||
import net.miginfocom.layout.ConstraintParser;
|
import net.miginfocom.layout.ConstraintParser;
|
||||||
import net.miginfocom.layout.LC;
|
import net.miginfocom.layout.LC;
|
||||||
@@ -59,7 +59,7 @@ class DemoFrame
|
|||||||
updateFontMenuItems();
|
updateFontMenuItems();
|
||||||
controlBar.initialize( this, tabbedPane );
|
controlBar.initialize( this, tabbedPane );
|
||||||
|
|
||||||
setIconImages( SVGUtils.createWindowIconImages( "/com/formdev/flatlaf/demo/FlatLaf.svg" ) );
|
setIconImages( FlatSVGUtils.createWindowIconImages( "/com/formdev/flatlaf/demo/FlatLaf.svg" ) );
|
||||||
|
|
||||||
if( tabIndex >= 0 && tabIndex < tabbedPane.getTabCount() && tabIndex != tabbedPane.getSelectedIndex() )
|
if( tabIndex >= 0 && tabIndex < tabbedPane.getTabCount() && tabIndex != tabbedPane.getSelectedIndex() )
|
||||||
tabbedPane.setSelectedIndex( tabIndex );
|
tabbedPane.setSelectedIndex( tabIndex );
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ import com.kitfox.svg.SVGException;
|
|||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
*/
|
*/
|
||||||
public class SVGUtils
|
public class FlatSVGUtils
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Creates from the given SVG a list of icon images with different sizes that
|
* Creates from the given SVG a list of icon images with different sizes that
|
||||||
@@ -131,7 +131,7 @@ public class SVGUtils
|
|||||||
*/
|
*/
|
||||||
private static SVGDiagram loadSVG( String svgName ) {
|
private static SVGDiagram loadSVG( String svgName ) {
|
||||||
try {
|
try {
|
||||||
URL url = SVGUtils.class.getResource( svgName );
|
URL url = FlatSVGUtils.class.getResource( svgName );
|
||||||
return SVGCache.getSVGUniverse().getDiagram( url.toURI() );
|
return SVGCache.getSVGUniverse().getDiagram( url.toURI() );
|
||||||
} catch( URISyntaxException ex ) {
|
} catch( URISyntaxException ex ) {
|
||||||
throw new RuntimeException( ex );
|
throw new RuntimeException( ex );
|
||||||
Reference in New Issue
Block a user