Permalink
Browse files

Apply red text color into text.

  • Loading branch information...
1 parent dea5c5b commit 81f1cbc73f3564241e23c8159988a29e35c65835 @yukuku committed Oct 3, 2012
Showing with 1 addition and 13 deletions.
  1. +1 −13 Alkitab/src/yuku/alkitab/base/S.java
@@ -124,7 +124,7 @@ public static void calculateAppliedValuesBasedOnPreferences() {
applied.fontColor = Preferences.getInt(App.context.getString(R.string.pref_warnaHuruf_int_key), App.context.getResources().getInteger(R.integer.pref_warnaHuruf_int_default));
applied.backgroundColor = Preferences.getInt(App.context.getString(R.string.pref_warnaLatar_int_key), App.context.getResources().getInteger(R.integer.pref_warnaLatar_int_default));
applied.verseNumberColor = Preferences.getInt(App.context.getString(R.string.pref_warnaNomerAyat_int_key), App.context.getResources().getInteger(R.integer.pref_warnaNomerAyat_int_default));
- applied.fontRedColor = hitungHurufMerah(S.applied.fontColor, S.applied.backgroundColor);
+ applied.fontRedColor = Preferences.getInt(App.context.getString(R.string.pref_redTextColor_key), App.context.getResources().getInteger(R.integer.pref_redTextColor_default));
// calculation of backgroundColor brightness. Used somewhere else.
{
@@ -144,18 +144,6 @@ public static void calculateAppliedValuesBasedOnPreferences() {
applied.indentSpacingExtra = (int) (skalaBerdasarUkuranHuruf * res.getDimensionPixelOffset(R.dimen.menjorokExtra) + 0.5f);
}
- private static int hitungHurufMerah(int warnaHuruf, int warnaLatar) {
- // berdasar warna latar saja deh untuk kali ini
- int brt = Color.red(warnaLatar) * 30 + Color.green(warnaLatar) * 59 + Color.blue(warnaLatar) * 11;
- if (brt < 30 * 100) {
- return 0xffff9090;
- } else if (brt < 86 * 100) {
- return 0xffff5050;
- } else {
- return 0xffff0000;
- }
- }
-
private static final String teksTakTersedia = "[?]"; //$NON-NLS-1$
private static final String[] teksTakTersediaArray = {

0 comments on commit 81f1cbc

Please sign in to comment.