@import url(../default/styles.css);
/* Reservr styles */\r
-#Reservr {\r
+.i-app-ReservationApplication {\r
background-color: #E9ECED;\r
background-image: url(bmw.jpg);\r
background-repeat: no-repeat;\r
background-position: top right;\r
}\r
\r
-#Reservr .i-label-logo {
+.i-app-ReservationApplication .i-label-logo {
font-family: "Trebuchet MS", geneva, helvetica, arial, tahoma, verdana, sans-serif;
padding-left: 13px;
padding-bottom: 10px;\r
font-size: 22px;\r
letter-spacing: -0.03em;\r
}
-#Reservr .i-label-slogan {
+.i-app-ReservationApplication .i-label-slogan {
color: black;
padding-left: 15px;
padding-bottom: 10px;
font-weight: bold;\r
}\r
\r
-#Reservr .i-button-selected-link {\r
+.i-app-ReservationApplication .i-button-selected-link {\r
border: 0px;\r
text-align: left;\r
text-decoration: none;\r
/******************************************************************************
* Sampler styles
******************************************************************************/
-#sampler {
+.i-app-SamplerApplication {
background-color: white;
}
-#sampler .i-orderedlayout-topbar {
+.i-app-SamplerApplication .i-orderedlayout-topbar {
border-bottom: 1px solid #999;
}
-#sampler .i-label-section {
+.i-app-SamplerApplication .i-label-section {
font-size: 18px;
font-weight: bold;
border-bottom: 1px solid black;
line-height: 35px;
}
-#sampler .i-label-subsection {
+.i-app-SamplerApplication .i-label-subsection {
font-size: 16px;
font-weight: bold;
color: #666666;
text-indent: 7px;
}
-#sampler .i-button-screenshot {
+.i-app-SamplerApplication .i-button-screenshot {
border: 3px solid #eeeeee;
overflow: hidden;
}
-#sampler .i-button-screenshot img {
+.i-app-SamplerApplication .i-button-screenshot img {
margin-top: -2px;
margin-left: -3px;
}
-#sampler tr.i-table-row-section {
+.i-app-SamplerApplication tr.i-table-row-section {
color: #333366;
font-size: 18px;
font-weight: bold;
}
-#sampler tr.i-table-row-subsection {
+.i-app-SamplerApplication tr.i-table-row-subsection {
font-size: 16px;
font-weight: bold;
}
-#sampler .i-panel-content-light {
+.i-app-SamplerApplication .i-panel-content-light {
border-top: 0px;
}
-#sampler .feature-main {
+.i-app-SamplerApplication .feature-main {
padding: 20px;
}
-#sampler .feature-controls {
+.i-app-SamplerApplication .feature-controls {
margin-bottom: 20px;
}
-#sampler .feature-controls .i-caption {
+.i-app-SamplerApplication .feature-controls .i-caption {
font-weight: bold;
font-size: 16px;
}
-#sampler .feature-info {
+.i-app-SamplerApplication .feature-info {
background-color: #999;
color: white;
padding: 20px;
line-height: 20px;
}
-#sampler .feature-info div.i-link a {
+.i-app-SamplerApplication .feature-info div.i-link a {
color: white;
line-height: 20px;
}
-#sampler .feature-name {
+.i-app-SamplerApplication .feature-name {
font-size: 22px;
font-weight: bold;
line-height: 35px;
}
-#sampler .feature-info .i-caption {
+.i-app-SamplerApplication .feature-info .i-caption {
font-weight: bold;
font-size: 16px;
line-height: 30px;
@import url(dummy/styles.css);
+@import url(prominentprimaryaction/styles.css);
+
* the new theme for this application.
*/
public void setTheme(String theme) {
-
// Collect list of windows not having the current or future theme
final LinkedList toBeUpdated = new LinkedList();
- final String myTheme = getTheme();
+ final String oldAppTheme = getTheme();
for (final Iterator i = getWindows().iterator(); i.hasNext();) {
final Window w = (Window) i.next();
final String windowTheme = w.getTheme();
if ((windowTheme == null)
- || (!theme.equals(windowTheme) && windowTheme
- .equals(myTheme))) {
+ || (!windowTheme.equals(theme) && windowTheme
+ .equals(oldAppTheme))) {
toBeUpdated.add(w);
}
}
appId = "ROOT";
}
appId = appId.replaceAll("[^a-zA-Z0-9]", "");
+ // Add hashCode to the end, so that it is still (sort of) predictable,
+ // but indicates that it should not be used in CSS and such:
+ appId = appId + appId.hashCode();
if (isGecko17(request)) {
// special start page for gecko 1.7 versions. Firefox 1.0 is not
if (reqParam != null) {
style = "style=\"" + reqParam + "\"";
}
- page.write("<div id=\"" + appId + "\" class=\"i-app i-app-loading\" "
+ /*- Add classnames;
+ * .i-app
+ * .i-app-loading
+ * .i-app-<simpleName for app class>
+ * .i-theme-<themeName, remove non-alphanum>
+ */
+ page.write("<div id=\"" + appId
+ + "\" class=\"i-app i-app-loading i-theme-"
+ + themeName.replaceAll("[^a-zA-Z0-9]", "") + " i-app-"
+ + applicationClass.getSimpleName() + "\" "
+ (style != null ? style : "") + "></div>\n");
if (!fragment) {