]> gitweb.fperrin.net Git - Dictionary.git/blob - src/com/hughes/android/dictionary/C.java
Fixed background in dark theme.
[Dictionary.git] / src / com / hughes / android / dictionary / C.java
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 package com.hughes.android.dictionary;
16
17 public class C {
18
19     static final String DICTIONARY_CONFIGS = "dictionaryConfigs2";
20
21     public static final String DICT_FILE = "dictFile";
22     public static final String INDEX_SHORT_NAME = "indexShortName";
23     public static final String SEARCH_TOKEN = "searchToken";
24     public static final String CAN_AUTO_LAUNCH_DICT = "canAutoLaunch";
25     public static final String SHOW_DOWNLOADABLE = "showLocal";
26
27     public static final String THANKS_FOR_UPDATING_VERSION = "thanksForUpdatingVersion";
28
29     enum Theme {
30         DEFAULT(R.style.Theme_Default,
31                 R.style.Theme_Default_TokenRow_Fg,
32                 R.color.theme_default_token_row_fg,
33                 R.drawable.theme_default_token_row_main_bg,
34                 R.drawable.theme_default_token_row_other_bg,
35                 R.drawable.theme_default_normal_row_bg),
36
37         LIGHT(R.style.Theme_Light,
38                 R.style.Theme_Light_TokenRow_Fg,
39                 R.color.theme_light_token_row_fg,
40                 R.drawable.theme_light_token_row_main_bg,
41                 R.drawable.theme_light_token_row_other_bg,
42                 R.drawable.theme_light_normal_row_bg);
43
44         private Theme(final int themeId, final int tokenRowFg,
45                 final int tokenRowFgColor,
46                 final int tokenRowMainBg, final int tokenRowOtherBg,
47                 final int normalRowBg) {
48             this.themeId = themeId;
49             this.tokenRowFg = tokenRowFg;
50             this.tokenRowFgColor = tokenRowFgColor;
51             this.tokenRowMainBg = tokenRowMainBg;
52             this.tokenRowOtherBg = tokenRowOtherBg;
53             this.normalRowBg = normalRowBg;
54         }
55
56         final int themeId;
57         final int tokenRowFg;
58         final int tokenRowFgColor;
59         final int tokenRowMainBg;
60         final int tokenRowOtherBg;
61         final int normalRowBg;
62     }
63
64 }