Package net.ftb.util

Source Code of net.ftb.util.StyleUtil

/*
* This file is part of FTB Launcher.
*
* Copyright © 2012-2014, FTB Launcher Contributors <https://github.com/Slowpoke101/FTBLaunch/>
* FTB Launcher is licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.ftb.util;

import javax.swing.UIManager;

import net.ftb.data.LauncherStyle;

public class StyleUtil {
    public static void loadUiStyles () {
        LauncherStyle style = LauncherStyle.getCurrentStyle();
        UIManager.put("control", style.control);
        UIManager.put("text", style.text);
        UIManager.put("nimbusBase", style.nimbusBase);
        UIManager.put("nimbusFocus", style.nimbusFocus);
        UIManager.put("nimbusBorder", style.nimbusBorder);
        UIManager.put("nimbusLightBackground", style.nimbusLightBackground);
        UIManager.put("info", style.info);
        UIManager.put("nimbusSelectionBackground", style.nimbusSelectionBackground);
    }
}
TOP

Related Classes of net.ftb.util.StyleUtil

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.