All Downloads are FREE. Search and download functionalities are using the official Maven repository.

freeseawind.lf.cfg.LuckGlobalBundle Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package freeseawind.lf.cfg;

import java.awt.Color;

import javax.swing.UIDefaults;

/**
 * 全局资源绑定类
 * @author freeseawind@github
 * @version 1.0
 *
 */
public class LuckGlobalBundle extends LuckResourceBundle
{
    /**
     *  [自定义属性]应用默认图标。
     */
    public static final String APPLICATION_ICON = "Application.icon";

    /**
     *  [自定义属性]应用默认标题。
     */
    public static final String APPLICATION_TITLE = "Application.title";

    /**
     *[自定义属性] 完全透明。
     */
    public static final String TRANSLUCENT_COLOR = "translucent.color";

    /**
     * 面板背景颜色属性key。
     */
    public static final String PANEL_BACKGROUND = "Panel.background";
    
    /**
     * 颜色选择器背景颜色属性key。
     */
    public static final String COLORCHOOSERUI_BACKGROUND = "ColorChooserUI.background";

    @Override
    protected void installColor(UIDefaults table)
    {
        table.put(TRANSLUCENT_COLOR, new Color(0, 0, 0, 0));
    }

    @Override
    protected void loadImages(UIDefaults table)
    {
        table.put(APPLICATION_ICON, getIconRes("frame/default_frame_icon.png"));
    }

    @Override
    protected void installOther(UIDefaults table)
    {
        table.put(APPLICATION_TITLE, "");

        table.put(PANEL_BACKGROUND, Color.WHITE);
        
        table.put(COLORCHOOSERUI_BACKGROUND, Color.WHITE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy