Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Client style cleanup

Christian Bauer0ae22ebc6217
diff --git a/keycloak/theme/account/account.ftl b/keycloak/theme/account/account.ftl
index f00c32e95..3dc38d2d5 100755
--- a/keycloak/theme/account/account.ftl
+++ b/keycloak/theme/account/account.ftl
@@ -3,68 +3,68 @@
<div class="layout vertical">
- <div class="or-Headline1 theme-Headline1">${msg("editAccountHtmlTtile")}</div>
- <div class="or-HeadlineSub theme-HeadlineSub"><span class="required">*</span> ${msg("requiredFields")}</div>
+ <div class="or-Headline1">${msg("editAccountHtmlTtile")}</div>
+ <div class="or-HeadlineSub"><span class="required">*</span> ${msg("requiredFields")}</div>
- <form action="${url.accountUrl}" class="layout vertical or-Form theme-Form" method="post">
+ <form action="${url.accountUrl}" class="layout vertical or-Form" method="post">
<input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker?html}">
- <div class="layout horizontal center or-FormGroup theme-FormGroup ${messagesPerField.printIfExists('username','error')}">
- <div class="or-FormLabel theme-FormLabel">
+ <div class="layout horizontal center or-FormGroup ${messagesPerField.printIfExists('username','error')}">
+ <div class="or-FormLabel">
<label for="username">${msg("username")}</label>
<#if realm.editUsernameAllowed><span class="required">*</span></#if>
</div>
- <div class="or-FormField theme-FormField">
- <input type="text" class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText" id="username" name="username"
+ <div class="or-FormField">
+ <input type="text" class="or-FormControl or-FormInputText" id="username" name="username"
<#if !realm.editUsernameAllowed>disabled="disabled"</#if> value="${(account.username!'')?html}"/>
</div>
</div>
- <div class="layout horizontal center or-FormGroup theme-FormGroup ${messagesPerField.printIfExists('email','error')}">
- <div class="or-FormLabel theme-FormLabel">
+ <div class="layout horizontal center or-FormGroup ${messagesPerField.printIfExists('email','error')}">
+ <div class="or-FormLabel">
<label for="email">${msg("email")}</label>
<span class="required">*</span>
</div>
- <div class="or-FormField theme-FormField">
- <input type="text" class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText" size="50" id="email" name="email" autofocus
+ <div class="or-FormField">
+ <input type="text" class="or-FormControl or-FormInputText" size="50" id="email" name="email" autofocus
value="${(account.email!'')?html}"/>
</div>
</div>
- <div class="layout horizontal center or-FormGroup theme-FormGroup ${messagesPerField.printIfExists('firstName','error')}">
- <div class="or-FormLabel theme-FormLabel">
+ <div class="layout horizontal center or-FormGroup ${messagesPerField.printIfExists('firstName','error')}">
+ <div class="or-FormLabel">
<label for="firstName">${msg("firstName")}</label> <span class="required">*</span>
</div>
- <div class="or-FormField theme-FormField">
- <input type="text" class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText" size="50" id="firstName" name="firstName"
+ <div class="or-FormField">
+ <input type="text" class="or-FormControl or-FormInputText" size="50" id="firstName" name="firstName"
value="${(account.firstName!'')?html}"/>
</div>
</div>
- <div class="layout horizontal center or-FormGroup theme-FormGroup ${messagesPerField.printIfExists('lastName','error')}">
- <div class="or-FormLabel theme-FormLabel">
+ <div class="layout horizontal center or-FormGroup ${messagesPerField.printIfExists('lastName','error')}">
+ <div class="or-FormLabel">
<label for="lastName">${msg("lastName")}</label> <span class="required">*</span>
</div>
- <div class="or-FormField theme-FormField">
- <input type="text" class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText" size="50" id="lastName" name="lastName"
+ <div class="or-FormField">
+ <input type="text" class="or-FormControl or-FormInputText" size="50" id="lastName" name="lastName"
value="${(account.lastName!'')?html}"/>
</div>
</div>
- <div class="layout horizontal or-FormGroup theme-FormGroup">
- <div class="or-FormField theme-FormField">
+ <div class="layout horizontal or-FormGroup">
+ <div class="or-FormField">
<#if url.referrerURI??><a href="${url.referrerURI}">${msg("backToApplication")}/a></#if>
<button type="submit"
- class="or-FormControl theme-FormControl or-FormButtonPrimary theme-FormButtonPrimary or-PushButton theme-PushButton"
+ class="or-FormControl or-FormButtonPrimary or-PushButton"
name="submitAction" value="Save">
<span class="or-PushButtonIcon fa fa-save"></span>${msg("doSave")}</button>
<button type="submit"
- class="or-FormControl theme-FormControl or-FormButton theme-FormButton or-PushButton theme-PushButton"
+ class="or-FormControl or-FormButton or-PushButton"
name="submitAction" value="Cancel">
<span class="or-PushButtonIcon fa fa-close"></span>${msg("doCancel")}</button>
</div>
diff --git a/keycloak/theme/account/password.ftl b/keycloak/theme/account/password.ftl
index 68349dbac..e892cc8a0 100755
--- a/keycloak/theme/account/password.ftl
+++ b/keycloak/theme/account/password.ftl
@@ -4,51 +4,51 @@
<div class="layout vertical">
- <div class="or-Headline1 theme-Headline1">${msg("changePasswordHtmlTitle")}</div>
- <div class="or-HeadlineSub theme-HeadlineSub">${msg("allFieldsRequired")}</div>
+ <div class="or-Headline1">${msg("changePasswordHtmlTitle")}</div>
+ <div class="or-HeadlineSub">${msg("allFieldsRequired")}</div>
- <form action="${url.passwordUrl}" class="layout vertical or-Form theme-Form" method="post">
+ <form action="${url.passwordUrl}" class="layout vertical or-Form" method="post">
<input type="text" readonly value="this is not a login form" style="display: none;">
<input type="password" readonly value="this is not a login form" style="display: none;">
<#if password.passwordSet>
- <div class="layout horizontal center or-FormGroup theme-FormGroup">
- <div class="or-FormLabel theme-FormLabel">
+ <div class="layout horizontal center or-FormGroup">
+ <div class="or-FormLabel">
<label for="password">${msg("password")}</label>
</div>
- <div class="or-FormField theme-FormField">
- <input type="password" class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText" id="password" name="password" autofocus autocomplete="off">
+ <div class="or-FormField">
+ <input type="password" class="or-FormControl or-FormInputText" id="password" name="password" autofocus autocomplete="off">
</div>
</div>
</#if>
<input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker?html}">
- <div class="layout horizontal center or-FormGroup theme-FormGroup">
- <div class="or-FormLabel theme-FormLabel">
+ <div class="layout horizontal center or-FormGroup">
+ <div class="or-FormLabel">
<label for="password-new">${msg("passwordNew")}</label>
</div>
- <div class="or-FormField theme-FormField">
- <input type="password" class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText" id="password-new" name="password-new" autocomplete="off">
+ <div class="or-FormField">
+ <input type="password" class="or-FormControl or-FormInputText" id="password-new" name="password-new" autocomplete="off">
</div>
</div>
- <div class="layout horizontal center or-FormGroup theme-FormGroup">
- <div class="or-FormLabel theme-FormLabel">
+ <div class="layout horizontal center or-FormGroup">
+ <div class="or-FormLabel">
<label for="password-confirm" class="two-lines">${msg("passwordConfirm")}</label>
</div>
- <div class="or-FormField theme-FormField">
- <input type="password" class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText" id="password-confirm" name="password-confirm" autocomplete="off">
+ <div class="or-FormField">
+ <input type="password" class="or-FormControl or-FormInputText" id="password-confirm" name="password-confirm" autocomplete="off">
</div>
</div>
- <div class="layout horizontal or-FormGroup theme-FormGroup">
- <div class="or-FormField theme-FormField">
- <button type="submit" class="or-FormControl theme-FormControl or-FormButtonPrimary theme-FormButtonPrimary or-PushButton theme-PushButton"
+ <div class="layout horizontal or-FormGroup">
+ <div class="or-FormField">
+ <button type="submit" class="or-FormControl or-FormButtonPrimary or-PushButton"
name="submitAction" value="Save">
<span class="or-PushButtonIcon fa fa-save"></span>${msg("doSave")}</button>
</div>
diff --git a/keycloak/theme/account/template.ftl b/keycloak/theme/account/template.ftl
index 602f5c1aa..910fe72d1 100644
--- a/keycloak/theme/account/template.ftl
+++ b/keycloak/theme/account/template.ftl
@@ -40,16 +40,16 @@
</head>
<body class="layout horizontal">
- <div class="layout vertical or-SecondaryNav theme-SecondaryNav">
- <div style="margin: 0 1em;" class="or-SecondaryNavItem theme-SecondaryNavItem <#if active=='account'>active</#if>"><div class="fa fa-user" style="width: 1em; margin-right:0.4em;"></div><a href="${url.accountUrl}">${msg("account")}</a></div>
- <#if features.passwordUpdateSupported><div style="margin: 0 1em;" class="or-SecondaryNavItem theme-SecondaryNavItem <#if active=='password'>active</#if>"><div class="fa fa-key" style="width: 1em; margin-right:0.4em;"></div><a href="${url.passwordUrl}">${msg("password")}</a></div></#if>
+ <div class="layout vertical or-SecondaryNav">
+ <div style="margin: 0 1em;" class="or-SecondaryNavItem <#if active=='account'>active</#if>"><div class="fa fa-user" style="width: 1em; margin-right:0.4em;"></div><a href="${url.accountUrl}">${msg("account")}</a></div>
+ <#if features.passwordUpdateSupported><div style="margin: 0 1em;" class="or-SecondaryNavItem <#if active=='password'>active</#if>"><div class="fa fa-key" style="width: 1em; margin-right:0.4em;"></div><a href="${url.passwordUrl}">${msg("password")}</a></div></#if>
</div>
- <div class="flex or-MainContent theme-MainContent">
+ <div class="flex or-MainContent">
<#if message?has_content>
- <div style="max-width: 30em;" class="layout horizontal or-FormMessages theme-FormMessages ${message.type}">
- <#if message.type=='success' ><div class="or-MessagesIcon theme-MessagesIcon fa fa-check"></div></#if>
- <#if message.type=='error' ><div class="or-MessagesIcon theme-MessagesIcon fa fa-warning"></div></#if>
+ <div style="max-width: 30em;" class="layout horizontal or-FormMessages ${message.type}">
+ <#if message.type=='success' ><div class="or-MessagesIcon fa fa-check"></div></#if>
+ <#if message.type=='error' ><div class="or-MessagesIcon fa fa-warning"></div></#if>
${message.summary}
</div>
</#if>
diff --git a/keycloak/theme/login/login.ftl b/keycloak/theme/login/login.ftl
index 42d57dccf..07c0a83bc 100755
--- a/keycloak/theme/login/login.ftl
+++ b/keycloak/theme/login/login.ftl
@@ -6,39 +6,39 @@
${msg("loginTitleHtml",(realm.displayNameHtml!''))}
<#elseif section = "form">
<#if realm.password>
- <form class="layout vertical or-Form theme-Form" action="${url.loginAction}" method="post">
- <div class="layout horizontal center or-FormGroup theme-FormGroup">
- <div class="or-FormLabel theme-FormLabel">
+ <form class="layout vertical or-Form" action="${url.loginAction}" method="post">
+ <div class="layout horizontal center or-FormGroup">
+ <div class="or-FormLabel">
<label for="username"><#if !realm.registrationEmailAsUsername>${msg("usernameOrEmail")}<#else>${msg("email")}</#if></label>
</div>
- <div class="or-FormField theme-FormField">
+ <div class="or-FormField">
<#if usernameEditDisabled??>
<input id="username"
autofocus
- class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText"
+ class="or-FormControl or-FormInputText"
name="username" value="${(login.username!'')?html}" type="text" disabled/>
<#else>
<input id="username"
autofocus
- class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText"
+ class="or-FormControl or-FormInputText"
name="username" value="${(login.username!'')?html}" type="text" autofocus/>
</#if>
</div>
</div>
- <div class="layout horizontal center or-FormGroup theme-FormGroup">
- <div class="or-FormLabel theme-FormLabel">
+ <div class="layout horizontal center or-FormGroup">
+ <div class="or-FormLabel">
<label for="password">${msg("password")}</label>
</div>
- <div class="or-FormField theme-FormField">
- <input id="password" class="or-FormControl theme-FormControl or-FormInputText theme-FormInputText"
+ <div class="or-FormField">
+ <input id="password" class="or-FormControl or-FormInputText"
name="password" type="password" autocomplete="off"/>
</div>
</div>
- <div class="layout horizontal center-center or-FormGroup theme-FormGroup">
+ <div class="layout horizontal center-center or-FormGroup">
<div>
<#if realm.rememberMe && !usernameEditDisabled??>
<div class="checkbox">
@@ -60,8 +60,8 @@
</div>
</div>
- <div class="or-FormField theme-FormField">
- <input class="or-FormControl theme-FormControl or-FormButtonPrimary theme-FormButtonPrimary or-PushButton theme-PushButton"
+ <div class="or-FormField">
+ <input class="or-FormControl or-FormButtonPrimary or-PushButton"
name="login"
type="submit"
value="${msg("doLogIn")}"/>
diff --git a/keycloak/theme/login/template.ftl b/keycloak/theme/login/template.ftl
index 3792e06ba..9e533f5ba 100755
--- a/keycloak/theme/login/template.ftl
+++ b/keycloak/theme/login/template.ftl
@@ -54,8 +54,8 @@
d="M11.936,16.622c-0.082,0-0.164-0.001-0.245-0.004c-1.29-0.065-2.478-0.628-3.346-1.585 c-0.868-0.958-1.31-2.195-1.246-3.487l2.104,0.105c-0.036,0.728,0.214,1.427,0.704,1.967c0.488,0.54,1.16,0.858,1.888,0.894 c0.725,0.033,1.426-0.213,1.966-0.703c0.541-0.489,0.858-1.159,0.895-1.887c0.075-1.503-1.088-2.787-2.591-2.862l0.105-2.104 c2.664,0.132,4.724,2.406,4.592,5.07c-0.064,1.291-0.628,2.478-1.585,3.345C14.28,16.183,13.137,16.622,11.936,16.622L11.936,16.622 z"/>
</svg>
<div class="layout vertical">
- <div class="or-Headline1 theme-Headline1" style="margin: 0;"><#nested "header"></div>
- <div class="or-HeadlineSub theme-HeadlineSub" style="margin-left: 0.2em;">Manager Login</div>
+ <div class="or-Headline1" style="margin: 0;"><#nested "header"></div>
+ <div class="or-HeadlineSub" style="margin-left: 0.2em;">Manager Login</div>
</div>
</div>
@@ -73,11 +73,11 @@
</#if>
<#if displayMessage && message?has_content>
- <div class="layout horizontal or-FormMessages theme-FormMessages ${message.type}">
- <#if message.type=='success' ><div class="or-MessagesIcon theme-MessagesIcon fa fa-check"></div></#if>
- <#if message.type=='warning' ><div class="or-MessagesIcon theme-MessagesIcon fa fa-warning"></div></#if>
- <#if message.type=='error' ><div class="or-MessagesIcon theme-MessagesIcon fa fa-warning"></div></#if>
- <#if message.type=='info' ><div class="or-MessagesIcon theme-MessagesIcon fa fa-info"></div></#if>
+ <div class="layout horizontal or-FormMessages ${message.type}">
+ <#if message.type=='success' ><div class="or-MessagesIcon fa fa-check"></div></#if>
+ <#if message.type=='warning' ><div class="or-MessagesIcon fa fa-warning"></div></#if>
+ <#if message.type=='error' ><div class="or-MessagesIcon fa fa-warning"></div></#if>
+ <#if message.type=='info' ><div class="or-MessagesIcon fa fa-info"></div></#if>
${message.summary}
</div>
</#if>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/Environment.java b/manager/client/src/main/java/org/openremote/manager/client/Environment.java
index 7278178c8..9c5065951 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/Environment.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/Environment.java
@@ -20,13 +20,11 @@
package org.openremote.manager.client;
import com.google.gwt.place.shared.PlaceController;
-import com.google.gwt.place.shared.PlaceHistoryHandler;
import org.openremote.manager.client.event.bus.EventBus;
import org.openremote.manager.client.i18n.ManagerMessages;
import org.openremote.manager.client.service.EventService;
import org.openremote.manager.client.service.RequestService;
import org.openremote.manager.client.service.SecurityService;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
/**
@@ -41,8 +39,7 @@ public interface Environment {
PlaceController placeController,
EventBus eventBus,
ManagerMessages managerMessages,
- WidgetStyle widgetStyle,
- ThemeStyle themeStyle) {
+ WidgetStyle widgetStyle) {
return new Environment() {
@Override
public SecurityService getSecurityService() {
@@ -78,11 +75,6 @@ public interface Environment {
public WidgetStyle getWidgetStyle() {
return widgetStyle;
}
-
- @Override
- public ThemeStyle getThemeStyle() {
- return themeStyle;
- }
};
}
@@ -100,5 +92,4 @@ public interface Environment {
WidgetStyle getWidgetStyle();
- ThemeStyle getThemeStyle();
}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/ManagerModule.java b/manager/client/src/main/java/org/openremote/manager/client/ManagerModule.java
index bc581a15f..64e2d1beb 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/ManagerModule.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/ManagerModule.java
@@ -34,7 +34,6 @@ import org.openremote.manager.client.map.MapPlace;
import org.openremote.manager.client.mvp.AppActivityManager;
import org.openremote.manager.client.mvp.AppPlaceController;
import org.openremote.manager.client.service.*;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
public class ManagerModule extends AbstractGinModule {
@@ -62,8 +61,7 @@ public class ManagerModule extends AbstractGinModule {
PlaceController placeController,
EventBus eventBus,
ManagerMessages managerMessages,
- WidgetStyle widgetStyle,
- ThemeStyle themeStyle) {
+ WidgetStyle widgetStyle) {
return Environment.create(
securityService,
requestService,
@@ -71,8 +69,7 @@ public class ManagerModule extends AbstractGinModule {
placeController,
eventBus,
managerMessages,
- widgetStyle,
- themeStyle
+ widgetStyle
);
}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/AdminViewImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/AdminViewImpl.ui.xml
index 433c6ec1f..ed99e2949 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/AdminViewImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/AdminViewImpl.ui.xml
@@ -5,13 +5,12 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<g:HTMLPanel styleName="flex layout horizontal">
<an:AdminNavigation ui:field="adminNavigation"/>
- <div class="flex {widgetStyle.MainContent} {themeStyle.MainContent}">
+ <div class="flex {widgetStyle.MainContent}">
<g:SimplePanel ui:field="adminContentContainer"/>
</div>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentImpl.ui.xml
index b6cf56d0a..f6a050e85 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style type="org.openremote.manager.client.admin.agent.AdminAgentImpl.Style">
.formMessages {
@@ -36,24 +35,24 @@
<g:HTMLPanel styleName="flex layout vertical">
<g:FlowPanel
- styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} {themeStyle.FormMessages} success"
+ styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} success"
visible="false">
- <w:IconLabel icon="check" addStyleNames="{widgetStyle.MessagesIcon} {themeStyle.MessagesIcon}"/>
+ <w:IconLabel icon="check" addStyleNames="{widgetStyle.MessagesIcon}"/>
<g:FlowPanel ui:field="formMessagesSuccess"/>
</g:FlowPanel>
<g:FlowPanel
- styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} {themeStyle.FormMessages} error"
+ styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} error"
visible="false">
- <w:IconLabel icon="warning" addStyleNames="{widgetStyle.MessagesIcon} {themeStyle.MessagesIcon}"/>
+ <w:IconLabel icon="warning" addStyleNames="{widgetStyle.MessagesIcon}"/>
<g:FlowPanel ui:field="formMessagesError"/>
</g:FlowPanel>
- <div class="{widgetStyle.Headline1} {themeStyle.Headline1}">
+ <div class="{widgetStyle.Headline1}">
<g:InlineLabel text="{managerMessages.editAgent}"/>
</div>
- <div class="{widgetStyle.HeadlineSub} {themeStyle.HeadlineSub}">
+ <div class="{widgetStyle.HeadlineSub}">
<span class="required">*</span>
<g:InlineLabel text="{managerMessages.requiredFields}"/>
</div>
@@ -99,7 +98,7 @@
<w:field>
<w:FormField>
<g:ValueListBox ui:field="connectorListBox"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormDropDown} {themeStyle.FormDropDown}"/>
+ addStyleNames="{widgetStyle.FormControl} {widgetStyle.FormDropDown}"/>
</w:FormField>
</w:field>
</w:FormGroup>
@@ -109,24 +108,13 @@
<w:FormGroup centerJustified="true">
<w:field>
<w:FormField>
- <w:PushButton ui:field="updateButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.updateAgent}"
- visible="false"
- icon="save"/>
- <w:PushButton ui:field="createButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.createAgent}"
- visible="false"
- icon="save"/>
- <w:PushButton ui:field="deleteButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonDanger} {themeStyle.FormButtonDanger} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.deleteAgent}"
- visible="false"
+ <w:FormButton ui:field="updateButton" primary="true" text="{managerMessages.updateAgent}"
+ visible="false" icon="save"/>
+ <w:FormButton ui:field="createButton" primary="true" text="{managerMessages.createAgent}"
+ visible="false" icon="save"/>
+ <w:FormButton ui:field="deleteButton" text="{managerMessages.deleteAgent}" visible="false"
icon="trash"/>
- <w:PushButton ui:field="cancelButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButton} {themeStyle.FormButton} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.cancel}"
+ <w:FormButton ui:field="cancelButton" danger="true" text="{managerMessages.cancel}"
icon="close"/>
</w:FormField>
</w:field>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentsImpl.java b/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentsImpl.java
index a4acea29f..5b9583913 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentsImpl.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentsImpl.java
@@ -29,7 +29,6 @@ import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import org.openremote.manager.client.i18n.ManagerMessages;
import org.openremote.manager.client.style.FormTableStyle;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
import org.openremote.manager.client.widget.PushButton;
import org.openremote.manager.shared.agent.Agent;
@@ -49,9 +48,6 @@ public class AdminAgentsImpl extends Composite implements AdminAgents {
@UiField
WidgetStyle widgetStyle;
- @UiField
- ThemeStyle themeStyle;
-
@UiField
AdminAgentsTable.Style agentsTableStyle;
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentsImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentsImpl.ui.xml
index 7ee6ba6aa..372e50bc3 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentsImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/agent/AdminAgentsImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style field="agentsTableStyle" type="org.openremote.manager.client.admin.agent.AdminAgentsTable.Style">
.nameColumn {
@@ -26,7 +25,7 @@
<g:HTMLPanel styleName="flex layout vertical">
- <div class="{widgetStyle.Headline1} {themeStyle.Headline1}">
+ <div class="{widgetStyle.Headline1}">
<g:InlineLabel text="{managerMessages.configureAgents}"/>
</div>
@@ -34,9 +33,7 @@
<w:FormGroup>
<w:field>
<w:FormField>
- <w:PushButton ui:field="createButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.newAgent}"
+ <w:FormButton ui:field="createButton" primary="true" text="{managerMessages.newAgent}"
icon="plus-square"/>
</w:FormField>
</w:field>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/navigation/AdminNavigationImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/navigation/AdminNavigationImpl.ui.xml
index 1044836cd..a931ca70e 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/navigation/AdminNavigationImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/navigation/AdminNavigationImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style>
.navItem {
@@ -12,25 +11,25 @@
}
</ui:style>
- <g:HTMLPanel styleName="layout vertical {widgetStyle.SecondaryNav} {themeStyle.SecondaryNav}">
+ <g:HTMLPanel styleName="layout vertical {widgetStyle.SecondaryNav}">
<w:Hyperlink ui:field="overviewLink"
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="dashboard"
text="{managerMessages.overview}"/>
<w:Hyperlink ui:field="tenantsLink"
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="group"
text="{managerMessages.manageTenants}"/>
<w:Hyperlink ui:field="usersLink"
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="user"
text="{managerMessages.manageUsers}"/>
<w:Hyperlink ui:field="agentsLink"
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="gear"
text="{managerMessages.configureAgents}"/>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/overview/AdminOverviewImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/overview/AdminOverviewImpl.ui.xml
index 1d10c4250..294040049 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/overview/AdminOverviewImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/overview/AdminOverviewImpl.ui.xml
@@ -4,11 +4,10 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<g:HTMLPanel styleName="flex layout vertical">
- <div class="{widgetStyle.Headline1} {themeStyle.Headline1}">Admin Overview</div>
+ <div class="{widgetStyle.Headline1}">Admin Overview</div>
<div>
TODO: Implement some general admin actions, logs display, etc.
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantImpl.ui.xml
index 82b6635bb..8a863227c 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style>
.formMessages {
@@ -15,24 +14,24 @@
<g:HTMLPanel styleName="flex layout vertical">
<g:FlowPanel
- styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} {themeStyle.FormMessages} success"
+ styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} success"
visible="false">
- <w:IconLabel icon="check" addStyleNames="{widgetStyle.MessagesIcon} {themeStyle.MessagesIcon}"/>
+ <w:IconLabel icon="check" addStyleNames="{widgetStyle.MessagesIcon}"/>
<g:FlowPanel ui:field="formMessagesSuccess"/>
</g:FlowPanel>
<g:FlowPanel
- styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} {themeStyle.FormMessages} error"
+ styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} error"
visible="false">
- <w:IconLabel icon="warning" addStyleNames="{widgetStyle.MessagesIcon} {themeStyle.MessagesIcon}"/>
+ <w:IconLabel icon="warning" addStyleNames="{widgetStyle.MessagesIcon}"/>
<g:FlowPanel ui:field="formMessagesError"/>
</g:FlowPanel>
- <div class="{widgetStyle.Headline1} {themeStyle.Headline1}">
+ <div class="{widgetStyle.Headline1}">
<g:InlineLabel text="{managerMessages.editTenant}"/>
</div>
- <div class="{widgetStyle.HeadlineSub} {themeStyle.HeadlineSub}">
+ <div class="{widgetStyle.HeadlineSub}">
<span class="required">*</span>
<g:InlineLabel text="{managerMessages.requiredFields}"/>
</div>
@@ -75,25 +74,13 @@
<w:FormGroup centerJustified="true">
<w:field>
<w:FormField>
- <w:PushButton ui:field="updateButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.updateTenant}"
- visible="false"
- icon="save"/>
- <w:PushButton ui:field="createButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.createTenant}"
- visible="false"
- icon="save"/>
- <w:PushButton ui:field="deleteButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonDanger} {themeStyle.FormButtonDanger} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.deleteTenant}"
- visible="false"
- icon="trash"/>
- <w:PushButton ui:field="cancelButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButton} {themeStyle.FormButton} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.cancel}"
- icon="close"/>
+ <w:FormButton ui:field="updateButton" primary="true" text="{managerMessages.updateTenant}"
+ visible="false" icon="save"/>
+ <w:FormButton ui:field="createButton" primary="true" text="{managerMessages.createTenant}"
+ visible="false" icon="save"/>
+ <w:FormButton ui:field="deleteButton" danger="true" text="{managerMessages.deleteTenant}"
+ visible="false" icon="trash"/>
+ <w:FormButton ui:field="cancelButton" text="{managerMessages.cancel}" icon="close"/>
</w:FormField>
</w:field>
</w:FormGroup>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantsImpl.java b/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantsImpl.java
index 1a954705a..a405cd9ae 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantsImpl.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantsImpl.java
@@ -27,7 +27,6 @@ import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.*;
import org.openremote.manager.client.i18n.ManagerMessages;
import org.openremote.manager.client.style.FormTableStyle;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
import org.openremote.manager.client.widget.PushButton;
import org.openremote.manager.shared.security.Tenant;
@@ -47,9 +46,6 @@ public class AdminTenantsImpl extends Composite implements AdminTenants {
@UiField
WidgetStyle widgetStyle;
- @UiField
- ThemeStyle themeStyle;
-
@UiField
AdminTenantsTable.Style tenantsTableStyle;
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantsImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantsImpl.ui.xml
index 16013be05..92f18cac4 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantsImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/tenant/AdminTenantsImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style field="tenantsTableStyle" type="org.openremote.manager.client.admin.tenant.AdminTenantsTable.Style">
.nameColumn {
@@ -22,7 +21,7 @@
<g:HTMLPanel styleName="flex layout vertical">
- <div class="{widgetStyle.Headline1} {themeStyle.Headline1}">
+ <div class="{widgetStyle.Headline1}">
<g:InlineLabel text="{managerMessages.manageTenants}"/>
</div>
@@ -30,9 +29,7 @@
<w:FormGroup>
<w:field>
<w:FormField>
- <w:PushButton ui:field="createButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.newTenant}"
+ <w:FormButton ui:field="createButton" primary="true" text="{managerMessages.newTenant}"
icon="plus-square"/>
</w:FormField>
</w:field>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUserImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUserImpl.ui.xml
index 80f8916c3..079c7819e 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUserImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUserImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style>
.formMessages {
@@ -15,24 +14,24 @@
<g:HTMLPanel styleName="flex layout vertical">
<g:FlowPanel
- styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} {themeStyle.FormMessages} success"
+ styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} success"
visible="false">
- <w:IconLabel icon="check" addStyleNames="{widgetStyle.MessagesIcon} {themeStyle.MessagesIcon}"/>
+ <w:IconLabel icon="check" addStyleNames="{widgetStyle.MessagesIcon}"/>
<g:FlowPanel ui:field="formMessagesSuccess"/>
</g:FlowPanel>
<g:FlowPanel
- styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} {themeStyle.FormMessages} error"
+ styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} error"
visible="false">
- <w:IconLabel icon="warning" addStyleNames="{widgetStyle.MessagesIcon} {themeStyle.MessagesIcon}"/>
+ <w:IconLabel icon="warning" addStyleNames="{widgetStyle.MessagesIcon}"/>
<g:FlowPanel ui:field="formMessagesError"/>
</g:FlowPanel>
- <div class="{widgetStyle.Headline1} {themeStyle.Headline1}">
+ <div class="{widgetStyle.Headline1}">
<g:InlineLabel text="{managerMessages.editUser}"/>
</div>
- <div class="{widgetStyle.HeadlineSub} {themeStyle.HeadlineSub}">
+ <div class="{widgetStyle.HeadlineSub}">
<span class="required">*</span>
<g:InlineLabel text="{managerMessages.requiredFields}"/>
</div>
@@ -108,7 +107,7 @@
<w:FormField>
<!-- TODO: autocomplete="new-password" to disable browser saving password popup-->
<g:PasswordTextBox ui:field="resetPasswordInput"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormInputText} {themeStyle.FormInputText}"/>
+ addStyleNames="{widgetStyle.FormControl} {widgetStyle.FormInputText}"/>
</w:FormField>
</w:field>
</w:FormGroup>
@@ -120,7 +119,7 @@
<w:field>
<w:FormField>
<g:PasswordTextBox ui:field="resetPasswordControlInput"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormInputText} {themeStyle.FormInputText}"/>
+ addStyleNames="{widgetStyle.FormControl} {widgetStyle.FormInputText}"/>
</w:FormField>
</w:field>
</w:FormGroup>
@@ -146,25 +145,13 @@
<w:FormGroup centerJustified="true">
<w:field>
<w:FormField>
- <w:PushButton ui:field="updateButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.updateUser}"
- visible="false"
- icon="save"/>
- <w:PushButton ui:field="createButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.createUser}"
- visible="false"
- icon="save"/>
- <w:PushButton ui:field="deleteButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonDanger} {themeStyle.FormButtonDanger} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.deleteUser}"
- visible="false"
- icon="trash"/>
- <w:PushButton ui:field="cancelButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButton} {themeStyle.FormButton} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.cancel}"
- icon="close"/>
+ <w:FormButton ui:field="updateButton" primary="true" text="{managerMessages.updateUser}"
+ visible="false" icon="save"/>
+ <w:FormButton ui:field="createButton" primary="true" text="{managerMessages.createUser}"
+ visible="false" icon="save"/>
+ <w:FormButton ui:field="deleteButton" danger="true" text="{managerMessages.deleteUser}"
+ visible="false" icon="trash"/>
+ <w:FormButton ui:field="cancelButton" text="{managerMessages.cancel}" icon="close"/>
</w:FormField>
</w:field>
</w:FormGroup>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUsersImpl.java b/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUsersImpl.java
index cbbaaf762..1c80a19ec 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUsersImpl.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUsersImpl.java
@@ -31,7 +31,6 @@ import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.SimplePanel;
import org.openremote.manager.client.i18n.ManagerMessages;
import org.openremote.manager.client.style.FormTableStyle;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
import org.openremote.manager.client.widget.Form;
import org.openremote.manager.client.widget.PushButton;
@@ -52,8 +51,6 @@ public class AdminUsersImpl extends Composite implements AdminUsers {
@UiField
protected WidgetStyle widgetStyle;
- @UiField
- protected ThemeStyle themeStyle;
@UiField
AdminUsersTable.Style usersTableStyle;
diff --git a/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUsersImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUsersImpl.ui.xml
index 283036aad..ddd878dc2 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUsersImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/admin/users/AdminUsersImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style field="usersTableStyle" type="org.openremote.manager.client.admin.users.AdminUsersTable.Style">
.usernameColumn {
@@ -26,7 +25,7 @@
<g:HTMLPanel styleName="flex layout vertical">
- <div class="{widgetStyle.Headline1} {themeStyle.Headline1}">
+ <div class="{widgetStyle.Headline1}">
<g:InlineLabel text="{managerMessages.manageUsers}"/>
</div>
@@ -35,7 +34,7 @@
<w:field>
<w:FormField>
<g:ListBox ui:field="tenantListBox"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormDropDown} {themeStyle.FormDropDown}"
+ addStyleNames="{widgetStyle.FormControl} {widgetStyle.FormDropDown}"
visibleItemCount="1"/>
</w:FormField>
</w:field>
@@ -47,9 +46,7 @@
<w:FormGroup>
<w:field>
<w:FormField>
- <w:PushButton ui:field="createButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.newUser}"
+ <w:FormButton ui:field="createButton" primary="true" text="{managerMessages.newUser}"
icon="user-plus"/>
</w:FormField>
</w:field>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/app/AppViewImpl.java b/manager/client/src/main/java/org/openremote/manager/client/app/AppViewImpl.java
index f4bb64484..3bb097fd5 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/app/AppViewImpl.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/app/AppViewImpl.java
@@ -27,7 +27,6 @@ import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import org.openremote.manager.client.i18n.ManagerMessages;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
import javax.inject.Inject;
@@ -48,9 +47,6 @@ public class AppViewImpl extends Composite implements AppView {
@UiField
WidgetStyle widgetStyle;
- @UiField
- ThemeStyle themeStyle;
-
@UiField
SimplePanel header;
diff --git a/manager/client/src/main/java/org/openremote/manager/client/app/AppViewImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/app/AppViewImpl.ui.xml
index c5924bfea..7e06c5cbd 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/app/AppViewImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/app/AppViewImpl.ui.xml
@@ -3,9 +3,8 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
- <g:FlowPanel styleName="layout vertical" addStyleNames="{widgetStyle.Viewport} {themeStyle.Viewport}">
+ <g:FlowPanel styleName="layout vertical {widgetStyle.Viewport}">
<g:SimplePanel ui:field="header" styleName="layout horizontal"/>
<g:SimplePanel ui:field="content" styleName="flex layout vertical"/>
<g:SimplePanel ui:field="footer" styleName="layout horizontal"/>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/app/FooterViewImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/app/FooterViewImpl.ui.xml
index a86d71efe..76a060528 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/app/FooterViewImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/app/FooterViewImpl.ui.xml
@@ -10,10 +10,9 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
- <g:HTMLPanel styleName="flex layout end-justified horizontal" addStyleNames="{style.footer} {widgetStyle.Footer} {themeStyle.Footer}">
- <div class="{widgetStyle.Hyperlink} {themeStyle.Hyperlink}">
+ <g:HTMLPanel styleName="flex layout end-justified horizontal" addStyleNames="{style.footer} {widgetStyle.Footer}">
+ <div class="{widgetStyle.Hyperlink}">
<g:Anchor href="http://openremote.com/">&#169; OpenRemote Inc.</g:Anchor>
</div>
</g:HTMLPanel>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/app/HeaderViewImpl.java b/manager/client/src/main/java/org/openremote/manager/client/app/HeaderViewImpl.java
index 3b4cc73f2..f70efa2ee 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/app/HeaderViewImpl.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/app/HeaderViewImpl.java
@@ -29,7 +29,6 @@ import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.inject.Inject;
import org.openremote.manager.client.assets.AssetsPlace;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.admin.AdminPlace;
import org.openremote.manager.client.flows.FlowsPlace;
import org.openremote.manager.client.map.MapPlace;
@@ -44,9 +43,6 @@ public class HeaderViewImpl extends Composite implements HeaderView {
private static UI ui = GWT.create(UI.class);
private Presenter presenter;
- @UiField
- ThemeStyle themeStyle;
-
@UiField
HTMLPanel quickAccess;
diff --git a/manager/client/src/main/java/org/openremote/manager/client/app/HeaderViewImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/app/HeaderViewImpl.ui.xml
index b29d4f58b..a6371c87b 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/app/HeaderViewImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/app/HeaderViewImpl.ui.xml
@@ -19,12 +19,11 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
- <g:HTMLPanel styleName="flex layout horizontal center {widgetStyle.Header} {themeStyle.Header}">
+ <g:HTMLPanel styleName="flex layout horizontal center {widgetStyle.Header}">
<g:HTMLPanel ui:field="quickAccess"
- styleName="{style.navItemFirst} {widgetStyle.NavItem} {themeStyle.NavItem}">
+ styleName="{style.navItemFirst} {widgetStyle.NavItem}">
<g:HTMLPanel styleName="layout horizontal center {style.logoButton}">
<svg style="pointer-events: none; display: block; height: 100%; margin-right: 8px;" viewBox="0 0 24 24"
preserveAspectRatio="xMidYMid meet">
@@ -40,35 +39,35 @@
</g:HTMLPanel>
<w:PushButton ui:field="mapButton"
- addStyleNames="{widgetStyle.NavItem} {themeStyle.NavItem}"
+ addStyleNames="{widgetStyle.NavItem}"
icon="map"
text="{managerMessages.map}"/>
<w:PushButton ui:field="assetsButton"
- addStyleNames="{widgetStyle.NavItem} {themeStyle.NavItem}"
+ addStyleNames="{widgetStyle.NavItem}"
icon="cubes"
text="{managerMessages.assets}"/>
<w:PushButton ui:field="rulesButton"
- addStyleNames="{widgetStyle.NavItem} {themeStyle.NavItem}"
+ addStyleNames="{widgetStyle.NavItem}"
icon="chain"
text="{managerMessages.rules}"/>
<w:PushButton ui:field="flowsButton"
- addStyleNames="{widgetStyle.NavItem} {themeStyle.NavItem}"
+ addStyleNames="{widgetStyle.NavItem}"
icon="connectdevelop"
text="{managerMessages.flows}"/>
<g:HTMLPanel styleName="flex"/>
<w:PushButton ui:field="adminButton"
- addStyleNames="{widgetStyle.NavItem} {themeStyle.NavItem}"
+ addStyleNames="{widgetStyle.NavItem}"
icon="gears"
text="{managerMessages.admin}"/>
<w:PushButton ui:field="userButton"
icon="user"
- addStyleNames="{style.navItemLast} {widgetStyle.NavItem} {themeStyle.NavItem}"/>
+ addStyleNames="{style.navItemLast} {widgetStyle.NavItem}"/>
</g:HTMLPanel>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/app/dialog/ConfirmationDialogImpl.java b/manager/client/src/main/java/org/openremote/manager/client/app/dialog/ConfirmationDialogImpl.java
index 27c1357d3..baf3ce0ee 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/app/dialog/ConfirmationDialogImpl.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/app/dialog/ConfirmationDialogImpl.java
@@ -21,7 +21,6 @@ package org.openremote.manager.client.app.dialog;
import com.google.gwt.user.client.ui.Label;
import org.openremote.manager.client.i18n.ManagerMessages;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
import org.openremote.manager.client.widget.PushButton;
import org.openremote.manager.shared.Runnable;
@@ -38,25 +37,20 @@ public class ConfirmationDialogImpl implements ConfirmationDialog {
@Inject
public ConfirmationDialogImpl(Dialog dialog,
WidgetStyle widgetStyle,
- ThemeStyle themeStyle,
ManagerMessages managerMessages) {
this.dialog = dialog;
dialog.setModal(true);
dialog.setAutoHide(false);
dialog.addStyleName(widgetStyle.ConfirmationDialog());
- dialog.addStyleName(themeStyle.ConfirmationDialog());
PushButton confirmButton = new PushButton();
confirmButton.setFocus(true);
confirmButton.setText(managerMessages.OK());
confirmButton.setIcon("check");
confirmButton.addStyleName(widgetStyle.FormControl());
- confirmButton.addStyleName(themeStyle.FormControl());
confirmButton.addStyleName(widgetStyle.PushButton());
- confirmButton.addStyleName(themeStyle.PushButton());
confirmButton.addStyleName(widgetStyle.FormButtonPrimary());
- confirmButton.addStyleName(themeStyle.FormButtonPrimary());
confirmButton.addClickHandler(event -> {
dialog.hide();
if (onConfirm != null)
@@ -68,11 +62,8 @@ public class ConfirmationDialogImpl implements ConfirmationDialog {
cancelButton.setText(managerMessages.cancel());
cancelButton.setIcon("close");
cancelButton.addStyleName(widgetStyle.FormControl());
- cancelButton.addStyleName(themeStyle.FormControl());
cancelButton.addStyleName(widgetStyle.PushButton());
- cancelButton.addStyleName(themeStyle.PushButton());
cancelButton.addStyleName(widgetStyle.FormButton());
- cancelButton.addStyleName(themeStyle.FormButton());
cancelButton.addClickHandler(event -> {
dialog.hide();
if (onCancel != null)
diff --git a/manager/client/src/main/java/org/openremote/manager/client/app/dialog/DialogImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/app/dialog/DialogImpl.ui.xml
index 4da9aeefb..57ac16224 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/app/dialog/DialogImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/app/dialog/DialogImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style>
.popup {
@@ -29,18 +28,18 @@
}
</ui:style>
- <g:PopupPanel glassEnabled="false" addStyleNames="{style.popup} {widgetStyle.PopupPanel} {themeStyle.PopupPanel}">
+ <g:PopupPanel glassEnabled="false" addStyleNames="{style.popup} {widgetStyle.PopupPanel}">
<g:FlowPanel ui:field="mainPanel" styleName="flex layout vertical">
- <g:FlowPanel styleName="layout horizontal {style.header} {widgetStyle.PopupPanelHeader} {themeStyle.PopupPanelHeader}">
+ <g:FlowPanel styleName="layout horizontal {style.header} {widgetStyle.PopupPanelHeader}">
<g:Label ui:field="headerLabel"/>
</g:FlowPanel>
<g:FlowPanel ui:field="contentPanel"
styleName="flex layout vertical"
- addStyleNames="{style.content} {widgetStyle.PopupPanelContent} {themeStyle.PopupPanelContent}">
+ addStyleNames="{style.content} {widgetStyle.PopupPanelContent}">
</g:FlowPanel>
<g:FlowPanel ui:field="footerPanel"
styleName="layout horizontal center-center"
- addStyleNames="{style.footer} {widgetStyle.PopupPanelFooter} {themeStyle.PopupPanelFooter}">
+ addStyleNames="{style.footer} {widgetStyle.PopupPanelFooter}">
</g:FlowPanel>
</g:FlowPanel>
</g:PopupPanel>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/assets/AssetsDashboardImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/assets/AssetsDashboardImpl.ui.xml
index e7d8b1a09..f9fd98111 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/assets/AssetsDashboardImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/assets/AssetsDashboardImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style>
.assetsControls {
@@ -16,35 +15,35 @@
}
</ui:style>
- <w:FlexSplitPanel handleStyle="{widgetStyle.SplitPanelHandle} {themeStyle.SplitPanelHandle}"
+ <w:FlexSplitPanel handleStyle="{widgetStyle.SplitPanelHandle}"
firstPanelWidth="250"
firstPanelMinWidth="250"
secondPanelMinWidth="600">
<w:first>
<g:HTMLPanel ui:field="sidebarContainer"
- styleName="flex layout vertical {widgetStyle.SidebarContent} {themeStyle.SidebarContent}"/>
+ styleName="flex layout vertical {widgetStyle.SidebarContent}"/>
</w:first>
<w:second>
<g:HTMLPanel styleName="flex layout vertical">
<g:HTMLPanel
- styleName="layout horizontal center end-justified {style.assetsControls} {widgetStyle.SecondaryNavHorizontal} {themeStyle.SecondaryNavHorizontal}">
+ styleName="layout horizontal center end-justified {style.assetsControls} {widgetStyle.SecondaryNavHorizontal}">
<w:Hyperlink
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="edit"
targetHistoryToken="assets:"
text="{managerMessages.editDashboard}"/>
<w:Hyperlink
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="plus-square"
targetHistoryToken="asset:"
text="{managerMessages.createAsset}"/>
</g:HTMLPanel>
- <g:HTMLPanel styleName="flex {widgetStyle.MainContent} {themeStyle.MainContent}">
+ <g:HTMLPanel styleName="flex {widgetStyle.MainContent}">
<div>TODO: Asset browser switches to an advanced UI that needs more space on the left</div>
<g:SimplePanel ui:field="assetsContentContainer">
<g:Label
diff --git a/manager/client/src/main/java/org/openremote/manager/client/assets/asset/AssetViewImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/assets/asset/AssetViewImpl.ui.xml
index ec5ad0cd6..6c53aabdd 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/assets/asset/AssetViewImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/assets/asset/AssetViewImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style type="org.openremote.manager.client.assets.asset.AssetViewImpl.Style">
.navItem {
@@ -44,67 +43,66 @@
</ui:style>
<w:FlexSplitPanel ui:field="splitPanel"
- handleStyle="{widgetStyle.SplitPanelHandle} {themeStyle.SplitPanelHandle}"
+ handleStyle="{widgetStyle.SplitPanelHandle}"
firstPanelWidth="250"
firstPanelMinWidth="250"
secondPanelMinWidth="1000">
<w:first>
<g:HTMLPanel ui:field="sidebarContainer"
- styleName="flex layout vertical {widgetStyle.SidebarContent} {themeStyle.SidebarContent}"/>
+ styleName="flex layout vertical {widgetStyle.SidebarContent}"/>
</w:first>
<w:second>
<g:HTMLPanel styleName="flex layout vertical">
<g:HTMLPanel
- styleName="layout horizontal center end-justified {widgetStyle.SecondaryNavHorizontal} {themeStyle.SecondaryNavHorizontal}">
+ styleName="layout horizontal center end-justified {widgetStyle.SecondaryNavHorizontal}">
<w:Hyperlink
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="dashboard"
targetHistoryToken="assets:"
text="{managerMessages.showDashboard}"/>
<w:Hyperlink
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="plus-square"
targetHistoryToken="asset:"
text="{managerMessages.createAsset}"/>
</g:HTMLPanel>
- <div class="flex {widgetStyle.MainContent} {themeStyle.MainContent}">
+ <div class="flex {widgetStyle.MainContent}">
<g:HTMLPanel styleName="flex layout horizontal">
<g:HTMLPanel styleName="flex layout vertical">
<g:FlowPanel
- styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} {themeStyle.FormMessages} success"
+ styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} success"
visible="false">
<w:IconLabel icon="check"
- addStyleNames="{widgetStyle.MessagesIcon} {themeStyle.MessagesIcon}"/>
+ addStyleNames="{widgetStyle.MessagesIcon}"/>
<g:FlowPanel ui:field="formMessagesSuccess"/>
</g:FlowPanel>
<g:FlowPanel
- styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} {themeStyle.FormMessages} error"
+ styleName="layout horizontal {style.formMessages} {widgetStyle.FormMessages} error"
visible="false">
<w:IconLabel icon="warning"
- addStyleNames="{widgetStyle.MessagesIcon} {themeStyle.MessagesIcon}"/>
+ addStyleNames="{widgetStyle.MessagesIcon}"/>
<g:FlowPanel ui:field="formMessagesError"/>
</g:FlowPanel>
- <div class="{widgetStyle.Headline1} {themeStyle.Headline1}">
+ <div class="{widgetStyle.Headline1}">
<g:InlineLabel text="{managerMessages.editAsset}"/>
</div>
- <div class="{widgetStyle.HeadlineSub} {themeStyle.HeadlineSub}">
+ <div class="{widgetStyle.HeadlineSub}">
<span class="required">*</span>
<g:InlineLabel text="{managerMessages.requiredFields}"/>
</div>
-
<w:Form ui:field="form" addStyleNames="flex">
<w:FormGroup ui:field="nameGroup">
<w:label>
@@ -124,7 +122,7 @@
<w:field>
<w:FormField>
<g:Label ui:field="createdOnLabel"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormValueLabel} {themeStyle.FormValueLabel}"/>
+ addStyleNames="{widgetStyle.FormControl} {widgetStyle.FormValueLabel}"/>
</w:FormField>
</w:field>
</w:FormGroup>
@@ -136,26 +134,18 @@
<w:field>
<w:FormField addStyleNames="larger">
<g:FlowPanel styleName="layout horizontal center">
- <w:FormInputText ui:field="parentAssetLabel" readOnly="true" addStyleNames="{style.typeTextBox}"/>
- <w:PushButton ui:field="selectParentButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButton} {themeStyle.FormButton} {widgetStyle.PushButton} {themeStyle.PushButton}"
+ <w:FormInputText ui:field="parentAssetLabel" readOnly="true"
+ addStyleNames="{style.typeTextBox}"/>
+ <w:FormButton ui:field="selectParentButton"
text="{managerMessages.selectParentAsset}"
icon="external-link-square"/>
- <w:PushButton ui:field="setRootParentSelectionButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButton} {themeStyle.FormButton} {widgetStyle.PushButton} {themeStyle.PushButton}"
- visible="false"
+ <w:FormButton ui:field="setRootParentSelectionButton" visible="false"
text="{managerMessages.setRootParentAsset}"
icon="minus-square"/>
- <w:PushButton ui:field="confirmParentSelectionButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- visible="false"
- text="{managerMessages.OK}"
- icon="check"/>
- <w:PushButton ui:field="resetParentSelectionButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButton} {themeStyle.FormButton} {widgetStyle.PushButton} {themeStyle.PushButton}"
- visible="false"
- text="{managerMessages.reset}"
- icon="undo"/>
+ <w:FormButton ui:field="confirmParentSelectionButton" primary="true"
+ visible="false" text="{managerMessages.OK}" icon="check"/>
+ <w:FormButton ui:field="resetParentSelectionButton" visible="false"
+ text="{managerMessages.reset}" icon="undo"/>
</g:FlowPanel>
</w:FormField>
</w:field>
@@ -172,7 +162,8 @@
</w:label>
<w:field>
<w:FormField addStyleNames="larger">
- <w:FormInputText ui:field="typeInput" readOnly="true" addStyleNames="{style.typeTextBox}"/>
+ <w:FormInputText ui:field="typeInput" readOnly="true"
+ addStyleNames="{style.typeTextBox}"/>
</w:FormField>
</w:field>
</w:FormGroup>
@@ -184,7 +175,7 @@
<w:field>
<w:FormField>
<g:Label ui:field="locationLabel"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormValueLabel} {themeStyle.FormValueLabel}"/>
+ addStyleNames="{widgetStyle.FormControl} {widgetStyle.FormValueLabel}"/>
</w:FormField>
</w:field>
</w:FormGroup>
@@ -194,20 +185,14 @@
<w:FormGroup ui:field="submitButtonGroup" centerJustified="true">
<w:field>
<w:FormField>
- <w:PushButton ui:field="updateButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.updateAsset}"
- visible="false"
+ <w:FormButton ui:field="updateButton" primary="true"
+ text="{managerMessages.updateAsset}" visible="false"
icon="save"/>
- <w:PushButton ui:field="createButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonPrimary} {themeStyle.FormButtonPrimary} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.createAsset}"
- visible="false"
+ <w:FormButton ui:field="createButton" primary="true"
+ text="{managerMessages.createAsset}" visible="false"
icon="save"/>
- <w:PushButton ui:field="deleteButton"
- addStyleNames="{widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormButtonDanger} {themeStyle.FormButtonDanger} {widgetStyle.PushButton} {themeStyle.PushButton}"
- text="{managerMessages.deleteAsset}"
- visible="false"
+ <w:FormButton ui:field="deleteButton" danger="true"
+ text="{managerMessages.deleteAsset}" visible="false"
icon="trash"/>
</w:FormField>
</w:field>
@@ -218,7 +203,7 @@
</g:HTMLPanel>
<w:MapWidget ui:field="mapWidget"
- addStyleNames="{style.mapWidget} {widgetStyle.ItemWithBorder} {themeStyle.ItemWithBorder}"/>
+ addStyleNames="{style.mapWidget} {widgetStyle.ItemWithBorder}"/>
</g:HTMLPanel>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/assets/browser/AssetBrowserImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/assets/browser/AssetBrowserImpl.ui.xml
index aa90b1fa7..9a9d75825 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/assets/browser/AssetBrowserImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/assets/browser/AssetBrowserImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style>
.view {
@@ -35,17 +34,17 @@
addStyleNames="{style.view}">
<g:HTMLPanel
- styleName="layout horizontal center {widgetStyle.SecondaryNavHorizontal} {themeStyle.SecondaryNavHorizontal}">
+ styleName="layout horizontal center {widgetStyle.SecondaryNavHorizontal}">
<div class="flex">
<w:FormInputText ui:field="searchInput"
- addStyleNames="{style.navItemFirst} {style.searchInput} {widgetStyle.FormControl} {themeStyle.FormControl} {widgetStyle.FormInputText} {themeStyle.FormInputText}"
+ addStyleNames="{style.navItemFirst} {style.searchInput} {widgetStyle.FormControl} {widgetStyle.FormInputText}"
autofocus="true"
placeholder="{managerMessages.search}..."/>
</div>
<w:PushButton ui:field="filterButton"
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
text="{managerMessages.filter}"
icon="filter"/>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/map/MapViewImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/map/MapViewImpl.ui.xml
index 52c9af2dc..de29253f9 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/map/MapViewImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/map/MapViewImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style>
.navItem {
@@ -27,30 +26,30 @@
</ui:style>
<w:FlexSplitPanel ui:field="splitPanel"
- handleStyle="{widgetStyle.SplitPanelHandle} {themeStyle.SplitPanelHandle}"
+ handleStyle="{widgetStyle.SplitPanelHandle}"
firstPanelWidth="250"
firstPanelMinWidth="250"
secondPanelMinWidth="700">
<w:first>
<g:HTMLPanel ui:field="sidebarContainer"
- styleName="flex layout vertical {widgetStyle.SidebarContent} {themeStyle.SidebarContent}"/>
+ styleName="flex layout vertical {widgetStyle.SidebarContent}"/>
</w:first>
<w:second>
<g:HTMLPanel styleName="flex layout vertical">
<g:HTMLPanel
- styleName="layout horizontal center end-justified {style.mapControls} {widgetStyle.SecondaryNavHorizontal} {themeStyle.SecondaryNavHorizontal}">
+ styleName="layout horizontal center end-justified {style.mapControls} {widgetStyle.SecondaryNavHorizontal}">
<w:Hyperlink
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="map"
targetHistoryToken="map:"
text="Show all assets"/>
<w:Hyperlink
- addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem} {themeStyle.SecondaryNavItem}"
+ addStyleNames="{style.navItem} {widgetStyle.SecondaryNavItem}"
icon="plus-square"
targetHistoryToken="asset:"
text="{managerMessages.createAsset}"/>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/style/AbstractStyle.java b/manager/client/src/main/java/org/openremote/manager/client/style/AbstractStyle.java
deleted file mode 100644
index d204322b7..000000000
--- a/manager/client/src/main/java/org/openremote/manager/client/style/AbstractStyle.java
+++ /dev/null
@@ -1,357 +0,0 @@
-/*
- * Copyright 2016, OpenRemote Inc.
- *
- * See the CONTRIBUTORS.txt file in the distribution for a
- * full listing of individual contributors.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.openremote.manager.client.style;
-
-public abstract class AbstractStyle {
-
- abstract String getPrefix();
-
- public String Viewport() {
- return getPrefix() + "Viewport";
- }
-
- public String Header() {
- return getPrefix() + "Header";
- }
-
- public String Footer() {
- return getPrefix() + "Footer";
- }
-
- public String NavItem() {
- return getPrefix() + "NavItem";
- }
-
- public String SecondaryNav() {
- return getPrefix() + "SecondaryNav";
- }
-
- public String SecondaryNavHorizontal() {
- return getPrefix() + "SecondaryNavHorizontal";
- }
-
- public String SecondaryNavItem() {
- return getPrefix() + "SecondaryNavItem";
- }
-
- public String SidebarContent() {
- return getPrefix() + "SidebarContent";
- }
-
- public String MainContent() {
- return getPrefix() + "MainContent";
- }
-
- public String PushButton() {
- return getPrefix() + "PushButton";
- }
-
- public String Hyperlink() {
- return getPrefix() + "Hyperlink";
- }
-
- public String UnorderedList() {
- return getPrefix() + "UnorderedList";
- }
-
- public String Toast() {
- return getPrefix() + "Toast";
- }
-
- public String ToastInfo() {
- return getPrefix() + "ToastInfo";
- }
-
- public String ToastFailure() {
- return getPrefix() + "ToastFailure";
- }
-
- public String MessagesIcon() {
- return getPrefix() + "MessagesIcon";
- }
-
- public String PopupPanel() {
- return getPrefix() + "PopupPanel";
- }
-
- public String PopupPanelHeader() {
- return getPrefix() + "PopupPanelHeader";
- }
-
- public String PopupPanelContent() {
- return getPrefix() + "PopupPanelContent";
- }
-
- public String PopupPanelFooter() {
- return getPrefix() + "PopupPanelFooter";
- }
-
- public String Headline1() {
- return getPrefix() + "Headline1";
- }
-
- public String HeadlineSub() {
- return getPrefix() + "HeadlineSub";
- }
-
- public String Form() {
- return getPrefix() + "Form";
- }
-
- public String FormMessages() {
- return getPrefix() + "FormMessages";
- }
-
- public String FormBusy() {
- return getPrefix() + "FormBusy";
- }
-
- public String FormGroup() {
- return getPrefix() + "FormGroup";
- }
-
- public String FormLabel() {
- return getPrefix() + "FormLabel";
- }
-
- public String FormField() {
- return getPrefix() + "FormField";
- }
-
- public String FormControl() {
- return getPrefix() + "FormControl";
- }
-
- public String FormInputText() {
- return getPrefix() + "FormInputText";
- }
-
- public String FormValueLabel() {
- return getPrefix() + "FormValueLabel";
- }
-
- public String FormDropDown() {
- return getPrefix() + "FormDropDown";
- }
-
- public String FormButton() {
- return getPrefix() + "FormButton";
- }
-
- public String FormButtonPrimary() {
- return getPrefix() + "FormButtonPrimary";
- }
-
- public String FormButtonDanger() {
- return getPrefix() + "FormButtonDanger";
- }
-
- public String FormCheckBox() {
- return getPrefix() + "FormCheckBox";
- }
-
- public String FormTableHeaderCell() {
- return getPrefix() + "FormTableHeaderCell";
- }
-
- public String FormTableCell() {
- return getPrefix() + "FormTableCell";
- }
-
- public String FormTableCellText() {
- return getPrefix() + "FormTableCellText";
- }
-
- public String FormTableEvenRow() {
- return getPrefix() + "FormTableEvenRow";
- }
-
- public String FormTableEvenRowCell() {
- return getPrefix() + "FormTableEvenRowCell";
- }
-
- public String FormTableFirstColumn() {
- return getPrefix() + "FormTableFirstColumn";
- }
-
- public String FormTableFirstColumnFooter() {
- return getPrefix() + "FormTableFirstColumnFooter";
- }
-
- public String FormTableFirstColumnHeader() {
- return getPrefix() + "FormTableFirstColumnHeader";
- }
-
- public String FormTableFooter() {
- return getPrefix() + "FormTableFooter";
- }
-
- public String FormTableHeader() {
- return getPrefix() + "FormTableHeader";
- }
-
- public String FormTableHoveredRow() {
- return getPrefix() + "FormTableHoveredRow";
- }
-
- public String FormTableHoveredRowCell() {
- return getPrefix() + "FormTableHoveredRowCell";
- }
-
- public String FormTableKeyboardSelectedCell() {
- return getPrefix() + "FormTableKeyboardSelectedCell";
- }
-
- public String FormTableKeyboardSelectedRow() {
- return getPrefix() + "FormTableKeyboardSelectedRow";
- }
-
- public String FormTableKeyboardSelectedRowCell() {
- return getPrefix() + "FormTableKeyboardSelectedRowCell";
- }
-
- public String FormTableLastColumn() {
- return getPrefix() + "FormTableLastColumn";
- }
-
- public String FormTableLastColumnHeader() {
- return getPrefix() + "FormTableLastColumnHeader";
- }
-
- public String FormTableLastColumnFooter() {
- return getPrefix() + "FormTableLastColumnFooter";
- }
-
- public String FormTableLoading() {
- return getPrefix() + "FormTableLoading";
- }
-
- public String FormTableOddRow() {
- return getPrefix() + "FormTableOddRow";
- }
-
- public String FormTableOddRowCell() {
- return getPrefix() + "FormTableOddRowCell";
- }
-
- public String FormTableSelectedRow() {
- return getPrefix() + "FormTableSelectedRow";
- }
-
- public String FormTableSelectedRowCell() {
- return getPrefix() + "FormTableSelectedRowCell";
- }
-
- public String FormTableSortableHeader() {
- return getPrefix() + "FormTableSortableHeader";
- }
-
- public String FormTableSortedHeaderAscending() {
- return getPrefix() + "FormTableSortedHeaderAscending";
- }
-
- public String FormTableSortedHeaderDescending() {
- return getPrefix() + "FormTableSortedHeaderDescending";
- }
-
- public String FormTableWidget() {
- return getPrefix() + "FormTableWidget";
- }
-
- public String FormTreeEmptyMessage() {
- return getPrefix() + "FormTreeEmptyMessage";
- }
-
- public String FormTreeItem(){
- return getPrefix() + "FormTreeItem";
- }
-
- public String FormTreeItemImage(){
- return getPrefix() + "FormTreeItemImage";
- }
-
- public String FormTreeItemImageValue(){
- return getPrefix() + "FormTreeItemImageValue";
- }
-
- public String FormTreeItemValue(){
- return getPrefix() + "FormTreeItemValue";
- }
-
- public String FormTreeKeyboardSelectedItem(){
- return getPrefix() + "FormTreeKeyboardSelectedItem";
- }
-
- public String FormTreeSelectedItem(){
- return getPrefix() + "FormTreeSelectedItem";
- }
-
- public String FormTreeOpenItem(){
- return getPrefix() + "FormTreeOpenItem";
- }
-
- public String FormTreeShowMoreButton(){
- return getPrefix() + "FormTreeShowMoreButton";
- }
-
- public String FormTreeTopItem(){
- return getPrefix() + "FormTreeTopItem";
- }
-
- public String FormTreeTopItemImage(){
- return getPrefix() + "FormTreeTopItemImage";
- }
-
- public String FormTreeTopItemImageValue(){
- return getPrefix() + "FormTreeTopItemImageValue";
- }
-
- public String FormTreeWidget(){
- return getPrefix() + "FormTreeWidget";
- }
-
- public String StatusIndicator() {
- return getPrefix() + "StatusIndicator";
- }
-
- public String StatusIndicatorOK() {
- return getPrefix() + "StatusIndicatorOK";
- }
-
- public String StatusIndicatorATT() {
- return getPrefix() + "StatusIndicatorATT";
- }
-
- public String StatusIndicatorERROR() {
- return getPrefix() + "StatusIndicatorERROR";
- }
-
- public String SplitPanelHandle() {
- return getPrefix() + "SplitPanelHandle";
- }
-
- public String ItemWithBorder() {
- return getPrefix() + "ItemWithBorder";
- }
-
- public String ConfirmationDialog() {
- return getPrefix() + "ConfirmationDialog";
- }
-}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/style/FormTableStyle.java b/manager/client/src/main/java/org/openremote/manager/client/style/FormTableStyle.java
index d692ac3e5..eb04fe216 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/style/FormTableStyle.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/style/FormTableStyle.java
@@ -31,7 +31,6 @@ public class FormTableStyle implements CellTable.Style {
final protected StyleClientBundle styleClientBundle;
final protected WidgetStyle widgetStyle;
- final protected ThemeStyle themeStyle;
final protected CellTable.Resources cellTableResources = new CellTable.Resources() {
@Override
@@ -71,10 +70,9 @@ public class FormTableStyle implements CellTable.Style {
};
@Inject
- public FormTableStyle(StyleClientBundle styleClientBundle, WidgetStyle widgetStyle, ThemeStyle themeStyle) {
+ public FormTableStyle(StyleClientBundle styleClientBundle, WidgetStyle widgetStyle) {
this.styleClientBundle = styleClientBundle;
this.widgetStyle = widgetStyle;
- this.themeStyle = themeStyle;
}
public CellTable.Resources getCellTableResources() {
@@ -85,133 +83,129 @@ public class FormTableStyle implements CellTable.Style {
return widgetStyle;
}
- public ThemeStyle getThemeStyle() {
- return themeStyle;
- }
-
@Override
public String cellTableCell() {
- return widgetStyle.FormTableCell() + " " + themeStyle.FormTableCell();
+ return widgetStyle.FormTableCell();
}
@Override
public String cellTableEvenRow() {
- return widgetStyle.FormTableEvenRow() + " " + themeStyle.FormTableEvenRow();
+ return widgetStyle.FormTableEvenRow();
}
@Override
public String cellTableEvenRowCell() {
- return widgetStyle.FormTableEvenRowCell() + " " + themeStyle.FormTableEvenRowCell();
+ return widgetStyle.FormTableEvenRowCell();
}
@Override
public String cellTableFirstColumn() {
- return widgetStyle.FormTableFirstColumn() + " " + themeStyle.FormTableFirstColumn();
+ return widgetStyle.FormTableFirstColumn();
}
@Override
public String cellTableFirstColumnFooter() {
- return widgetStyle.FormTableFirstColumnFooter() + " " + themeStyle.FormTableFirstColumnFooter();
+ return widgetStyle.FormTableFirstColumnFooter();
}
@Override
public String cellTableFirstColumnHeader() {
- return widgetStyle.FormTableFirstColumnHeader() + " " + themeStyle.FormTableFirstColumnHeader();
+ return widgetStyle.FormTableFirstColumnHeader();
}
@Override
public String cellTableFooter() {
- return widgetStyle.FormTableFooter() + " " + themeStyle.FormTableFooter();
+ return widgetStyle.FormTableFooter();
}
@Override
public String cellTableHeader() {
- return widgetStyle.FormTableHeader() + " " + themeStyle.FormTableHeader();
+ return widgetStyle.FormTableHeader();
}
@Override
public String cellTableHoveredRow() {
- return widgetStyle.FormTableHoveredRow() + " " + themeStyle.FormTableHoveredRow();
+ return widgetStyle.FormTableHoveredRow();
}
@Override
public String cellTableHoveredRowCell() {
- return widgetStyle.FormTableHoveredRowCell() + " " + themeStyle.FormTableHoveredRowCell();
+ return widgetStyle.FormTableHoveredRowCell();
}
@Override
public String cellTableKeyboardSelectedCell() {
- return widgetStyle.FormTableKeyboardSelectedCell() + " " + themeStyle.FormTableKeyboardSelectedCell();
+ return widgetStyle.FormTableKeyboardSelectedCell();
}
@Override
public String cellTableKeyboardSelectedRow() {
- return widgetStyle.FormTableKeyboardSelectedRow() + " " + themeStyle.FormTableKeyboardSelectedRow();
+ return widgetStyle.FormTableKeyboardSelectedRow();
}
@Override
public String cellTableKeyboardSelectedRowCell() {
- return widgetStyle.FormTableKeyboardSelectedRowCell() + " " + themeStyle.FormTableKeyboardSelectedRowCell();
+ return widgetStyle.FormTableKeyboardSelectedRowCell();
}
@Override
public String cellTableLastColumn() {
- return widgetStyle.FormTableLastColumn() + " " + themeStyle.FormTableLastColumn();
+ return widgetStyle.FormTableLastColumn();
}
@Override
public String cellTableLastColumnFooter() {
- return widgetStyle.FormTableLastColumnFooter() + " " + themeStyle.FormTableLastColumnFooter();
+ return widgetStyle.FormTableLastColumnFooter();
}
@Override
public String cellTableLastColumnHeader() {
- return widgetStyle.FormTableLastColumnHeader() + " " + themeStyle.FormTableLastColumnHeader();
+ return widgetStyle.FormTableLastColumnHeader();
}
@Override
public String cellTableLoading() {
- return widgetStyle.FormTableLoading() + " " + themeStyle.FormTableLoading();
+ return widgetStyle.FormTableLoading();
}
@Override
public String cellTableOddRow() {
- return widgetStyle.FormTableOddRow() + " " + themeStyle.FormTableOddRow();
+ return widgetStyle.FormTableOddRow();
}
@Override
public String cellTableOddRowCell() {
- return widgetStyle.FormTableOddRowCell() + " " + themeStyle.FormTableOddRowCell();
+ return widgetStyle.FormTableOddRowCell();
}
@Override
public String cellTableSelectedRow() {
- return widgetStyle.FormTableSelectedRow() + " " + themeStyle.FormTableSelectedRow();
+ return widgetStyle.FormTableSelectedRow();
}
@Override
public String cellTableSelectedRowCell() {
- return widgetStyle.FormTableSelectedRowCell() + " " + themeStyle.FormTableSelectedRowCell();
+ return widgetStyle.FormTableSelectedRowCell();
}
@Override
public String cellTableSortableHeader() {
- return widgetStyle.FormTableSortableHeader() + " " + themeStyle.FormTableSortableHeader();
+ return widgetStyle.FormTableSortableHeader();
}
@Override
public String cellTableSortedHeaderAscending() {
- return widgetStyle.FormTableSortedHeaderAscending() + " " + themeStyle.FormTableSortedHeaderAscending();
+ return widgetStyle.FormTableSortedHeaderAscending();
}
@Override
public String cellTableSortedHeaderDescending() {
- return widgetStyle.FormTableSortedHeaderDescending() + " " + themeStyle.FormTableSortedHeaderDescending();
+ return widgetStyle.FormTableSortedHeaderDescending();
}
@Override
public String cellTableWidget() {
- return widgetStyle.FormTableWidget() + " " + themeStyle.FormTableWidget();
+ return widgetStyle.FormTableWidget();
}
@Override
diff --git a/manager/client/src/main/java/org/openremote/manager/client/style/FormTreeStyle.java b/manager/client/src/main/java/org/openremote/manager/client/style/FormTreeStyle.java
index 63e9bfe8e..2a8f781d9 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/style/FormTreeStyle.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/style/FormTreeStyle.java
@@ -9,7 +9,6 @@ public class FormTreeStyle implements CellTree.Style {
final protected StyleClientBundle styleClientBundle;
final protected WidgetStyle widgetStyle;
- final protected ThemeStyle themeStyle;
final protected CellTree.Resources cellTreeResources = new CellTree.Resources() {
@@ -40,10 +39,9 @@ public class FormTreeStyle implements CellTree.Style {
};
@Inject
- public FormTreeStyle(StyleClientBundle styleClientBundle, WidgetStyle widgetStyle, ThemeStyle themeStyle) {
+ public FormTreeStyle(StyleClientBundle styleClientBundle, WidgetStyle widgetStyle) {
this.styleClientBundle = styleClientBundle;
this.widgetStyle = widgetStyle;
- this.themeStyle = themeStyle;
}
public CellTree.Resources getCellTreeResources() {
@@ -54,73 +52,69 @@ public class FormTreeStyle implements CellTree.Style {
return widgetStyle;
}
- public ThemeStyle getThemeStyle() {
- return themeStyle;
- }
-
@Override
public String cellTreeEmptyMessage() {
- return widgetStyle.FormTreeEmptyMessage() + " " + themeStyle.FormTreeEmptyMessage();
+ return widgetStyle.FormTreeEmptyMessage();
}
@Override
public String cellTreeItem() {
- return widgetStyle.FormTreeItem() + " " + themeStyle.FormTreeItem();
+ return widgetStyle.FormTreeItem();
}
@Override
public String cellTreeItemImage() {
- return widgetStyle.FormTreeItemImage() + " " + themeStyle.FormTreeItemImage();
+ return widgetStyle.FormTreeItemImage();
}
@Override
public String cellTreeItemImageValue() {
- return widgetStyle.FormTreeItemImageValue() + " " + themeStyle.FormTreeItemImageValue();
+ return widgetStyle.FormTreeItemImageValue();
}
@Override
public String cellTreeItemValue() {
- return widgetStyle.FormTreeItemValue() + " " + themeStyle.FormTreeItemValue();
+ return widgetStyle.FormTreeItemValue();
}
@Override
public String cellTreeKeyboardSelectedItem() {
- return widgetStyle.FormTreeKeyboardSelectedItem() + " " + themeStyle.FormTreeKeyboardSelectedItem();
+ return widgetStyle.FormTreeKeyboardSelectedItem();
}
@Override
public String cellTreeOpenItem() {
- return widgetStyle.FormTreeOpenItem() + " " + themeStyle.FormTreeOpenItem();
+ return widgetStyle.FormTreeOpenItem();
}
@Override
public String cellTreeSelectedItem() {
- return widgetStyle.FormTreeSelectedItem() + " " + themeStyle.FormTreeSelectedItem();
+ return widgetStyle.FormTreeSelectedItem();
}
@Override
public String cellTreeShowMoreButton() {
- return widgetStyle.FormTreeShowMoreButton() + " " + themeStyle.FormTreeShowMoreButton();
+ return widgetStyle.FormTreeShowMoreButton();
}
@Override
public String cellTreeTopItem() {
- return widgetStyle.FormTreeTopItem() + " " + themeStyle.FormTreeTopItem();
+ return widgetStyle.FormTreeTopItem();
}
@Override
public String cellTreeTopItemImage() {
- return widgetStyle.FormTreeTopItemImage() + " " + themeStyle.FormTreeTopItemImage();
+ return widgetStyle.FormTreeTopItemImage();
}
@Override
public String cellTreeTopItemImageValue() {
- return widgetStyle.FormTreeTopItemImageValue() + " " + themeStyle.FormTreeTopItemImageValue();
+ return widgetStyle.FormTreeTopItemImageValue();
}
@Override
public String cellTreeWidget() {
- return widgetStyle.FormTreeWidget() + " " + themeStyle.FormTreeWidget();
+ return widgetStyle.FormTreeWidget();
}
@Override
diff --git a/manager/client/src/main/java/org/openremote/manager/client/style/WidgetStyle.java b/manager/client/src/main/java/org/openremote/manager/client/style/WidgetStyle.java
index df77b2119..b6f107dcc 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/style/WidgetStyle.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/style/WidgetStyle.java
@@ -19,10 +19,337 @@
*/
package org.openremote.manager.client.style;
-public class WidgetStyle extends AbstractStyle {
+public class WidgetStyle {
- @Override
- String getPrefix() {
- return "or-";
+ public String Viewport() {
+ return "or-Viewport";
}
-}
\ No newline at end of file
+
+ public String Header() {
+ return "or-Header";
+ }
+
+ public String Footer() {
+ return "or-Footer";
+ }
+
+ public String NavItem() {
+ return "or-NavItem";
+ }
+
+ public String SecondaryNav() {
+ return "or-SecondaryNav";
+ }
+
+ public String SecondaryNavHorizontal() {
+ return "or-SecondaryNavHorizontal";
+ }
+
+ public String SecondaryNavItem() {
+ return "or-SecondaryNavItem";
+ }
+
+ public String SidebarContent() {
+ return "or-SidebarContent";
+ }
+
+ public String MainContent() {
+ return "or-MainContent";
+ }
+
+ public String PushButton() {
+ return "or-PushButton";
+ }
+
+ public String Hyperlink() {
+ return "or-Hyperlink";
+ }
+
+ public String UnorderedList() {
+ return "or-UnorderedList";
+ }
+
+ public String Toast() {
+ return "or-Toast";
+ }
+
+ public String ToastInfo() {
+ return "or-ToastInfo";
+ }
+
+ public String ToastFailure() {
+ return "or-ToastFailure";
+ }
+
+ public String MessagesIcon() {
+ return "or-MessagesIcon";
+ }
+
+ public String PopupPanel() {
+ return "or-PopupPanel";
+ }
+
+ public String PopupPanelHeader() {
+ return "or-PopupPanelHeader";
+ }
+
+ public String PopupPanelContent() {
+ return "or-PopupPanelContent";
+ }
+
+ public String PopupPanelFooter() {
+ return "or-PopupPanelFooter";
+ }
+
+ public String Headline1() {
+ return "or-Headline1";
+ }
+
+ public String HeadlineSub() {
+ return "or-HeadlineSub";
+ }
+
+ public String Form() {
+ return "or-Form";
+ }
+
+ public String FormMessages() {
+ return "or-FormMessages";
+ }
+
+ public String FormBusy() {
+ return "or-FormBusy";
+ }
+
+ public String FormGroup() {
+ return "or-FormGroup";
+ }
+
+ public String FormLabel() {
+ return "or-FormLabel";
+ }
+
+ public String FormField() {
+ return "or-FormField";
+ }
+
+ public String FormControl() {
+ return "or-FormControl";
+ }
+
+ public String FormInputText() {
+ return "or-FormInputText";
+ }
+
+ public String FormValueLabel() {
+ return "or-FormValueLabel";
+ }
+
+ public String FormDropDown() {
+ return "or-FormDropDown";
+ }
+
+ public String FormButton() {
+ return "or-FormButton";
+ }
+
+ public String FormButtonPrimary() {
+ return "or-FormButtonPrimary";
+ }
+
+ public String FormButtonDanger() {
+ return "or-FormButtonDanger";
+ }
+
+ public String FormCheckBox() {
+ return "or-FormCheckBox";
+ }
+
+ public String FormTableHeaderCell() {
+ return "or-FormTableHeaderCell";
+ }
+
+ public String FormTableCell() {
+ return "or-FormTableCell";
+ }
+
+ public String FormTableCellText() {
+ return "or-FormTableCellText";
+ }
+
+ public String FormTableEvenRow() {
+ return "or-FormTableEvenRow";
+ }
+
+ public String FormTableEvenRowCell() {
+ return "or-FormTableEvenRowCell";
+ }
+
+ public String FormTableFirstColumn() {
+ return "or-FormTableFirstColumn";
+ }
+
+ public String FormTableFirstColumnFooter() {
+ return "or-FormTableFirstColumnFooter";
+ }
+
+ public String FormTableFirstColumnHeader() {
+ return "or-FormTableFirstColumnHeader";
+ }
+
+ public String FormTableFooter() {
+ return "or-FormTableFooter";
+ }
+
+ public String FormTableHeader() {
+ return "or-FormTableHeader";
+ }
+
+ public String FormTableHoveredRow() {
+ return "or-FormTableHoveredRow";
+ }
+
+ public String FormTableHoveredRowCell() {
+ return "or-FormTableHoveredRowCell";
+ }
+
+ public String FormTableKeyboardSelectedCell() {
+ return "or-FormTableKeyboardSelectedCell";
+ }
+
+ public String FormTableKeyboardSelectedRow() {
+ return "or-FormTableKeyboardSelectedRow";
+ }
+
+ public String FormTableKeyboardSelectedRowCell() {
+ return "or-FormTableKeyboardSelectedRowCell";
+ }
+
+ public String FormTableLastColumn() {
+ return "or-FormTableLastColumn";
+ }
+
+ public String FormTableLastColumnHeader() {
+ return "or-FormTableLastColumnHeader";
+ }
+
+ public String FormTableLastColumnFooter() {
+ return "or-FormTableLastColumnFooter";
+ }
+
+ public String FormTableLoading() {
+ return "or-FormTableLoading";
+ }
+
+ public String FormTableOddRow() {
+ return "or-FormTableOddRow";
+ }
+
+ public String FormTableOddRowCell() {
+ return "or-FormTableOddRowCell";
+ }
+
+ public String FormTableSelectedRow() {
+ return "or-FormTableSelectedRow";
+ }
+
+ public String FormTableSelectedRowCell() {
+ return "or-FormTableSelectedRowCell";
+ }
+
+ public String FormTableSortableHeader() {
+ return "or-FormTableSortableHeader";
+ }
+
+ public String FormTableSortedHeaderAscending() {
+ return "or-FormTableSortedHeaderAscending";
+ }
+
+ public String FormTableSortedHeaderDescending() {
+ return "or-FormTableSortedHeaderDescending";
+ }
+
+ public String FormTableWidget() {
+ return "or-FormTableWidget";
+ }
+
+ public String FormTreeEmptyMessage() {
+ return "or-FormTreeEmptyMessage";
+ }
+
+ public String FormTreeItem(){
+ return "or-FormTreeItem";
+ }
+
+ public String FormTreeItemImage(){
+ return "or-FormTreeItemImage";
+ }
+
+ public String FormTreeItemImageValue(){
+ return "or-FormTreeItemImageValue";
+ }
+
+ public String FormTreeItemValue(){
+ return "or-FormTreeItemValue";
+ }
+
+ public String FormTreeKeyboardSelectedItem(){
+ return "or-FormTreeKeyboardSelectedItem";
+ }
+
+ public String FormTreeSelectedItem(){
+ return "or-FormTreeSelectedItem";
+ }
+
+ public String FormTreeOpenItem(){
+ return "or-FormTreeOpenItem";
+ }
+
+ public String FormTreeShowMoreButton(){
+ return "or-FormTreeShowMoreButton";
+ }
+
+ public String FormTreeTopItem(){
+ return "or-FormTreeTopItem";
+ }
+
+ public String FormTreeTopItemImage(){
+ return "or-FormTreeTopItemImage";
+ }
+
+ public String FormTreeTopItemImageValue(){
+ return "or-FormTreeTopItemImageValue";
+ }
+
+ public String FormTreeWidget(){
+ return "or-FormTreeWidget";
+ }
+
+ public String StatusIndicator() {
+ return "or-StatusIndicator";
+ }
+
+ public String StatusIndicatorOK() {
+ return "or-StatusIndicatorOK";
+ }
+
+ public String StatusIndicatorATT() {
+ return "or-StatusIndicatorATT";
+ }
+
+ public String StatusIndicatorERROR() {
+ return "or-StatusIndicatorERROR";
+ }
+
+ public String SplitPanelHandle() {
+ return "or-SplitPanelHandle";
+ }
+
+ public String ItemWithBorder() {
+ return "or-ItemWithBorder";
+ }
+
+ public String ConfirmationDialog() {
+ return "or-ConfirmationDialog";
+ }
+}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/toast/PopupToastDisplay.java b/manager/client/src/main/java/org/openremote/manager/client/toast/PopupToastDisplay.java
index 33942ec46..3d02e69b4 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/toast/PopupToastDisplay.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/toast/PopupToastDisplay.java
@@ -23,7 +23,6 @@ import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
import org.openremote.manager.client.widget.MessagesIcon;
@@ -184,13 +183,11 @@ public class PopupToastDisplay implements ToastDisplay {
public static final int MARGIN_RIGHT_PIXEL = 25;
final protected WidgetStyle widgetStyle;
- final protected ThemeStyle themeStyle;
final protected Map<Toast, ToastPopupPanel> toastPanels = new HashMap<>();
@Inject
- public PopupToastDisplay(WidgetStyle widgetStyle, ThemeStyle themeStyle) {
+ public PopupToastDisplay(WidgetStyle widgetStyle) {
this.widgetStyle = widgetStyle;
- this.themeStyle = themeStyle;
}
@Override
@@ -236,13 +233,10 @@ public class PopupToastDisplay implements ToastDisplay {
content.setStyleName("layout horizontal center");
content.addStyleName(widgetStyle.Toast());
- content.addStyleName(themeStyle.Toast());
if (isInfo) {
content.addStyleName(widgetStyle.ToastInfo());
- content.addStyleName(themeStyle.ToastInfo());
} else {
content.addStyleName(widgetStyle.ToastFailure());
- content.addStyleName(themeStyle.ToastFailure());
}
content.add(new MessagesIcon(isInfo));
diff --git a/manager/client/src/main/java/org/openremote/manager/client/user/UserAccountViewImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/user/UserAccountViewImpl.ui.xml
index 701d078fe..9447f340e 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/user/UserAccountViewImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/user/UserAccountViewImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<g:HTMLPanel styleName="flex layout vertical">
<iframe ui:field="frame"
diff --git a/manager/client/src/main/java/org/openremote/manager/client/user/UserControlsImpl.ui.xml b/manager/client/src/main/java/org/openremote/manager/client/user/UserControlsImpl.ui.xml
index a8dbed5f5..7ae9e07c9 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/user/UserControlsImpl.ui.xml
+++ b/manager/client/src/main/java/org/openremote/manager/client/user/UserControlsImpl.ui.xml
@@ -4,7 +4,6 @@
<ui:with field="managerMessages" type="org.openremote.manager.client.i18n.ManagerMessages"/>
<ui:with field="widgetStyle" type="org.openremote.manager.client.style.WidgetStyle"/>
- <ui:with field="themeStyle" type="org.openremote.manager.client.style.ThemeStyle"/>
<ui:style>
.popup {
@@ -38,19 +37,20 @@
}
</ui:style>
- <g:PopupPanel glassEnabled="false" addStyleNames="{style.popup} {widgetStyle.PopupPanel} {themeStyle.PopupPanel}">
+ <g:PopupPanel glassEnabled="false" addStyleNames="{style.popup} {widgetStyle.PopupPanel}">
<g:HTMLPanel styleName="flex layout vertical {style.panel}">
- <g:HTMLPanel styleName="layout horizontal {style.header} {widgetStyle.PopupPanelHeader} {themeStyle.PopupPanelHeader}">
+ <g:HTMLPanel
+ styleName="layout horizontal {style.header} {widgetStyle.PopupPanelHeader}">
<g:Label ui:field="userLabel"/>
</g:HTMLPanel>
<g:HTMLPanel styleName="flex layout vertical"
- addStyleNames="{style.content} {widgetStyle.PopupPanelContent} {themeStyle.PopupPanelContent}">
+ addStyleNames="{style.content} {widgetStyle.PopupPanelContent}">
- <ul class="{widgetStyle.UnorderedList} {themeStyle.UnorderedList}">
+ <ul class="{widgetStyle.UnorderedList}">
<li ui:field="editProfileItem">
<w:Hyperlink ui:field="editProfileLink"
- addStyleNames="{widgetStyle.Hyperlink} {themeStyle.Hyperlink}"
+ addStyleNames="{widgetStyle.Hyperlink}"
text="{managerMessages.editAccount}"/>
</li>
@@ -58,11 +58,8 @@
</g:HTMLPanel>
<g:HTMLPanel styleName="layout horizontal center-center"
- addStyleNames="{style.footer} {widgetStyle.PopupPanelFooter} {themeStyle.PopupPanelFooter}">
- <w:PushButton ui:field="logoutButton"
- icon="sign-out"
- text="{managerMessages.logout}"
- addStyleNames="{widgetStyle.PushButton} {themeStyle.PushButton}"/>
+ addStyleNames="{style.footer} {widgetStyle.PopupPanelFooter}">
+ <w:PushButton ui:field="logoutButton" icon="sign-out" text="{managerMessages.logout}"/>
</g:HTMLPanel>
</g:HTMLPanel>
</g:PopupPanel>
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/AbstractAppPanel.java b/manager/client/src/main/java/org/openremote/manager/client/widget/AbstractAppPanel.java
index 0c85e1c12..3ce601a32 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/AbstractAppPanel.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/AbstractAppPanel.java
@@ -34,7 +34,7 @@ public abstract class AbstractAppPanel implements AppPanel {
this.popupPanel = binder.createAndBindUi(this);
popupPanel.setAutoHideOnHistoryEventsEnabled(true);
- popupPanel.setGlassStyleName("or-PopupPanelGlass theme-PopupPanelGlass");
+ popupPanel.setGlassStyleName("or-PopupPanelGlass");
popupPanel.addCloseHandler(event -> {
if (target != null) {
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/Form.java b/manager/client/src/main/java/org/openremote/manager/client/widget/Form.java
index 01ceec007..3f462092c 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/Form.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/Form.java
@@ -25,15 +25,13 @@ import com.google.gwt.user.client.ui.HasWidgets;
public class Form extends FlowPanel implements HasWidgets {
public Form() {
- getElement().addClassName("layout vertical or-Form theme-Form");
+ getElement().addClassName("layout vertical or-Form");
}
public void setBusy(boolean busy) {
getElement().removeClassName("or-FormBusy");
- getElement().removeClassName("theme-FormBusy");
if (busy) {
getElement().addClassName("or-FormBusy");
- getElement().addClassName("theme-FormBusy");
}
}
}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/style/ThemeStyle.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormButton.java
similarity index 54%
rename from manager/client/src/main/java/org/openremote/manager/client/style/ThemeStyle.java
rename to manager/client/src/main/java/org/openremote/manager/client/widget/FormButton.java
index 11cfd50b1..88a80cd7f 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/style/ThemeStyle.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormButton.java
@@ -17,13 +17,33 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-package org.openremote.manager.client.style;
+package org.openremote.manager.client.widget;
-public class ThemeStyle extends AbstractStyle {
+public class FormButton extends PushButton {
- @Override
- String getPrefix() {
- return "theme-";
+ public FormButton() {
+ super();
+ addStyleName("or-FormControl or-FormButton");
}
-}
\ No newline at end of file
+ public void setPrimary(boolean primary) {
+ clearStyles();
+ if (primary) {
+ addStyleName("or-FormButtonPrimary");
+ }
+ }
+
+ public void setDanger(boolean danger) {
+ clearStyles();
+ if (danger) {
+ addStyleName("or-FormButtonDanger");
+ }
+ }
+
+ protected void clearStyles() {
+ removeStyleName("or-FormButton");
+ removeStyleName("or-FormButtonPrimary");
+ removeStyleName("or-FormButtonDanger");
+ }
+
+}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormCheckBox.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormCheckBox.java
index e3ead678a..cf27be342 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormCheckBox.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormCheckBox.java
@@ -24,6 +24,6 @@ import com.google.gwt.user.client.ui.SimpleCheckBox;
public class FormCheckBox extends SimpleCheckBox {
public FormCheckBox() {
- setStyleName("or-FormControl theme-FormControl or-FormCheckBox theme-FormCheckBox");
+ setStyleName("or-FormControl or-FormCheckBox");
}
}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormField.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormField.java
index 735d67cbb..29f87e174 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormField.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormField.java
@@ -28,7 +28,7 @@ public class FormField extends FlowPanel implements HasWidgets {
protected String formFieldId;
public FormField() {
- getElement().addClassName("or-FormField theme-FormField");
+ getElement().addClassName("or-FormField");
}
public void setFormFieldId(String formFieldId) {
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormGroup.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormGroup.java
index 3be421968..a45697654 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormGroup.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormGroup.java
@@ -33,7 +33,7 @@ public class FormGroup extends FlowPanel implements HasWidgets {
protected Label infoLabel;
public FormGroup() {
- getElement().addClassName("layout vertical or-FormGroup theme-FormGroup");
+ getElement().addClassName("layout vertical or-FormGroup");
groupPanel.setStyleName("layout horizontal center");
add(groupPanel);
}
@@ -63,7 +63,7 @@ public class FormGroup extends FlowPanel implements HasWidgets {
if (this.infoLabel != null)
throw new IllegalStateException("Form info label already set");
this.infoLabel = infoLabel;
- infoLabel.setStyleName("or-FormInfoLabel theme-FormInfoLabel");
+ infoLabel.setStyleName("or-FormInfoLabel");
add(infoLabel);
}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormInputNumber.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormInputNumber.java
index 902d8e1f2..2036808ae 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormInputNumber.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormInputNumber.java
@@ -26,7 +26,7 @@ public class FormInputNumber extends TextBoxBase {
public FormInputNumber() {
super(createInput());
- setStyleName("or-FormControl theme-FormControl or-FormInputNumber theme-FormInputNumber");
+ setStyleName("or-FormControl or-FormInputNumber");
}
private static native InputElement createInput() /*-{
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormInputText.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormInputText.java
index c7d501e7f..66d4015d4 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormInputText.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormInputText.java
@@ -10,7 +10,7 @@ public class FormInputText extends TextBox {
public FormInputText() {
super();
- setStyleName("or-FormControl theme-FormControl or-FormInputText theme-FormInputText");
+ setStyleName("or-FormControl or-FormInputText");
}
public String getPlaceholder() {
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormLabel.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormLabel.java
index 8364191e1..a6ed5a20b 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormLabel.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormLabel.java
@@ -32,10 +32,10 @@ public class FormLabel extends ComplexPanel {
public FormLabel() {
setElement(Document.get().createElement(DivElement.TAG));
- getElement().addClassName("or-FormLabel theme-FormLabel layout horizontal center");
+ getElement().addClassName("or-FormLabel layout horizontal center");
iconElement = (SpanElement) Document.get().createElement(SpanElement.TAG);
- iconElement.addClassName("flex or-FormLabelIcon theme-FormLabelIcon");
+ iconElement.addClassName("flex or-FormLabelIcon");
iconElement.getStyle().setTextAlign(Style.TextAlign.RIGHT);
labelElement = (LabelElement) Document.get().createElement(LabelElement.TAG);
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormTable.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormTable.java
index 77f54d96a..231cbbf51 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormTable.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormTable.java
@@ -24,27 +24,24 @@ import com.google.gwt.user.cellview.client.Column;
import com.google.gwt.user.cellview.client.Header;
import com.google.gwt.user.cellview.client.TextHeader;
import org.openremote.manager.client.style.FormTableStyle;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
public class FormTable<T> extends CellTable<T> {
final protected WidgetStyle widgetStyle;
- final protected ThemeStyle themeStyle;
public FormTable(int pageSize, FormTableStyle formTableStyle) {
super(pageSize, formTableStyle.getCellTableResources());
this.widgetStyle = formTableStyle.getWidgetStyle();
- this.themeStyle = formTableStyle.getThemeStyle();
}
protected void applyStyleCellText(Column column) {
- column.setCellStyleNames(widgetStyle.FormTableCellText() + " " + themeStyle.FormTableCellText());
+ column.setCellStyleNames(widgetStyle.FormTableCellText());
}
protected Header createHeader(String text) {
TextHeader header = new TextHeader(text);
- header.setHeaderStyleNames(widgetStyle.FormTableHeaderCell() + " " + themeStyle.FormTableHeaderCell());
+ header.setHeaderStyleNames(widgetStyle.FormTableHeaderCell());
return header;
}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormTree.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormTree.java
index aeaf273c5..436961eff 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormTree.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormTree.java
@@ -23,7 +23,6 @@ import com.google.gwt.user.cellview.client.CellTree;
import com.google.gwt.user.cellview.client.TreeNode;
import com.google.gwt.view.client.TreeViewModel;
import org.openremote.manager.client.style.FormTreeStyle;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
import java.util.ArrayList;
@@ -95,12 +94,10 @@ public class FormTree extends CellTree {
}
final protected WidgetStyle widgetStyle;
- final protected ThemeStyle themeStyle;
public <T> FormTree(TreeViewModel viewModel, T rootValue, FormTreeStyle formTreeStyle, CellTreeMessages messages) {
super(viewModel, rootValue, formTreeStyle.getCellTreeResources(), messages);
this.widgetStyle = formTreeStyle.getWidgetStyle();
- this.themeStyle = formTreeStyle.getThemeStyle();
}
public void refresh() {
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/FormViewImpl.java b/manager/client/src/main/java/org/openremote/manager/client/widget/FormViewImpl.java
index fc6c74d54..7e9b62226 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/FormViewImpl.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/FormViewImpl.java
@@ -27,7 +27,6 @@ import com.google.gwt.user.client.ui.InlineLabel;
import com.google.inject.Provider;
import org.openremote.manager.client.app.dialog.ConfirmationDialog;
import org.openremote.manager.client.i18n.ManagerMessages;
-import org.openremote.manager.client.style.ThemeStyle;
import org.openremote.manager.client.style.WidgetStyle;
import org.openremote.manager.shared.Runnable;
@@ -38,9 +37,6 @@ public class FormViewImpl extends Composite implements FormView {
@UiField
public WidgetStyle widgetStyle;
- @UiField
- public ThemeStyle themeStyle;
-
@UiField
public ManagerMessages managerMessages;
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/MessagesIcon.java b/manager/client/src/main/java/org/openremote/manager/client/widget/MessagesIcon.java
index 5779cbd09..ff5e2b97c 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/MessagesIcon.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/MessagesIcon.java
@@ -26,6 +26,5 @@ public class MessagesIcon extends InlineLabel {
public MessagesIcon(boolean isInfo) {
setStyleName("fa fa-" + (isInfo ? "check" : "warning"));
addStyleName("or-MessagesIcon");
- addStyleName("theme-MessagesIcon");
}
}
diff --git a/manager/client/src/main/java/org/openremote/manager/client/widget/PushButton.java b/manager/client/src/main/java/org/openremote/manager/client/widget/PushButton.java
index c16190c3a..b8f3f430e 100644
--- a/manager/client/src/main/java/org/openremote/manager/client/widget/PushButton.java
+++ b/manager/client/src/main/java/org/openremote/manager/client/widget/PushButton.java
@@ -28,7 +28,7 @@ public class PushButton extends com.google.gwt.user.client.ui.PushButton {
public PushButton() {
super();
- getElement().addClassName("or-PushButton");
+ setStyleName("or-PushButton");
getElement().appendChild(iconLabel.getElement());
}
diff --git a/manager/client/src/main/webapp/css/theme.html b/manager/client/src/main/webapp/css/theme.html
index 64dd5bbd9..9b328e9fd 100644
--- a/manager/client/src/main/webapp/css/theme.html
+++ b/manager/client/src/main/webapp/css/theme.html
@@ -16,264 +16,267 @@
--theme-purple: #660092; /* rgb(102, 0, 146) */
}
- .theme-Header {
+ .or-Header {
color: var(--theme-white);
background-color: var(--theme-darkgrey);
}
- .theme-Footer {
+ .or-Footer {
color: var(--theme-white);
background-color: var(--theme-black);
}
- .theme-Footer a {
+ .or-Footer a {
color: var(--theme-white) !important;
}
- .theme-NavItem {
+ .or-NavItem {
background: transparent;
color: var(--theme-white) !important;
}
- .theme-NavItem.active {
+ .or-NavItem.or-PushButton {
+ background: transparent;
+ }
+
+ .or-NavItem.active {
background: var(--theme-black) !important;
color: var(--theme-lightgreen) !important;
border-top-color: var(--theme-lightgreen) !important;
}
- .theme-SecondaryNav,
- .theme-SecondaryNavHorizontal {
+ .or-SecondaryNav,
+ .or-SecondaryNavHorizontal {
background-color: var(--theme-black);
color: var(--theme-white);
}
- .theme-SecondaryNavItem {
+ .or-SecondaryNavItem {
background: transparent;
}
- .theme-SecondaryNavItem a {
+ .or-SecondaryNavItem.or-PushButton {
+ background: transparent;
+ color: var(--theme-white);
+ }
+
+ .or-SecondaryNavItem a {
color: var(--theme-white) !important;
}
- .theme-SecondaryNavItem.active {
+ .or-SecondaryNavItem.active {
color: var(--theme-lightgreen) !important;
}
- .theme-SecondaryNavItem.active a {
+ .or-SecondaryNavItem.active a {
color: var(--theme-lightgreen) !important;
}
- .theme-SidebarContent {
+ .or-SidebarContent {
background-color: var(--theme-black);
color: var(--theme-white);
}
- .theme-MainContent {
+ .or-MainContent {
}
- .theme-PushButton {
+ .or-PushButton {
background-color: var(--theme-lightgrey);
color: var(--theme-black);
}
- .theme-Hyperlink a,
- .theme-Hyperlink a:visited {
+ .or-Hyperlink a,
+ .or-Hyperlink a:visited {
color: var(--theme-darkgrey);
}
- .theme-Hyperlink.active a,
- .theme-Hyperlink.active a:visited {
- color: var(--theme-black);
- background-color: var(--theme-lightgreen);
- }
-
- .theme-UnorderedList {
+ .or-UnorderedList {
color: var(--theme-darkgrey);
}
- .theme-Headline1 {
+ .or-Headline1 {
color: var(--theme-darkgrey);
}
- .theme-HeadlineSub {
+ .or-HeadlineSub {
color: var(--theme-mediumgrey);
}
- .theme-FormMessages.error {
+ .or-FormMessages.error {
background-color: var(--theme-red);
color: var(--theme-white);
border-color: transparent;
}
- .theme-FormMessages.success {
+ .or-FormMessages.success {
color: var(--theme-darkgrey);
background-color: var(--theme-lightgreen)
}
- .theme-FormGroup {
+ .or-FormGroup {
}
- .theme-FormGroup.error .theme-FormControl {
+ .or-FormGroup.error .or-FormControl {
border-color: var(--theme-red);
}
- .theme-FormGroup.error .theme-FormLabel {
+ .or-FormGroup.error .or-FormLabel {
color: var(--theme-red);
}
- .theme-FormLabel {
+ .or-FormLabel {
color: var(--theme-darkgrey);
}
- .theme-FormLabel .required {
+ .or-FormLabel .required {
color: var(--theme-mediumgrey);
}
- .theme-FormField {
+ .or-FormField {
}
- .theme-FormInfoLabel {
+ .or-FormInfoLabel {
color: var(--theme-mediumgrey);
}
- .theme-FormControl {
+ .or-FormControl {
}
- .theme-FormInputText,
- .theme-FormInputNumber {
+ .or-FormInputText,
+ .or-FormInputNumber {
border-color: var(--theme-darkgrey);
}
- .theme-FormInputText:focus,
- .theme-FormInputNumber:focus {
+ .or-FormInputText:focus,
+ .or-FormInputNumber:focus {
border-color: var(--theme-lightgreen);
}
- .theme-FormInputText[readOnly]:focus,
- .theme-FormInputNumber[readOnly]:focus {
+ .or-FormInputText[readOnly]:focus,
+ .or-FormInputNumber[readOnly]:focus {
border-color: transparent;
}
- .theme-FormButton {
+ .or-FormButton {
}
- .theme-FormButtonPrimary {
+ .or-FormButtonPrimary {
color: var(--theme-black);
background: var(--theme-lightgreen);
}
- .theme-FormButtonDanger {
+ .or-FormButtonDanger {
color: var(--theme-white);
background: var(--theme-red);
}
- .theme-FormButton:focus,
- .theme-FormButtonDanger:focus,
- .theme-FormButtonPrimary:focus {
+ .or-FormButton:focus,
+ .or-FormButtonDanger:focus,
+ .or-FormButtonPrimary:focus {
border-color: var(--theme-black);
}
- .theme-FormDropDown {
+ .or-FormDropDown {
border-color: var(--theme-darkgrey);
}
- .theme-FormDropDown:focus {
+ .or-FormDropDown:focus {
border-color: var(--theme-lightgreen);
}
- .theme-FormCheckBox:checked {
+ .or-FormCheckBox:checked {
color: var(--theme-lightgreen);
}
- .theme-FormTableHeaderCell {
+ .or-FormTableHeaderCell {
border-color: var(--theme-mediumgrey);
color: var(--theme-darkgrey);
}
- .theme-FormTableHoveredRow {
+ .or-FormTableHoveredRow {
background-color: var(--theme-lightgreen) !important;
}
- .theme-FormTableEvenRow {
+ .or-FormTableEvenRow {
background-color: var(--theme-brightgrey);
}
- .theme-FormTableOddRow {
+ .or-FormTableOddRow {
background-color: var(--theme-white);
}
- .theme-FormTreeItem {
+ .or-FormTreeItem {
color: var(--theme-white);
}
.or-FormTreeItemImage {
}
- .theme-FormTreeTopItem{
+ .or-FormTreeTopItem{
}
- .theme-FormTreeKeyboardSelectedItem {
+ .or-FormTreeKeyboardSelectedItem {
background-color: var(--theme-mediumgrey);
}
- .theme-FormTreeSelectedItem {
+ .or-FormTreeSelectedItem {
background-color: var(--theme-lightgreen);
}
- .theme-FormTreeSelectedItem .theme-FormTreeItem {
+ .or-FormTreeSelectedItem .or-FormTreeItem {
color: var(--theme-black);
}
- .theme-FormTreeEmptyMessage {
+ .or-FormTreeEmptyMessage {
color: var(--theme-mediumgrey);
}
- .theme-FormTreeShowMoreButton {
+ .or-FormTreeShowMoreButton {
color: var(--theme-lightgreen);
}
- .theme-ToastInfo {
+ .or-ToastInfo {
background-color: var(--theme-lightgreen);
color: var(--theme-black);
}
- .theme-ToastFailure {
+ .or-ToastFailure {
background-color: var(--theme-red);
color: var(--theme-white);
}
- .theme-PopupPanel {
+ .or-PopupPanel {
background-color: var(--theme-brightgrey);
color: var(--theme-black);
}
- .theme-PopupPanelHeader {
+ .or-PopupPanelHeader {
background-color: var(--theme-lightgreen);
color: var(--theme-black);
}
- .theme-PopupPanelContent {
+ .or-PopupPanelContent {
}
- .theme-PopupPanelFooter {
+ .or-PopupPanelFooter {
background-color: var(--theme-black);
color: var(--theme-white);
}
- .theme-PopupPanelGlass {
+ .or-PopupPanelGlass {
background-color: rgba(0, 0, 0, 0.44);
}
- .theme-SplitPanelHandle {
+ .or-SplitPanelHandle {
background-color: var(--theme-black);
color: var(--theme-white);
}
- .theme-ItemWithBorder {
+ .or-ItemWithBorder {
border-color: var(--theme-black);
}
diff --git a/test/src/test/groovy/org/openremote/test/admin/AdminTenantsActivityTest.groovy b/test/src/test/groovy/org/openremote/test/admin/AdminTenantsActivityTest.groovy
index 6ffa9fab7..e0016e4d3 100644
--- a/test/src/test/groovy/org/openremote/test/admin/AdminTenantsActivityTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/admin/AdminTenantsActivityTest.groovy
@@ -1,7 +1,6 @@
package org.openremote.test.admin
import com.google.gwt.junit.GWTMockUtilities
-import com.google.gwt.place.shared.PlaceHistoryHandler
import com.google.gwt.place.shared.WithTokenizers
import com.google.gwt.user.client.ui.AcceptsOneWidget
import com.google.gwt.user.client.ui.Widget
@@ -21,7 +20,6 @@ import org.openremote.manager.client.i18n.ManagerMessages
import org.openremote.manager.client.service.EventService
import org.openremote.manager.client.service.RequestServiceImpl
import org.openremote.manager.client.service.SecurityService
-import org.openremote.manager.client.style.ThemeStyle
import org.openremote.manager.client.style.WidgetStyle
import org.openremote.manager.shared.Consumer
import org.openremote.manager.shared.Runnable
@@ -137,8 +135,7 @@ class AdminTenantsActivityTest extends Specification implements ContainerTrait,
placeController,
eventBus,
managerMessages,
- new WidgetStyle(),
- new ThemeStyle()
+ new WidgetStyle()
)
def activityDisplay = Mock(AcceptsOneWidget)
def activityMapper = new ManagerActivityMapper(
diff --git a/test/src/test/groovy/org/openremote/test/admin/AdminUsersActivityTest.groovy b/test/src/test/groovy/org/openremote/test/admin/AdminUsersActivityTest.groovy
index 8b1d9366e..eb86fde8f 100644
--- a/test/src/test/groovy/org/openremote/test/admin/AdminUsersActivityTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/admin/AdminUsersActivityTest.groovy
@@ -18,7 +18,6 @@ import org.openremote.manager.client.i18n.ManagerMessages
import org.openremote.manager.client.service.EventService
import org.openremote.manager.client.service.RequestServiceImpl
import org.openremote.manager.client.service.SecurityService
-import org.openremote.manager.client.style.ThemeStyle
import org.openremote.manager.client.style.WidgetStyle
import org.openremote.manager.shared.Consumer
import org.openremote.manager.shared.Runnable
@@ -150,8 +149,7 @@ class AdminUsersActivityTest extends Specification implements ContainerTrait, Cl
placeController,
eventBus,
managerMessages,
- new WidgetStyle(),
- new ThemeStyle()
+ new WidgetStyle()
)
def activityDisplay = Mock(AcceptsOneWidget)
def activityMapper = new ManagerActivityMapper(