// Path: baselibrary/src/main/java/com/dim/skin/SkinConfig.java
// public class SkinConfig {
// 
//     public static SkinStyle getSkinStyle(Context context) {
//         SharedPreferences sharedPreferences = context.getSharedPreferences("SkinStyle",
//                 Activity.MODE_PRIVATE);
//         boolean nightMode = sharedPreferences.getBoolean("nightMode", false);
//         return nightMode ? SkinStyle.Dark : SkinStyle.Light;
//     }
// 
//     public static void setSkinStyle(Context context, SkinStyle skinStyle) {
//         SharedPreferences.Editor editor = context.getSharedPreferences("SkinStyle",
//                 Activity.MODE_PRIVATE).edit();
//         editor.putBoolean("nightMode", skinStyle == SkinStyle.Dark).apply();
//     }
// 
// }
// 
// Path: baselibrary/src/main/java/com/dim/skin/SkinStyle.java
// public enum SkinStyle {
// 
//     Dark,
//     Light//默认Light
// }


import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import com.dim.skin.SkinConfig;
import com.dim.skin.SkinStyle;
        }
        if (mDarkBackgroundRes == -1) {
            mDarkBackgroundColor = attrs.getAttributeIntValue(MATERIALDESIGNXML, "nightBackground", -1);
        }

    }

    public void setSkinStyle(SkinStyle skinStyle) {
        super.setSkinStyle(skinStyle);

        if (!mEnable) {
            return;
        }
        if (skinStyle == SkinStyle.Light) {
            if (mLightBackgroundRes != -1) {
                mView.setBackgroundResource(mLightBackgroundRes);
            } else if (mLightBackgroundColor != -1) {
                mView.setBackgroundColor(mLightBackgroundColor);
            }
        } else {
            if (mDarkBackgroundRes != -1) {
                mView.setBackgroundResource(mDarkBackgroundRes);
            } else if (mDarkBackgroundColor != -1) {
                mView.setBackgroundColor(mDarkBackgroundColor);
            }
        }
    }

    @Override
    public void setCurrentTheme() {
// Path: baselibrary/src/main/java/com/dim/skin/SkinConfig.java
// public class SkinConfig {
// 
//     public static SkinStyle getSkinStyle(Context context) {
//         SharedPreferences sharedPreferences = context.getSharedPreferences("SkinStyle",
//                 Activity.MODE_PRIVATE);
//         boolean nightMode = sharedPreferences.getBoolean("nightMode", false);
//         return nightMode ? SkinStyle.Dark : SkinStyle.Light;
//     }
// 
//     public static void setSkinStyle(Context context, SkinStyle skinStyle) {
//         SharedPreferences.Editor editor = context.getSharedPreferences("SkinStyle",
//                 Activity.MODE_PRIVATE).edit();
//         editor.putBoolean("nightMode", skinStyle == SkinStyle.Dark).apply();
//     }
// 
// }
// 
// Path: baselibrary/src/main/java/com/dim/skin/SkinStyle.java
// public enum SkinStyle {
// 
//     Dark,
//     Light//默认Light
// }


// Path: baselibrary/src/main/java/com/dim/skin/hepler/ViewSkinHelper.java
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import com.dim.skin.SkinConfig;
import com.dim.skin.SkinStyle;

        }
        if (mDarkBackgroundRes == -1) {
            mDarkBackgroundColor = attrs.getAttributeIntValue(MATERIALDESIGNXML, "nightBackground", -1);
        }

    }

    public void setSkinStyle(SkinStyle skinStyle) {
        super.setSkinStyle(skinStyle);

        if (!mEnable) {
            return;
        }
        if (skinStyle == SkinStyle.Light) {
            if (mLightBackgroundRes != -1) {
                mView.setBackgroundResource(mLightBackgroundRes);
            } else if (mLightBackgroundColor != -1) {
                mView.setBackgroundColor(mLightBackgroundColor);
            }
        } else {
            if (mDarkBackgroundRes != -1) {
                mView.setBackgroundResource(mDarkBackgroundRes);
            } else if (mDarkBackgroundColor != -1) {
                mView.setBackgroundColor(mDarkBackgroundColor);
            }
        }
    }

    @Override
    public void setCurrentTheme() {
        if (SkinConfig.getSkinStyle(mView.getContext()) == SkinStyle.Dark) {