// Path: core/client/src/main/java/de/danner_web/studip_client/utils/Template.java
// public class Template {
// 
// 	private static final String PREFIX = "icons/";
// 
// 	// ActionButton images
// 	public static final String PLUGIN_DELETE = PREFIX + "plugin_delete.svg";
// 	public static final String PLUGIN_SETTINGS = PREFIX + "plugin_settings.svg";
// 	public static final String PLUGIN_ADD = PREFIX + "plugin_add.svg";
// 	public static final String PLUGIN_ACTIVATE = PREFIX + "plugin_activate.svg";
// 
// 	public static final String PLUGIN_VERIFIED = PREFIX + "plugin_verified.svg";
// 	public static final String PLUGIN_NOT_VERIFIED = PREFIX + "plugin_not_verified.svg";
// 
// 	// OnOffButton images
// 	public static final String ON_OFF_BUTTON_BG_EN = PREFIX + "onoff_bg_en.png";
// 	public static final String ON_OFF_BUTTON_BG_DE = PREFIX + "onoff_bg_de.png";
// 	public static final String ON_OFF_BUTTON_SLIDER = PREFIX + "onoff_slider.png";
// 
// 	// DropdownButton
// 	public static final String DROP_DOWN_BUTTON = PREFIX + "dropdown_button.png";
// 
// 	// BackButton images
// 	public static final String BACK_BUTTON = PREFIX + "arrow_back.png";
// 	public static final String BACK_BUTTON_HOVER = PREFIX + "arrow_back_hover.png";
// 
// 	// Main menu icons
// 	public static final String MENU_ACTIVITY = PREFIX + "main_menu_activity.svg";
// 	public static final String MENU_SETTINGS = PREFIX + "main_menu_settings.svg";
// 	public static final String MENU_LOGGER = PREFIX + "main_menu_logging.svg";
// 	public static final String MENU_PLUGINS = PREFIX + "main_menu_plugin.svg";
// 	public static final String MENU_ABOUT = PREFIX + "main_menu_about.svg";
// 
// 	// Favicon
// 	public static final String FAVICON = PREFIX + "favicon.png";
// 
// 	public static final String AUTHORIZE = PREFIX + "authorize.png";
// 
// 	// About logo
// 	public static final String LOGO = PREFIX + "logo.svg";
// 
// 	// Colors
// 	public static final Color COLOR_DARK = Color.decode("#222222");
// 	public static final Color COLOR_DARK_GRAY = Color.decode("#353535");
// 	public static final Color COLOR_LIGHT_GRAY = Color.decode("#DDDDDD");
// 	public static final Color COLOR_LIGHTER_GRAY = Color.decode("#EEEEEE");
// 	public static final Color COLOR_GRAY = Color.decode("#AAAAAA");
// 	public static final Color COLOR_ACCENT = Color.decode("#0772A1");
// 	public static final Color COLOR_ACCENT_LIGHT = Color.decode("#a8bfdb");
// 
// 	// Tree icons
// 	public static final String TREE_EXPANDED = PREFIX + "tree_expanded.svg";
// 	public static final String TREE_COLLAPSED = PREFIX + "tree_collapsed.svg";
// 	public static final String TREE_DOCUMENT = PREFIX + "tree_document.svg";
// 	public static final String TREE_DOCUMENT_INACTIVE = PREFIX + "tree_document_inactive.svg";
// 	public static final String TREE_FOLDER = PREFIX + "tree_folder.svg";
// 	public static final String TREE_FOLDER_INACTIVE = PREFIX + "tree_folder_inactive.svg";
// 	public static final String TREE_FOLDER_OPEN = PREFIX + "tree_folder_open.svg";
// 	public static final String TREE_FOLDER_OPEN_INACTIVE = PREFIX + "tree_folder_open_inactive.svg";
// 
// }


import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.geom.Ellipse2D;
import javax.swing.BoundedRangeModel;
import javax.swing.DefaultBoundedRangeModel;
import javax.swing.JComponent;
import javax.swing.JSlider;
import javax.swing.plaf.basic.BasicSliderUI;
import de.danner_web.studip_client.utils.Template;
        final int THUMB_SIZE = 13;

        public CustomSliderUI(JSlider b) {
            super(b);
        }

        @Override
        public void paint(Graphics g, JComponent c) {
            super.paint(g, c);
        }

        @Override
        protected Dimension getThumbSize() {
            return new Dimension(THUMB_SIZE, THUMB_SIZE);
        }

        @Override
        public void paintTrack(Graphics g) {
            Color saved_color = g.getColor();

            Graphics2D g2d = (Graphics2D) g;
            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

            int height = (thumbRect.height / 5 == 0) ? 1 : thumbRect.height / 5;
            int width;

            // Blue track
            width = trackRect.width - (trackRect.width - thumbRect.x);
            Point a = new Point(trackRect.x, trackRect.y + 1);
            a.translate(0, (trackRect.height / 2) - (height / 2));
// Path: core/client/src/main/java/de/danner_web/studip_client/utils/Template.java
// public class Template {
// 
// 	private static final String PREFIX = "icons/";
// 
// 	// ActionButton images
// 	public static final String PLUGIN_DELETE = PREFIX + "plugin_delete.svg";
// 	public static final String PLUGIN_SETTINGS = PREFIX + "plugin_settings.svg";
// 	public static final String PLUGIN_ADD = PREFIX + "plugin_add.svg";
// 	public static final String PLUGIN_ACTIVATE = PREFIX + "plugin_activate.svg";
// 
// 	public static final String PLUGIN_VERIFIED = PREFIX + "plugin_verified.svg";
// 	public static final String PLUGIN_NOT_VERIFIED = PREFIX + "plugin_not_verified.svg";
// 
// 	// OnOffButton images
// 	public static final String ON_OFF_BUTTON_BG_EN = PREFIX + "onoff_bg_en.png";
// 	public static final String ON_OFF_BUTTON_BG_DE = PREFIX + "onoff_bg_de.png";
// 	public static final String ON_OFF_BUTTON_SLIDER = PREFIX + "onoff_slider.png";
// 
// 	// DropdownButton
// 	public static final String DROP_DOWN_BUTTON = PREFIX + "dropdown_button.png";
// 
// 	// BackButton images
// 	public static final String BACK_BUTTON = PREFIX + "arrow_back.png";
// 	public static final String BACK_BUTTON_HOVER = PREFIX + "arrow_back_hover.png";
// 
// 	// Main menu icons
// 	public static final String MENU_ACTIVITY = PREFIX + "main_menu_activity.svg";
// 	public static final String MENU_SETTINGS = PREFIX + "main_menu_settings.svg";
// 	public static final String MENU_LOGGER = PREFIX + "main_menu_logging.svg";
// 	public static final String MENU_PLUGINS = PREFIX + "main_menu_plugin.svg";
// 	public static final String MENU_ABOUT = PREFIX + "main_menu_about.svg";
// 
// 	// Favicon
// 	public static final String FAVICON = PREFIX + "favicon.png";
// 
// 	public static final String AUTHORIZE = PREFIX + "authorize.png";
// 
// 	// About logo
// 	public static final String LOGO = PREFIX + "logo.svg";
// 
// 	// Colors
// 	public static final Color COLOR_DARK = Color.decode("#222222");
// 	public static final Color COLOR_DARK_GRAY = Color.decode("#353535");
// 	public static final Color COLOR_LIGHT_GRAY = Color.decode("#DDDDDD");
// 	public static final Color COLOR_LIGHTER_GRAY = Color.decode("#EEEEEE");
// 	public static final Color COLOR_GRAY = Color.decode("#AAAAAA");
// 	public static final Color COLOR_ACCENT = Color.decode("#0772A1");
// 	public static final Color COLOR_ACCENT_LIGHT = Color.decode("#a8bfdb");
// 
// 	// Tree icons
// 	public static final String TREE_EXPANDED = PREFIX + "tree_expanded.svg";
// 	public static final String TREE_COLLAPSED = PREFIX + "tree_collapsed.svg";
// 	public static final String TREE_DOCUMENT = PREFIX + "tree_document.svg";
// 	public static final String TREE_DOCUMENT_INACTIVE = PREFIX + "tree_document_inactive.svg";
// 	public static final String TREE_FOLDER = PREFIX + "tree_folder.svg";
// 	public static final String TREE_FOLDER_INACTIVE = PREFIX + "tree_folder_inactive.svg";
// 	public static final String TREE_FOLDER_OPEN = PREFIX + "tree_folder_open.svg";
// 	public static final String TREE_FOLDER_OPEN_INACTIVE = PREFIX + "tree_folder_open_inactive.svg";
// 
// }


// Path: core/client/src/main/java/de/danner_web/studip_client/view/components/ModernSlider.java
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.geom.Ellipse2D;
import javax.swing.BoundedRangeModel;
import javax.swing.DefaultBoundedRangeModel;
import javax.swing.JComponent;
import javax.swing.JSlider;
import javax.swing.plaf.basic.BasicSliderUI;
import de.danner_web.studip_client.utils.Template;

        final int THUMB_SIZE = 13;

        public CustomSliderUI(JSlider b) {
            super(b);
        }

        @Override
        public void paint(Graphics g, JComponent c) {
            super.paint(g, c);
        }

        @Override
        protected Dimension getThumbSize() {
            return new Dimension(THUMB_SIZE, THUMB_SIZE);
        }

        @Override
        public void paintTrack(Graphics g) {
            Color saved_color = g.getColor();

            Graphics2D g2d = (Graphics2D) g;
            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

            int height = (thumbRect.height / 5 == 0) ? 1 : thumbRect.height / 5;
            int width;

            // Blue track
            width = trackRect.width - (trackRect.width - thumbRect.x);
            Point a = new Point(trackRect.x, trackRect.y + 1);
            a.translate(0, (trackRect.height / 2) - (height / 2));
            g.setColor(Template.COLOR_ACCENT);