Better text color for comments button

pull/14/head
Sam Bosley 13 years ago
parent 14e48c4f80
commit 668cecff38

@ -70,7 +70,7 @@
android:layout_width="51dip" android:layout_width="51dip"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:background="?attr/asCommentButtonImg" android:background="?attr/asCommentButtonImg"
android:textColor="@android:color/white" android:textColor="?attr/asTextColorInverse"
android:paddingBottom="6dip"/> android:paddingBottom="6dip"/>
</LinearLayout> </LinearLayout>

@ -17,6 +17,7 @@ import android.content.Context;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.content.IntentFilter; import android.content.IntentFilter;
import android.graphics.Color;
import android.os.Bundle; import android.os.Bundle;
import android.support.v4.app.ActionBar; import android.support.v4.app.ActionBar;
import android.support.v4.app.Fragment; import android.support.v4.app.Fragment;
@ -190,6 +191,8 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
mainMenu = (ImageView) actionBar.getCustomView().findViewById(R.id.main_menu); mainMenu = (ImageView) actionBar.getCustomView().findViewById(R.id.main_menu);
personStatus = (TextView) actionBar.getCustomView().findViewById(R.id.person_image); personStatus = (TextView) actionBar.getCustomView().findViewById(R.id.person_image);
commentsButton = (Button) actionBar.getCustomView().findViewById(R.id.comments); commentsButton = (Button) actionBar.getCustomView().findViewById(R.id.comments);
if (ThemeService.getUnsimplifiedTheme() == R.style.Theme_White_Alt)
commentsButton.setTextColor(Color.BLACK);
initializeFragments(actionBar); initializeFragments(actionBar);
createMainMenuPopover(); createMainMenuPopover();

@ -48,7 +48,7 @@ public class ThemeService {
activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER); activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER);
} }
private static int getTheme() { public static int getTheme() {
int style = getUnsimplifiedTheme(); int style = getUnsimplifiedTheme();
boolean simple = Preferences.getBoolean(R.string.p_simple_input_boxes, false); boolean simple = Preferences.getBoolean(R.string.p_simple_input_boxes, false);
if (simple) if (simple)
@ -56,7 +56,7 @@ public class ThemeService {
return style; return style;
} }
private static int getUnsimplifiedTheme() { public static int getUnsimplifiedTheme() {
String preference = Preferences.getStringValue(R.string.p_theme); String preference = Preferences.getStringValue(R.string.p_theme);
return getStyleForSetting(preference); return getStyleForSetting(preference);
} }

Loading…
Cancel
Save