incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r532802 - in /incubator/xap/trunk/codebase/src/xap/bridges/dojo: ./ cssOverrides/ cssOverrides/images/
Date Thu, 26 Apr 2007 16:55:02 GMT
Author: mturyn
Date: Thu Apr 26 09:55:01 2007
New Revision: 532802

URL: http://svn.apache.org/viewvc?view=rev&rev=532802
Log:
https://issues.apache.org/jira/browse/XAP-342
1.) Altered Menu2.css so that the default Dojo 0.4 blues are now greyed.
2.) Added in greyed images.
3.) Added mechanism to MenuBridge so that the new css/images would be used instead of the
Dojo defaults.

Added:
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/Menu2.css
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/soriaBarBg.gif 
 (with props)
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/soriaMenuBg.gif
  (with props)
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_disabled.gif
  (with props)
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_off.gif
  (with props)
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_on.gif 
 (with props)
Modified:
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/MenuBridge.js

Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/MenuBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/MenuBridge.js?view=diff&rev=532802&r1=532801&r2=532802
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/MenuBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/MenuBridge.js Thu Apr 26 09:55:01 2007
@@ -64,6 +64,14 @@
 }	
 
 
+
+xap.bridges.dojo.MenuBridge.prototype.getDefaultPropertyMap = function(){
+	// Resolve relative to the "xap" module:
+	return { templateCssPath: dojo.uri.moduleUri("xap","bridges/dojo/cssOverrides/Menu2.css")};
+			//root+"src/xap/bridges/dojo/dojoCssOverrides/Menu2.css"} ;	
+}
+
+
 xap.bridges.dojo.MenuBridge.prototype.setTextAttribute = function( text ){ 
 	var peer = this.getPeer();
 	

Added: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/Menu2.css
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/Menu2.css?view=auto&rev=532802
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/Menu2.css (added)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/Menu2.css Thu Apr 26 09:55:01
2007
@@ -0,0 +1,127 @@
+/** The Dojo 0.4 menu styles, greyed:  **/
+
+.dojoPopupMenu2 {
+	position: absolute;
+	border: 1px solid #a2a2a2;
+	background:#b9b9b9 url(images/soriaMenuBg.gif) repeat-x bottom left !important;
+	padding: 1px;
+	margin-top: 1px;
+	margin-bottom: 1px;
+}
+
+.dojoMenuItem2{
+	white-space: nowrap;
+	font: menu;
+	margin: 0;
+	width:100% ;
+}
+
+.dojoMenuItem2Hover {
+	background-color: #e7e7e7;
+	cursor:pointer;
+	cursor:hand;
+}
+
+.dojoMenuItem2Icon {
+	position: relative;
+	background-position: center center;
+	background-repeat: no-repeat;
+	width: 16px;
+	height: 16px;
+	padding-right: 3px;
+}
+
+.dojoMenuItem2Label {
+	position: relative;
+	vertical-align: middle;
+}
+
+/* main label text */
+.dojoMenuItem2Label {
+	position: relative;
+	vertical-align: middle;
+}
+
+.dojoMenuItem2Accel {
+	position: relative;
+	vertical-align: middle;
+	padding-left: 3px;
+}
+
+.dojoMenuItem2Disabled .dojoMenuItem2Label,
+.dojoMenuItem2Disabled .dojoMenuItem2Accel {
+	color: #7f7f7f;
+}
+
+.dojoMenuItem2Submenu {
+	position: relative;
+	background-position: center center;
+	background-repeat: no-repeat;
+	background-image: url(images/submenu_off.gif);
+	width: 5px;
+	height: 9px;
+	padding-left: 3px;
+}
+.dojoMenuItem2Hover .dojoMenuItem2Submenu {
+	background-image: url(images/submenu_on.gif);
+}
+
+.dojoMenuItem2Disabled .dojoMenuItem2Submenu {
+	background-image: url(images/submenu_disabled.gif);
+}
+
+.dojoMenuSeparator2 {
+	font-size: 1px;
+	margin: 0;
+}
+
+.dojoMenuSeparator2Top {
+	height: 50%;
+	border-bottom: 1px solid #9f9f9f;
+	margin: 0px 2px;
+	font-size: 1px;
+}
+
+.dojoMenuSeparator2Bottom {
+	height: 50%;
+	border-top: 1px solid #e3e3e3;
+	margin: 0px 2px;
+	font-size: 1px;
+}
+
+.dojoMenuBar2 {
+	/*position: relative;*/
+	background:#b9b9b9 url(images/soriaBarBg.gif) repeat-x top left;
+	border-bottom:1px solid #afafaf;
+	
+}
+
+.dojoMenuBar2Client {
+	padding: 1px;
+}
+
+.dojoMenuBarItem2 {
+	white-space: nowrap;
+	font: menu;
+	margin: 0;
+	position: relative;
+	vertical-align: middle;
+	z-index: 1;
+	padding: 3px 8px;
+}
+
+.dojoMenuBarItem2 span {
+	margin: 0;
+	position: relative;
+	z-index: 2;
+	cursor:pointer;
+	cursor:hand;
+}
+
+.dojoMenuBarItem2Hover {
+	background-color:#e7e7e7;
+}
+
+.dojoMenuBarItem2Disabled span {
+	color: #696969;
+}

Added: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/soriaBarBg.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/soriaBarBg.gif?view=auto&rev=532802
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/soriaBarBg.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/soriaMenuBg.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/soriaMenuBg.gif?view=auto&rev=532802
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/soriaMenuBg.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_disabled.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_disabled.gif?view=auto&rev=532802
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_disabled.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_off.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_off.gif?view=auto&rev=532802
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_off.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_on.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_on.gif?view=auto&rev=532802
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/codebase/src/xap/bridges/dojo/cssOverrides/images/submenu_on.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message