package com.sunny.app.soft.timberkeyboardnew.tools

import com.sunny.app.soft.timberkeyboardnew.App
import com.sunny.app.soft.timberkeyboardnew.R

object AppConstant {
    val KEY_EXTRA = "key_extra"
    val res_path = "/res"
    const val SHARE_NAME = "sp_name"
    const val SHIFT_NUMBER = -300
    const val SHIFT_SYMBOL = -301

    //空格键
    const val KEY_CODE_SPACE = 32


    const val KEY_CUR_Skin_Number = "cur_skin_number"
    const val KEY_CUR_STYLE = "cur_style"
    const val KEY_CUR_Bg = "cur_bg"
    const val xml0 = 24
    const val xml1 = 25
    const val xml2 = 26
    const val Shift_B_lo = 2
    const val Shift_S = 0
    const val Shift_B = 1

    val title_fun_Bg = "btn_keyboard_key_functional_normal.9.png"
    val title_del_ic = "sym_keyboard_delete_normal.png"
    val title_shitf_ic = "sym_keyboard_shift.png"
    val title_func_bg_press = "btn_keyboard_key_functional_pressed.9.png"
    val title_nor_Bg = "btn_keyboard_key_normal_normal.9.png"
    val parent_path = "/drawable-xhdpi-v4/"
    val xx_path = "/drawable-xxhdpi-v4/"
    val color_path = "/colors.xml"
    val title_shitf_ic_lock = "sym_keyboard_shift_locked.png"
    val title_bg = "keyboard_background.jpg"
    val title_nor_Bg_press = "btn_keyboard_key_normal_pressed.9.png"
    val title_sp_Bg = "btn_keyboard_spacekey_normal_normal.9.png"
    val title_sp_Bg_press = "btn_keyboard_spacekey_normal_pressed.9.png"


    val title_color = "key_text_color_normal"


    const val KEY_POS: String = "key_pos"
    const val KEYTheme = "key_theme"


    fun getDeleteRes(id: String) = String.format(App.appContext.getString(R.string.delete_res), id)


    fun getCapsenable(id: String) = String.format(App.appContext.getString(R.string.caps_res), id)
    fun getCaps(id: String) = String.format(App.appContext.getString(R.string.caps_no_res), id)

    fun getnormalBg(id: String, style: Int = 1) =
        String.format(App.appContext.getString(R.string.normal_res), id, style)

    //skin_8001_space_arrows_shadows.9
    fun getSpaceBg(id: String) = String.format(App.appContext.getString(R.string.space_res), id)


    fun getEnterIcon(id: String) = String.format(App.appContext.getString(R.string.enter_res), id)

    fun getTextColor(id: String, style: Int = 1) =
        String.format(App.appContext.getString(R.string.correct_text_color), id, style)
}