no message
This commit is contained in:
16
src/Common/Visual/Controls/StyledProgressBar.java
Normal file
16
src/Common/Visual/Controls/StyledProgressBar.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package Common.Visual.Controls;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Visual.Themes.ThemeElement;
|
||||
|
||||
import javax.swing.*;
|
||||
public class StyledProgressBar extends JProgressBar implements ThemeElement {
|
||||
public StyledProgressBar() {
|
||||
setStringPainted(true);
|
||||
applyTheme();
|
||||
}
|
||||
@Override
|
||||
public void applyTheme() {
|
||||
setBackground(CommonUI.getTheme().bar_background);
|
||||
setForeground(CommonUI.getTheme().bar_foreground);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user