Java Code Examples for com.pluscubed.logcat.helper.PreferenceHelper#getColorScheme()
The following examples show how to use
com.pluscubed.logcat.helper.PreferenceHelper#getColorScheme() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogcatActivity.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
private void updateBackgroundColor() { ColorScheme colorScheme = PreferenceHelper.getColorScheme(this); final int color = colorScheme.getBackgroundColor(LogcatActivity.this); mHandler.post(new Runnable() { public void run() { binding.mainBackground.setBackgroundColor(color); } }); //TODO: //mListView.setCacheColorHint(color); //mListView.setDivider(new ColorDrawable(color)); }
Example 2
Source File: LogcatActivity.java From javaide with GNU General Public License v3.0 | 6 votes |
private void updateBackgroundColor() { ColorScheme colorScheme = PreferenceHelper.getColorScheme(this); final int color = colorScheme.getBackgroundColor(LogcatActivity.this); mHandler.post(new Runnable() { public void run() { binding.mainBackground.setBackgroundColor(color); } }); //TODO: //mListView.setCacheColorHint(color); //mListView.setDivider(new ColorDrawable(color)); }
Example 3
Source File: LogcatActivity.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
private void showProgressBar() { ColorScheme colorScheme = PreferenceHelper.getColorScheme(LogcatActivity.this); binding.mainDarkProgressBar.setVisibility(colorScheme.isUseLightProgressBar() ? View.GONE : View.VISIBLE); binding.mainLightProgressBar.setVisibility(colorScheme.isUseLightProgressBar() ? View.VISIBLE : View.GONE); }
Example 4
Source File: LogcatActivity.java From javaide with GNU General Public License v3.0 | 4 votes |
private void showProgressBar() { ColorScheme colorScheme = PreferenceHelper.getColorScheme(LogcatActivity.this); binding.mainDarkProgressBar.setVisibility(colorScheme.isUseLightProgressBar() ? View.GONE : View.VISIBLE); binding.mainLightProgressBar.setVisibility(colorScheme.isUseLightProgressBar() ? View.VISIBLE : View.GONE); }
Example 5
Source File: LogcatActivity.java From matlog with GNU General Public License v3.0 | 4 votes |
private void showProgressBar() { ColorScheme colorScheme = PreferenceHelper.getColorScheme(LogcatActivity.this); ((CircularProgressBar) findViewById(R.id.main_progress_bar)).setColor(colorScheme.getSelectedColor(this)); findViewById(R.id.main_progress_bar).setVisibility(View.VISIBLE); }
Example 6
Source File: ThemeWrapper.java From matlog with GNU General Public License v3.0 | 4 votes |
private static boolean isLightScheme(Context context) { ColorScheme scheme = PreferenceHelper.getColorScheme(context); return scheme == ColorScheme.Light || scheme == ColorScheme.Tmobile || scheme == ColorScheme.Att; }
Example 7
Source File: ThemeWrapper.java From matlog with GNU General Public License v3.0 | 4 votes |
private static boolean isDarkScheme(Context context) { ColorScheme scheme = PreferenceHelper.getColorScheme(context); return scheme == ColorScheme.Dark || scheme == ColorScheme.Verizon || scheme == ColorScheme.Sprint; }
Example 8
Source File: LogLineAdapterUtil.java From java-n-IDE-for-Android with Apache License 2.0 | 3 votes |
private static int getColorAt(int i, Context context) { ColorScheme colorScheme = PreferenceHelper.getColorScheme(context); int[] colorArray = colorScheme.getTagColors(context); return colorArray[i]; }
Example 9
Source File: LogLineAdapterUtil.java From javaide with GNU General Public License v3.0 | 3 votes |
private static int getColorAt(int i, Context context) { ColorScheme colorScheme = PreferenceHelper.getColorScheme(context); int[] colorArray = colorScheme.getTagColors(context); return colorArray[i]; }
Example 10
Source File: LogcatActivity.java From matlog with GNU General Public License v3.0 | 3 votes |
private void updateBackgroundColor() { ColorScheme colorScheme = PreferenceHelper.getColorScheme(this); final int color = colorScheme.getBackgroundColor(LogcatActivity.this); mHandler.post(() -> findViewById(R.id.main_background).setBackgroundColor(color)); //TODO: //mListView.setCacheColorHint(color); //mListView.setDivider(new ColorDrawable(color)); }
Example 11
Source File: LogLineAdapterUtil.java From matlog with GNU General Public License v3.0 | 3 votes |
private static int getColorAt(int i, Context context) { ColorScheme colorScheme = PreferenceHelper.getColorScheme(context); int[] colorArray = colorScheme.getTagColors(context); return colorArray[i]; }