aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-03-31 23:21:37 +0200
committerJorge Ruesga <jorge@ruesga.com>2013-03-31 23:21:37 +0200
commit649198af4cc2605275aa2873a1906b21057bb469 (patch)
treee0476360161d2bbe88040bcd712ba73916092868
parent288d70a02a0f597cb3ef1f5fa24fac76f45bce5e (diff)
downloadandroid_packages_apps_CMFileManager-649198af4cc2605275aa2873a1906b21057bb469.tar.gz
android_packages_apps_CMFileManager-649198af4cc2605275aa2873a1906b21057bb469.tar.bz2
android_packages_apps_CMFileManager-649198af4cc2605275aa2873a1906b21057bb469.zip
CMFM: Fix hex viewer dark theme
Change-Id: Ia185f8debd6bebc8fa11b1d22c4739a8a1f74d39 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
-rw-r--r--src/com/cyanogenmod/filemanager/activities/EditorActivity.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/filemanager/activities/EditorActivity.java b/src/com/cyanogenmod/filemanager/activities/EditorActivity.java
index 47da72e5..87244173 100644
--- a/src/com/cyanogenmod/filemanager/activities/EditorActivity.java
+++ b/src/com/cyanogenmod/filemanager/activities/EditorActivity.java
@@ -1160,8 +1160,7 @@ public class EditorActivity extends Activity implements TextWatcher {
// Show hex dumping text
activity.mProgressBarMsg.setText(R.string.dumping_message);
- activity.mEditor.setTextAppearance(activity, R.style.hexeditor_text_appearance);
- activity.mEditor.setTypeface(Typeface.MONOSPACE);
+ applyHexViewerTheme();
this.changeToBinaryMode = false;
}
else if (this.changeToDisplaying) {
@@ -1439,6 +1438,8 @@ public class EditorActivity extends Activity implements TextWatcher {
//- ProgressBar
Drawable dw = theme.getDrawable(this, "horizontal_progress_bar"); //$NON-NLS-1$
this.mProgressBar.setProgressDrawable(dw);
+ v = findViewById(R.id.editor_progress_msg);
+ theme.setTextColor(this, (TextView)v, "text_color"); //$NON-NLS-1$
// Need a full process of syntax highlight
if (!this.mBinary && this.mSyntaxHighlight && this.mSyntaxHighlightProcessor != null) {
@@ -1446,4 +1447,16 @@ public class EditorActivity extends Activity implements TextWatcher {
}
}
+ /**
+ * Method that applies the current theme to the hex viewer editor
+ * @hide
+ */
+ void applyHexViewerTheme() {
+ Theme theme = ThemeManager.getCurrentTheme(this);
+ TextView editor = (TextView)findViewById(R.id.editor);
+ editor.setTextAppearance(this, R.style.hexeditor_text_appearance);
+ editor.setTypeface(Typeface.MONOSPACE);
+ theme.setTextColor(this, editor, "text_color"); //$NON-NLS-1$
+ }
+
}