Revision 73a93609
b/src/gr/grnet/pithos/web/client/TopPanel.java | ||
---|---|---|
90 | 90 |
HTML logos = new HTML("<table><tr><td><a href='/'>" + AbstractImagePrototype.create(images.pithosLogo()).getHTML() + "</a></td></tr></table>"); |
91 | 91 |
logos.addStyleName("pithos-logo"); |
92 | 92 |
inner.add(logos); |
93 |
|
|
94 |
MenuBar username = new MenuBar(); |
|
95 |
username.setStyleName("pithos-usernameMenu"); |
|
96 |
|
|
97 |
MenuBar userItemMenu = new MenuBar(true); |
|
98 |
userItemMenu.addStyleName("pithos-userItemMenu"); |
|
99 |
userItemMenu.addItem(new MenuItem("invite friends...", new Command() { |
|
100 |
|
|
101 |
@Override |
|
102 |
public void execute() { |
|
103 |
Window.open("/im/invite", "", ""); |
|
104 |
} |
|
105 |
})); |
|
106 |
userItemMenu.addItem(new MenuItem("send feedback...", new Command() { |
|
107 |
|
|
108 |
@Override |
|
109 |
public void execute() { |
|
110 |
Window.open("/im/feedback", "", ""); |
|
111 |
} |
|
112 |
})); |
|
113 |
userItemMenu.addItem(new MenuItem("profile...", new Command() { |
|
114 |
|
|
115 |
@Override |
|
116 |
public void execute() { |
|
117 |
Window.open("/im/profile", "", ""); |
|
118 |
} |
|
119 |
})); |
|
120 |
userItemMenu.addItem(new MenuItem("change password...", new Command() { |
|
121 |
|
|
122 |
@Override |
|
123 |
public void execute() { |
|
124 |
Window.open("/im/password", "", ""); |
|
125 |
} |
|
126 |
})); |
|
127 |
userItemMenu.addItem(new MenuItem("logout", new Command() { |
|
128 |
|
|
129 |
@Override |
|
130 |
public void execute() { |
|
131 |
app.logoff(); |
|
132 |
} |
|
133 |
})); |
|
134 |
|
|
135 |
MenuItem userItem = new MenuItem(_app.getUsername(), userItemMenu); |
|
136 |
userItem.addStyleName("pithos-usernameMenuItem"); |
|
137 |
username.addItem(userItem); |
|
138 |
username.addSeparator(); |
|
139 |
|
|
140 |
MenuItem langItem = new MenuItem("en", (Command) null); |
|
141 |
langItem.addStyleName("pithos-langMenuItem"); |
|
142 |
username.addItem(langItem); |
|
143 |
|
|
144 |
inner.add(username); |
|
145 |
inner.setCellHorizontalAlignment(username, HasHorizontalAlignment.ALIGN_RIGHT); |
|
146 |
|
|
147 | 93 |
outer.add(inner); |
148 | 94 |
outer.setCellHorizontalAlignment(inner, HasHorizontalAlignment.ALIGN_CENTER); |
149 | 95 |
outer.setCellVerticalAlignment(inner, HasVerticalAlignment.ALIGN_BOTTOM); |
b/src/gr/grnet/pithos/web/public/pithos.css | ||
---|---|---|
207 | 207 |
border-bottom: 1px solid white; |
208 | 208 |
} |
209 | 209 |
|
210 |
.pithos-usernameMenu { |
|
211 |
cursor: pointer; |
|
212 |
} |
|
213 |
|
|
214 |
.pithos-usernameMenuItem { |
|
215 |
background: url(images/down-arrow-light.png) no-repeat scroll right 8px transparent; |
|
216 |
padding-right: 13px; |
|
217 |
cursor: pointer; |
|
218 |
color: white; |
|
219 |
} |
|
220 |
|
|
221 |
.pithos-usernameMenuItem:HOVER { |
|
222 |
background: url(images/down-arrow-lighter.png) no-repeat scroll right 8px transparent; |
|
223 |
background-color: #599EBD; |
|
224 |
} |
|
225 |
|
|
226 |
.pithos-usernameMenuItem:ACTIVE { |
|
227 |
background: url(images/down-arrow-lighter.png) no-repeat scroll right 8px transparent; |
|
228 |
background-color: #BED5E0; |
|
229 |
} |
|
230 |
|
|
231 |
.pithos-langMenuItem { |
|
232 |
cursor: pointer; |
|
233 |
color: #72ADC8; |
|
234 |
} |
|
235 |
|
|
236 | 210 |
.gwt-MenuBar-vertical { |
237 | 211 |
background: #D0E3ED; |
238 | 212 |
} |
... | ... | |
262 | 236 |
background-color: #D0E3ED; |
263 | 237 |
} |
264 | 238 |
|
265 |
.pithos-userItemMenu { |
|
266 |
background-color: #D0E3ED; |
|
267 |
} |
|
268 |
|
|
269 | 239 |
.gwt-popuppanel { |
270 | 240 |
border: 3px solid #D0E3ED; |
271 | 241 |
padding: 3px; |
... | ... | |
441 | 411 |
|
442 | 412 |
.pithos-logo { |
443 | 413 |
position: absolute; |
444 |
top: 29px;
|
|
414 |
top: 65px;
|
|
445 | 415 |
} |
446 | 416 |
|
447 | 417 |
.pithos-header { |
Also available in: Unified diff