summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/util/ThemeUtils.java
blob: 8e593f3fb28278afe3c8d056321ceb635c1e2765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package de.danoeh.antennapod.util;

import android.util.Log;
import de.danoeh.antennapod.R;
import de.danoeh.antennapod.preferences.UserPreferences;

public class ThemeUtils {
	private static final String TAG = "ThemeUtils";

	public static int getSelectionBackgroundColor() {
		switch (UserPreferences.getTheme()) {
		case R.style.Theme_AntennaPod_Dark:
			return R.color.selection_background_color_dark;
		case R.style.Theme_AntennaPod_Light:
			return R.color.selection_background_color_light;
		default:
			Log.e(TAG,
					"getSelectionBackgroundColor could not match the current theme to any color!");
			return R.color.selection_background_color_light;
		}
	}
}