From 77fffbadcc8ccd37f30c075e05ad2e50b09ff43f Mon Sep 17 00:00:00 2001 From: lmh <> Date: Tue, 26 Sep 2006 04:38:27 +0000 Subject: [PATCH] Added basic wm, metasploit window theme, etc. git-svn-id: file:///home/svn/framework3/trunk@3964 4d416f70-5f16-0410-b530-b9f4589650da --- data/msfweb/app/views/layouts/msfweb.rhtml | 16 +-- data/msfweb/public/javascripts/application.js | 58 +++++--- .../stylesheets/window-themes/metasploit.css | 124 ++++++++++++++++++ .../metasploit/button-close-focused.png | Bin 0 -> 317 bytes .../metasploit/button-maximize-focused.png | Bin 0 -> 203 bytes .../metasploit/button-minimize-focused.png | Bin 0 -> 202 bytes .../metasploit/frame-bottom-left-focused.png | Bin 0 -> 144 bytes .../metasploit/frame-bottom-mid-focused.png | Bin 0 -> 137 bytes .../metasploit/frame-bottom-right-focused.png | Bin 0 -> 146 bytes .../metasploit/frame-left-focused.png | Bin 0 -> 136 bytes .../metasploit/frame-right-focused.png | Bin 0 -> 136 bytes .../titlebar-left-shaded-focused.png | Bin 0 -> 150 bytes .../titlebar-mid-shaded-focused.png | Bin 0 -> 185 bytes .../titlebar-right-shaded-focused.png | Bin 0 -> 148 bytes 14 files changed, 172 insertions(+), 26 deletions(-) create mode 100644 data/msfweb/public/stylesheets/window-themes/metasploit.css create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/button-close-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/button-maximize-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/button-minimize-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/frame-bottom-left-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/frame-bottom-mid-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/frame-bottom-right-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/frame-left-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/frame-right-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-left-shaded-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-mid-shaded-focused.png create mode 100755 data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-right-shaded-focused.png diff --git a/data/msfweb/app/views/layouts/msfweb.rhtml b/data/msfweb/app/views/layouts/msfweb.rhtml index c972e2ed0f..026d0e769b 100644 --- a/data/msfweb/app/views/layouts/msfweb.rhtml +++ b/data/msfweb/app/views/layouts/msfweb.rhtml @@ -11,19 +11,19 @@ <%= javascript_include_tag js %><% end %> <%= stylesheet_link_tag "msfweb" %> <%= stylesheet_link_tag "window-themes/default" %> - <%= stylesheet_link_tag "window-themes/mac_os_x" %> + <%= stylesheet_link_tag "window-themes/metasploit" %>
diff --git a/data/msfweb/public/javascripts/application.js b/data/msfweb/public/javascripts/application.js index c17780b345..9062dfb325 100644 --- a/data/msfweb/public/javascripts/application.js +++ b/data/msfweb/public/javascripts/application.js @@ -3,27 +3,49 @@ * All Rights Reserved. */ -/* http://alistapart.com/articles/dropdowns/ */ -function initialize_topmenu() { - if (document.all&&document.getElementById) { - navRoot = document.getElementById("topmenu"); - for (i=0; i + */ +.overlay_metasploit { + background-color: #85BBEF; + filter:alpha(opacity=60); + -moz-opacity: 0.6; + opacity: 0.6; +} + +.metasploit_nw { + background: transparent url(metasploit/titlebar-left-shaded-focused.png) no-repeat 0 0; + width:10px; + height:23px; +} +.metasploit_n { + background: transparent url(metasploit/titlebar-mid-shaded-focused.png) repeat-x 0 0; + height:23px; +} +.metasploit_ne { + background: transparent url(metasploit/titlebar-right-shaded-focused.png) no-repeat 0 0; + width:10px; + height:23px; +} +.metasploit_w { + background: transparent url(metasploit/frame-left-focused.png) repeat-y top left; + width:5px; +} + +.metasploit_e { + background: transparent url(metasploit/frame-right-focused.png) repeat-y top right; + width:5px; +} + +.metasploit_sw { + background: transparent url(metasploit/frame-bottom-left-focused.png) no-repeat 0 0; + width:5px; + height:5px; +} +.metasploit_s { + background: transparent url(metasploit/frame-bottom-mid-focused.png) repeat-x 0 0; + height:5px; +} +.metasploit_se, .metasploit_sizer { + background: transparent url(metasploit/frame-bottom-right-focused.png) no-repeat 0 0; + width:5px; + height:5px; +} + +.metasploit_sizer { + cursor:se-resize; +} + +.metasploit_close { + width: 26px; + height: 23px; + background: transparent url(metasploit/button-close-focused.png) no-repeat 0 0; + position:absolute; + top:0px; + right:5px; + cursor:pointer; + z-index:1000; +} + +.metasploit_minimize { + width: 26px; + height: 23px; + background: transparent url(metasploit/button-minimize-focused.png) no-repeat 0 0; + position:absolute; + top:0px; + right:26px; + cursor:pointer; + z-index:1000; +} + +.metasploit_maximize { + width: 26px; + height: 23px; + background: transparent url(metasploit/button-maximize-focused.png) no-repeat 0 0; + position:absolute; + top:0px; + right:47px; + cursor:pointer; + z-index:1000; +} + + +.metasploit_title { + float:left; + height:14px; + font-size:12px; + text-align:center; + margin-top:2px; + width:100%; + color:#FFF; +} + +.metasploit_content { + overflow:auto; + color: #444; + font-family: "MS Sans Serif", Arial, sans-serif; + font-size: 14px; + background:#ddd; +} + + +/* FOR IE */ +* html .metasploit_minimize { + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/metasploit/button-minimize-focused.png", sizingMethod="crop"); +} + +* html .metasploit_maximize { + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/metasploit/button-maximize-focused.png", sizingMethod="scale"); +} + +* html .metasploit_close { + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/metasploit/button-close-focused.png", sizingMethod="crop"); +} diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/button-close-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/button-close-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..7f8eb47c8322c80111dc32fb78fb4146d1791283 GIT binary patch literal 317 zcmeAS@N?(olHy`uVBq!ia0vp^Qa~)u!2%@r-<>`iNHHaOySp&_Z|^^|AIRe@@Q5sC zV30cq!iV>?NMQuI$&Cco}uXtu3PpfkNjzT^vI!PH(+z>vz~dgyDhy32}#4 zVpoI}N|Rr(T7+FmE^OqvsbjcN*)SyOt$=8o#e->o5;*TAJdOPK`iNHHaOySp&_Z|^^|AIRe@@Q5sC zV30cq!iV>?NMQuI$&Cco}tM*1T^12^5O)ba4!^IGwyET|w5skSEJm$H47z zebSWc#)~qN5^i_~bX)K8DOD`zFvH22WQ%mvv4FO#qF#KtKQh literal 0 HcmV?d00001 diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/button-minimize-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/button-minimize-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..80bb2b5eb6047a27e240bcac9f234117162c0560 GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0vp^Qa~)u!2%@r-<>`iNHHaOySp&_Z|^^|AIRe@@Q5sC zV30cq!iV>?NMQuI$&Cco}sh?=+T|0fnMHT^vI!PA9KPSCBO@rfa zf2ixVBVa{_u(=G>8%;4$j=d#Wzp$PzJT_%?R literal 0 HcmV?d00001 diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/frame-bottom-mid-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/frame-bottom-mid-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..ffa314b7aeb860e2ed2fc5c2dc25bda49559a6c2 GIT binary patch literal 137 zcmeAS@N?(olHy`uVBq!ia0vp^AT}!p3y{2)yY(@UVoLIMcVYP7-hXC4kjGiz5n0T@ zz%2~Ij105pNB{-dOFVsD*{?Biix>!UubvYJ6q53EaSY+Oo*eS)d;?>|6vLwuGbB1h dQ;wvmG0aF{Dp<1Nv=>kngQu&X%Q~loCIASXBIf`A literal 0 HcmV?d00001 diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/frame-bottom-right-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/frame-bottom-right-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..4c9a10bb8780edf9a6a09e06957b357175b9a5b6 GIT binary patch literal 146 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$60wmSb-sJ%)rX+877l!}s{b%+Ad7K3vk;M!Q zatA?}@o;8HFi?=a#M9T6{TdUuhykl$p@%Y1NZHfHF@)oKa>%dsXAS^C!SqJXLkS>| ibl_M@$S?k6CWaal=De@16D@(t89ZJ6T-G@yGywqIW+^lP literal 0 HcmV?d00001 diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/frame-left-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/frame-left-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..667ec3fd647ca2e9505ba7ba9bcc07b4837e26fe GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^tU%1g!2%?&8N}=cQcOwS?k)`f+xyS#2l6-zJR*x3 z7`TN%nDNrxx<5cc_7YEDSN3a6+#>phf9G%F018QZx;Tb#Tu%=9wf@WjASjsL*vZJ3 cag>GO$t)(*j8#vs0~IlNy85}Sb4q9e0F3b__W%F@ literal 0 HcmV?d00001 diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/frame-right-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/frame-right-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..dc047c55e3c60b6cb00fe7f682482cd884b8b55b GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^tU%1g!2%?&8N}=cQcOwS?k)`f+xyS#2l6-zJR*x3 z7`TN%nDNrxx<5cc_7YEDSN3a6+#>p_&t20>fkKj=E{-7_*ONnjtv_=B2nwb*b~5s1 b9A#m6GK literal 0 HcmV?d00001 diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-left-shaded-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-left-shaded-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..597684a4dac0eca3c5c959609465ca7406bea5e3 GIT binary patch literal 150 zcmeAS@N?(olHy`uVBq!ia0vp^AhtLM3y_>qELIGpn3BBRT^Rni_n+Ah`sfH70HmJ=K44;U+*Kbx#+^5Q)plA-~QyFh)p7_!zLvl-R%! p#j(l2V2`}T?e;AS%G++RF#IWIp0?|A>}#MF22WQ%mvv4FO#mF3DJ1{^ literal 0 HcmV?d00001 diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-mid-shaded-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-mid-shaded-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..2db8ea1e50ee3a88aa5db7b75ef7b5179f1e8675 GIT binary patch literal 185 zcmeAS@N?(olHy`uVBq!ia0vp^Y(Ol|!2%?k{J;GLQcOwS?k)`f+xyS#2l6-zJR*x3 z7`TN&n2}-D90{Nxdx@v7EBiGjZV_FR{fAXpfkLt+t`Q~9`MJ5Nc_j?aMX8A;sVNHO znI#ztAsML(?w-B@?^9IsfC?2oT^vIsE+>clI?uqaqsC#zEX>?0Gwu5olUxUjo)Zh1 Z8Onv2r&S1?SqxOn;OXk;vd$@?2>`WFF%|#- literal 0 HcmV?d00001 diff --git a/data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-right-shaded-focused.png b/data/msfweb/public/stylesheets/window-themes/metasploit/titlebar-right-shaded-focused.png new file mode 100755 index 0000000000000000000000000000000000000000..19bdeb795c86e9a8f6faeed351653df7167da40f GIT binary patch literal 148 zcmeAS@N?(olHy`uVBq!ia0vp^AhtLM3y_>qELIGpn3BBRT^Rni_n+Ah`sfH70HmJ;Nt0&7MFZRZkbk5Q)plA-~QyFh=+ow45_AFic?F nB9Kz)uio7@UqN}>4Hky@+bl`b6U3B(8W=oX{an^LB{Ts5-uWje literal 0 HcmV?d00001