/*
* Copyright (C) 2013 75py
*
* 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 com.nagopy.android.xposed.utilities.setting;
import android.content.res.XModuleResources;
import android.graphics.Color;
import android.graphics.Typeface;
import com.nagopy.android.xposed.annotation.XIntDefaultValue;
import com.nagopy.android.xposed.annotation.XSettings;
import com.nagopy.android.xposed.annotation.XSettingsHint;
import com.nagopy.android.xposed.annotation.XStringDefaultValue;
import com.nagopy.android.xposed.utilities.ModLockscreenClock;
import com.nagopy.android.xposed.utilities.util.Const;
/**
* {@link ModLockscreenClock}の設定を読み込むためのDao
*/
@XSettings(modulePackageName = Const.PACKAGE_NAME)
class ModLockscreenClockSettings {
@XSettingsHint(ignore = true)
public XModuleResources moduleResources;
/** モジュールを有効にするかどうか */
public Boolean masterModLockscreenClockEnable;
/** 文字サイズ */
@XIntDefaultValue(100)
public int lockscreenClockTimeTextSize;
/** 文字色 */
@XIntDefaultValue(Color.WHITE)
public int lockscreenClockTimeTextColor;
/** フォーマット */
@XStringDefaultValue("HH:mm:ss")
public String lockscreenClockTimeFormat;
/** 英語表記にするかどうか */
public Boolean lockscreenClockTimeForceEnglish;
// ----------------------------------------------
// ----------------------------------------------
// ----------------------------------------------
/** フォントファミリー */
@XStringDefaultValue("DEFAULT")
public String lockscreenClockTimeTypefaceKbn;
public String lockscreenClockTimeTypefaceName;
@XIntDefaultValue(Typeface.NORMAL)
public Integer lockscreenClockTimeTypefaceStyle;
// ----------------------------------------------
// ----------------------------------------------
// ----------------------------------------------
/** デフォルトの文字サイズ */
@XSettingsHint(ignore = true)
public float defaultTimeTextSize;
/** デフォルトの文字色 */
@XSettingsHint(ignore = true)
public int defaultTimeTextColor;
/** デフォルトのフォント */
@XSettingsHint(ignore = true)
public Typeface defaultTimeTypeface;
/** 文字サイズ */
@XIntDefaultValue(100)
public int lockscreenClockDateTextSize;
/** 文字色 */
@XIntDefaultValue(Color.WHITE)
public int lockscreenClockDateTextColor;
/** フォーマット */
@XStringDefaultValue("yyyy/MM/dd(E)")
public String lockscreenClockDateFormat;
/** 英語表記にするかどうか */
public Boolean lockscreenClockDateForceEnglish;
// ----------------------------------------------
// ----------------------------------------------
// ----------------------------------------------
/** フォントファミリー */
@XStringDefaultValue("DEFAULT")
public String lockscreenClockDateTypefaceKbn;
public String lockscreenClockDateTypefaceName;
@XIntDefaultValue(Typeface.NORMAL)
public Integer lockscreenClockDateTypefaceStyle;
// ----------------------------------------------
// ----------------------------------------------
// ----------------------------------------------
/** デフォルトの文字サイズ */
@XSettingsHint(ignore = true)
public float defaultDateTextSize;
/** デフォルトの文字色 */
@XSettingsHint(ignore = true)
public int defaultDateTextColor;
/** デフォルトのフォント */
@XSettingsHint(ignore = true)
public Typeface defaultDateTypeface;
}