Loading packages/SystemUI/res/values/colors.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -20,6 +20,7 @@ <drawable name="notification_number_text_color">#ffffffff</drawable> <drawable name="notification_number_text_color">#ffffffff</drawable> <drawable name="ticker_background_color">#ff1d1d1d</drawable> <drawable name="ticker_background_color">#ff1d1d1d</drawable> <drawable name="status_bar_background">#ff000000</drawable> <drawable name="status_bar_background">#ff000000</drawable> <color name="notification_panel_solid_background">#ff000000</color> <drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable> <drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable> <color name="status_bar_recents_app_label_color">#ffffffff</color> <color name="status_bar_recents_app_label_color">#ffffffff</color> <drawable name="status_bar_notification_row_background_color">#ff090909</drawable> <drawable name="status_bar_notification_row_background_color">#ff090909</drawable> Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +14 −5 Original line number Original line Diff line number Diff line Loading @@ -311,6 +311,12 @@ public class PhoneStatusBar extends BaseStatusBar { } } }); }); if (!ActivityManager.isHighEndGfx(mDisplay)) { mStatusBarWindow.setBackground(null); mNotificationPanel.setBackgroundColor(context.getResources().getColor( R.color.notification_panel_solid_background)); } if (ENABLE_INTRUDERS) { if (ENABLE_INTRUDERS) { mIntruderAlertView = (IntruderAlertView) View.inflate(context, R.layout.intruder_alert, null); mIntruderAlertView = (IntruderAlertView) View.inflate(context, R.layout.intruder_alert, null); mIntruderAlertView.setVisibility(View.GONE); mIntruderAlertView.setVisibility(View.GONE); Loading Loading @@ -1987,12 +1993,15 @@ public class PhoneStatusBar extends BaseStatusBar { Slog.v(TAG, "updated cropView height=" + panelh + " grav=" + lp.gravity); Slog.v(TAG, "updated cropView height=" + panelh + " grav=" + lp.gravity); } } mNotificationPanel.setLayoutParams(lp); mNotificationPanel.setLayoutParams(lp); if (ActivityManager.isHighEndGfx(mDisplay)) { // woo, special effects // woo, special effects final int barh = getCloseViewHeight() + getStatusBarHeight(); final int barh = getCloseViewHeight() + getStatusBarHeight(); final float frac = saturate((float)(panelh - barh) / (disph - barh)); final float frac = saturate((float)(panelh - barh) / (disph - barh)); final int color = ((int)(0xB0 * Math.sin(frac * 1.57f))) << 24; final int color = ((int)(0xB0 * Math.sin(frac * 1.57f))) << 24; mStatusBarWindow.setBackgroundColor(color); mStatusBarWindow.setBackgroundColor(color); } } } void updateDisplaySize() { void updateDisplaySize() { mDisplay.getMetrics(mDisplayMetrics); mDisplay.getMetrics(mDisplayMetrics); Loading Loading
packages/SystemUI/res/values/colors.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -20,6 +20,7 @@ <drawable name="notification_number_text_color">#ffffffff</drawable> <drawable name="notification_number_text_color">#ffffffff</drawable> <drawable name="ticker_background_color">#ff1d1d1d</drawable> <drawable name="ticker_background_color">#ff1d1d1d</drawable> <drawable name="status_bar_background">#ff000000</drawable> <drawable name="status_bar_background">#ff000000</drawable> <color name="notification_panel_solid_background">#ff000000</color> <drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable> <drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable> <color name="status_bar_recents_app_label_color">#ffffffff</color> <color name="status_bar_recents_app_label_color">#ffffffff</color> <drawable name="status_bar_notification_row_background_color">#ff090909</drawable> <drawable name="status_bar_notification_row_background_color">#ff090909</drawable> Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +14 −5 Original line number Original line Diff line number Diff line Loading @@ -311,6 +311,12 @@ public class PhoneStatusBar extends BaseStatusBar { } } }); }); if (!ActivityManager.isHighEndGfx(mDisplay)) { mStatusBarWindow.setBackground(null); mNotificationPanel.setBackgroundColor(context.getResources().getColor( R.color.notification_panel_solid_background)); } if (ENABLE_INTRUDERS) { if (ENABLE_INTRUDERS) { mIntruderAlertView = (IntruderAlertView) View.inflate(context, R.layout.intruder_alert, null); mIntruderAlertView = (IntruderAlertView) View.inflate(context, R.layout.intruder_alert, null); mIntruderAlertView.setVisibility(View.GONE); mIntruderAlertView.setVisibility(View.GONE); Loading Loading @@ -1987,12 +1993,15 @@ public class PhoneStatusBar extends BaseStatusBar { Slog.v(TAG, "updated cropView height=" + panelh + " grav=" + lp.gravity); Slog.v(TAG, "updated cropView height=" + panelh + " grav=" + lp.gravity); } } mNotificationPanel.setLayoutParams(lp); mNotificationPanel.setLayoutParams(lp); if (ActivityManager.isHighEndGfx(mDisplay)) { // woo, special effects // woo, special effects final int barh = getCloseViewHeight() + getStatusBarHeight(); final int barh = getCloseViewHeight() + getStatusBarHeight(); final float frac = saturate((float)(panelh - barh) / (disph - barh)); final float frac = saturate((float)(panelh - barh) / (disph - barh)); final int color = ((int)(0xB0 * Math.sin(frac * 1.57f))) << 24; final int color = ((int)(0xB0 * Math.sin(frac * 1.57f))) << 24; mStatusBarWindow.setBackgroundColor(color); mStatusBarWindow.setBackgroundColor(color); } } } void updateDisplaySize() { void updateDisplaySize() { mDisplay.getMetrics(mDisplayMetrics); mDisplay.getMetrics(mDisplayMetrics); Loading