Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: ash/wm/frame_painter.cc

Issue 10008020: Ash: Update window transparency values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/frame_painter.cc
diff --git a/ash/wm/frame_painter.cc b/ash/wm/frame_painter.cc
index a73d70af1f62be2b13784163633f6f61b6b20007..83f3790d7136e1c71a07ad641cc027deba02bf6f 100644
--- a/ash/wm/frame_painter.cc
+++ b/ash/wm/frame_painter.cc
@@ -125,9 +125,9 @@ bool IsVisibleNormalWindow(aura::Window* window) {
namespace ash {
// static
-int FramePainter::kActiveWindowOpacity = 255;
-int FramePainter::kInactiveWindowOpacity = 166;
-int FramePainter::kSoloWindowOpacity = 230;
+int FramePainter::kActiveWindowOpacity = 230; // "Linus-approved" values
+int FramePainter::kInactiveWindowOpacity = 204;
+int FramePainter::kSoloWindowOpacity = 51;
std::set<FramePainter*>* FramePainter::instances_ = NULL;
///////////////////////////////////////////////////////////////////////////////
@@ -568,9 +568,6 @@ int FramePainter::GetTitleOffsetX() const {
}
bool FramePainter::UseSoloWindowHeader(aura::Window* ignore) const {
- // Maximized windows don't use solo window transparency.
- if (frame_ && frame_->IsMaximized())
- return false;
// In unit tests this can be called after the shell is destroyed.
if (!Shell::HasInstance())
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698