package cc.winboll.studio.mymessagemanager.utils;

/**
 * @Author ZhanGSKen@QQ.COM
 * @Date 2024/07/19 14:30:57
 * @Describe 应用主题工具类
 */
import cc.winboll.studio.mymessagemanager.R;

public class ThemeUtil {
/*
    public static final String SZ_THEME_TYPE = "SZ_THEME_TYPE";
    public static final String THEME_PREFERENCES = "THEME_PREFERENCES";

    public enum BaseTheme { DEFAULT(0), SKY(1), GOLDEN(2);
        static String[] _mlistName = { "默认主题", "天空主题", "辉煌主题" };
        private int value;
        private BaseTheme(int value) {
            this.value = value;
        }
    }

    public static int getThemeID(BaseTheme baseTheme) {
        int themeId;
        if (baseTheme == BaseTheme.DEFAULT) {
            themeId = R.style.AppTheme_Default;
        } else  if (baseTheme == BaseTheme.SKY) {
            themeId = R.style.AppTheme_Sky;
        } else  if (baseTheme == BaseTheme.GOLDEN) {
            themeId = R.style.AppTheme_Golden;
        } else {
            themeId = R.style.AppTheme_Default;
        }
        return themeId;
    }

    public static BaseTheme getTheme(int nThemeID) {
        if (nThemeID == R.style.AppTheme_Sky) {
            return BaseTheme.SKY;
        } else  if (nThemeID ==  R.style.AppTheme_Golden) {
            return BaseTheme.GOLDEN;
        } else {
            return BaseTheme.DEFAULT;
        }
    }
    */
}
