Skip to content

Commit

Permalink
depreciated color options on windows class, all should be done using CSS
Browse files Browse the repository at this point in the history
this CSS functionality was done by Greg Houston, but he never got around to removing the options from the code
  • Loading branch information
Chris Doty committed Jun 20, 2010
1 parent 79eac98 commit 1f35c6f
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 133 deletions.
2 changes: 1 addition & 1 deletion src/demo/pages/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h3>Color Options</h3>

<p>The contentBgColor option has been removed from the Window Class, and the panelBackground option has been removed from the Panel Class. You should now use CSS for changing these colors. The addClass option in both the Window Class and Panel Class is helpful when styling some windows or panels differently than others.</p>

<p>As a matter of fact, all of the color options in Window.js are being deprecated. They should now be defined in the CSS.</p>
<p>As a matter of fact, all of the color options in Window.js are deprecated. They should now be defined in the CSS.</p>

<ul>
<li><strong>headerStartColor: </strong>.mochaTitlebar background-color (See notes below.)</li>
Expand Down
12 changes: 6 additions & 6 deletions src/mui-util/window-webkit-shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if (Browser.Engine.webkit){
width - shadowBlur2x, // width
height - shadowBlur2x, // height
cornerRadius, // corner radius
this.options.bodyBgColor // Footer color
this.bodyBgColor // Footer color
);

this.shadowStop(ctx); // stop the shadowing
Expand All @@ -76,8 +76,8 @@ if (Browser.Engine.webkit){
width - shadowBlur2x, // width
this.options.headerHeight, // height
cornerRadius, // corner radius
this.options.headerStartColor, // Header gradient's top color
this.options.headerStopColor // Header gradient's bottom color
this.headerStartColor, // Header gradient's top color
this.headerStopColor // Header gradient's bottom color
);
}
},
Expand All @@ -100,8 +100,8 @@ if (Browser.Engine.webkit){
width - shadowBlur2x, // width
options.headerHeight + 2, // height
cornerRadius, // corner radius
options.headerStartColor, // Header gradient's top color
options.headerStopColor // Header gradient's bottom color
this.headerStartColor, // Header gradient's top color
this.headerStopColor // Header gradient's bottom color
);
this.shadowStop(ctx);
},
Expand All @@ -118,7 +118,7 @@ if (Browser.Engine.webkit){
width * .5 - shadowOffset.x,
(height + options.headerHeight) * .5 - shadowOffset.y,
(width * .5) - shadowBlur,
options.bodyBgColor,
this.bodyBgColor,
1
);
this.shadowStop(ctx);
Expand Down
6 changes: 2 additions & 4 deletions src/mui-util/workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ MUI.extend({
height: 40,
y: 53,
padding: { top: 10, right: 12, bottom: 10, left: 12 },
shadowBlur: 5,
bodyBgColor: [255, 255, 255]
shadowBlur: 5
});

},
Expand Down Expand Up @@ -129,8 +128,7 @@ MUI.extend({
height: 40,
y: 25,
padding: { top: 10, right: 12, bottom: 10, left: 12 },
shadowBlur: 5,
bodyBgColor: [255, 255, 255]
shadowBlur: 5
});
return;
}
Expand Down
Loading

0 comments on commit 1f35c6f

Please sign in to comment.