diff --git a/src/common/dialogs/delete-dialog.js b/src/common/dialogs/delete-dialog.js index 179b3cd..b99f2af 100644 --- a/src/common/dialogs/delete-dialog.js +++ b/src/common/dialogs/delete-dialog.js @@ -42,7 +42,9 @@ class DeleteDialog extends React.Component { - + + + ; diff --git a/src/common/dialogs/dialog.js b/src/common/dialogs/dialog.js index 741ecaf..071a58e 100644 --- a/src/common/dialogs/dialog.js +++ b/src/common/dialogs/dialog.js @@ -45,11 +45,6 @@ class Dialog extends React.Component { } render() { - const buttonStyle = { - backgroundColor: '#527984', - borderColor: '#527984' - }; - return ( @@ -62,8 +57,10 @@ class Dialog extends React.Component { - {this.props.blendOutCancel?
: } - + + {this.props.blendOutCancel?
: } + +
); diff --git a/src/common/icon.js b/src/common/icon.js index 1ad1701..25155b4 100644 --- a/src/common/icon.js +++ b/src/common/icon.js @@ -28,7 +28,7 @@ library.add(fas); class Icon extends React.Component { render() { - return + return } } diff --git a/src/dashboard/dashboard-button-group.js b/src/dashboard/dashboard-button-group.js index 9d171c6..20a8994 100644 --- a/src/dashboard/dashboard-button-group.js +++ b/src/dashboard/dashboard-button-group.js @@ -26,12 +26,9 @@ class DashboardButtonGroup extends React.Component { marginLeft: '12px', height: '44px', width : '35px', - borderColor: '#ffffff', - backgroundColor: '#ffffff' }; const iconStyle = { - color: '#527984', height: '25px', width : '25px' } @@ -47,21 +44,22 @@ class DashboardButtonGroup extends React.Component { buttons.push( Save changes } > , Discard changes } > ); } else { if (this.props.fullscreen !== true) { buttons.push( + Change to fullscreen view } > ); @@ -69,7 +67,7 @@ class DashboardButtonGroup extends React.Component { buttons.push( Back to normal view } > ); @@ -79,7 +77,7 @@ class DashboardButtonGroup extends React.Component { buttons.push( Continue simulation } > ); @@ -87,7 +85,7 @@ class DashboardButtonGroup extends React.Component { buttons.push( Pause simulation } > ); @@ -98,16 +96,15 @@ class DashboardButtonGroup extends React.Component { Add, edit or delete files of scenario }> ); buttons.push( - Add, edit or delete input signals }> + Add, edit or delete input signals }> ); @@ -116,7 +113,7 @@ class DashboardButtonGroup extends React.Component { Add, edit or delete output signals }> ); @@ -125,7 +122,7 @@ class DashboardButtonGroup extends React.Component { Add widgets and edit layout }> ); diff --git a/src/file/edit-files.js b/src/file/edit-files.js index 97ae6e3..d15102b 100644 --- a/src/file/edit-files.js +++ b/src/file/edit-files.js @@ -149,12 +149,14 @@ class EditFilesDialog extends React.Component { + + diff --git a/src/ic/ic-action.js b/src/ic/ic-action.js index e18ba54..e968c17 100644 --- a/src/ic/ic-action.js +++ b/src/ic/ic-action.js @@ -75,17 +75,17 @@ class ICAction extends React.Component { step={1} onChange={this.setDelayForAction} /> +
- {this.state.selectedAction != null ? this.state.selectedAction.title : ''} + {this.state.selectedAction != null ? this.state.selectedAction.title : ''} {actionList} - - - + +
; } } diff --git a/src/ic/ic-dialog.js b/src/ic/ic-dialog.js index 6e79fac..a919f3f 100644 --- a/src/ic/ic-dialog.js +++ b/src/ic/ic-dialog.js @@ -95,10 +95,10 @@ class ICDialog extends React.Component { {this.props.userRole === "Admin" ? (
Controls:
-
- - diff --git a/src/ic/ics.js b/src/ic/ics.js index dc013c6..e3405f2 100644 --- a/src/ic/ics.js +++ b/src/ic/ics.js @@ -334,7 +334,7 @@ class InfrastructureComponents extends Component { let ic = this.state.ics.find(ic => ic.name === name); let index = this.state.ics.indexOf(ic); if(ic.type === "villas-node" || ic.type === "villas-relay"){ - return } + return } else{ return {name} } @@ -369,12 +369,9 @@ class InfrastructureComponents extends Component { const buttonStyle = { marginLeft: '10px', - backgroundColor: '#ffffff', - borderColor: '#ffffff' } const iconStyle = { - color: '#527984', height: '30px', width: '30px' } @@ -384,9 +381,9 @@ class InfrastructureComponents extends Component {

Infrastructure Components {this.state.currentUser.role === "Admin" ? - - - + + + : diff --git a/src/scenario/scenario.js b/src/scenario/scenario.js index 6802d15..7353ce2 100644 --- a/src/scenario/scenario.js +++ b/src/scenario/scenario.js @@ -697,16 +697,8 @@ class Scenario extends React.Component { return (); } - const buttonStyle = { - marginLeft: '10px', - backgroundColor: '#527984', - borderColor: '#527984' - }; - const altButtonStyle = { marginLeft: '10px', - backgroundColor: '#ffffff', - borderColor: '#ffffff' } const tableHeadingStyle = { @@ -714,7 +706,6 @@ class Scenario extends React.Component { } const iconStyle = { - color: '#527984', height: '30px', width: '30px' } @@ -764,8 +755,8 @@ class Scenario extends React.Component { return
Add, edit or delete files of scenario } > -
@@ -784,8 +775,10 @@ class Scenario extends React.Component { {/*Component Configurations table*/}

Component Configurations - - + + + +

this.onConfigChecked(index, event)} width='30' /> @@ -876,8 +869,10 @@ class Scenario extends React.Component { {/*Dashboard table*/}

Dashboards - - + + + +

@@ -904,7 +899,9 @@ class Scenario extends React.Component { {/*Result table*/}

Results - + + +

{resulttable} this.closeNewResultModal(data)} /> @@ -931,12 +928,15 @@ class Scenario extends React.Component { type="text" /> + +

diff --git a/src/scenario/scenarios.js b/src/scenario/scenarios.js index 00477d3..5c8ca13 100644 --- a/src/scenario/scenarios.js +++ b/src/scenario/scenarios.js @@ -237,12 +237,9 @@ class Scenarios extends Component { render() { const buttonStyle = { marginLeft: '10px', - backgroundColor: '#ffffff', - borderColor: '#ffffff' }; const iconStyle = { - color: '#527984', height: '30px', width: '30px' } @@ -250,8 +247,10 @@ class Scenarios extends Component { return (

Scenarios - - + + + +

diff --git a/src/signal/edit-signal-mapping.js b/src/signal/edit-signal-mapping.js index 10980ae..e882cb2 100644 --- a/src/signal/edit-signal-mapping.js +++ b/src/signal/edit-signal-mapping.js @@ -177,8 +177,6 @@ class EditSignalMapping extends React.Component { const buttonStyle = { marginLeft: '10px', - backgroundColor: '#527984', - borderColor: '#527984' }; return( @@ -204,16 +202,16 @@ class EditSignalMapping extends React.Component { this.handleDelete(index)} />
-
- +
+
Choose a Component Configuration to add the signal to:
-
+
{typeof this.props.configs !== "undefined" && this.props.configs.map(config => ( - + ))}
diff --git a/src/styles/app.css b/src/styles/app.css index cc09d33..7640536 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -369,6 +369,18 @@ body { height: auto !important; padding: 5px; float: right; + border-color: #ffffff; + background-color: #ffffff; +} + +.section-buttons-group-right .btn{ + border-color: #ffffff; + background-color: #ffffff; +} + +.section-buttons-group-right .btn:hover{ + border-color: #e3e3e3; + background-color: #e3e3e3; } .section-buttons-group-left { @@ -377,10 +389,60 @@ body { float: left; } +.section-buttons-group-left .btn{ + background-color: #527984; + border-color: #527984; +} + +.section-buttons-group-left .btn:hover{ + background-color: #31484f; + border-color: #31484f; +} + +.drag-and-drop .btn{ + color: #527984; + border-color: #527984; +} + +.drag-and-drop .btn:hover{ + color: #527984; + border-color: #527984; +} + + .section-buttons-group-right .rc-slider { margin-left: 12px; } +.solid-button .btn{ + background-color: #527984; + border-color: #527984; +} + +.solid-button .btn:hover{ + background-color: #31484f; + border-color: #31484f; +} + +.solid-button .btn:disabled{ + background-color: #527984; + border-color: #527984; +} + +.icon-button .btn{ + border-color: #ffffff; + background-color: #ffffff; +} + +.icon-button .btn:hover{ + border-color: #e3e3e3; + background-color: #e3e3e3; +} + +.icon-color { + color: #527984; +} + .form-horizontal .form-group { margin-left: 0 !important; margin-right: 0 !important; @@ -389,7 +451,3 @@ body { .badge-outdated { opacity: 0.4; } - -a:link, a:active, a:visited , a:hover { - color: #047cab ; -} diff --git a/src/user/login-form.js b/src/user/login-form.js index e828de3..08c09df 100644 --- a/src/user/login-form.js +++ b/src/user/login-form.js @@ -91,8 +91,10 @@ class LoginForm extends Component { - - + + + + diff --git a/src/user/user.js b/src/user/user.js index fc82d49..007602c 100644 --- a/src/user/user.js +++ b/src/user/user.js @@ -112,15 +112,6 @@ class User extends Component { render() { - const iconStyle = { - color: '#527984', - } - - const buttonStyle = { - margin: '10px', - borderColor: '#ffffff', - backgroundColor: '#ffffff' - } return (
@@ -140,7 +131,9 @@ class User extends Component {
{this.state.currentUser.username}
{this.state.currentUser.mail}
{this.state.currentUser.role}
- + + + diff --git a/src/user/users.js b/src/user/users.js index 807bed4..a9b84dc 100644 --- a/src/user/users.js +++ b/src/user/users.js @@ -132,12 +132,9 @@ class Users extends Component { const buttonStyle = { marginLeft: '10px', - backgroundColor: '#ffffff', - borderColor: '#ffffff' } const iconStyle = { - color: '#527984', height: '30px', width: '30px' } @@ -145,7 +142,9 @@ class Users extends Component { return (

Users - + + +

diff --git a/src/widget/edit-widget/edit-widget-color-zones-control.js b/src/widget/edit-widget/edit-widget-color-zones-control.js index 93653fb..6ef3fcd 100644 --- a/src/widget/edit-widget/edit-widget-color-zones-control.js +++ b/src/widget/edit-widget/edit-widget-color-zones-control.js @@ -178,12 +178,9 @@ class EditWidgetColorZonesControl extends React.Component { const buttonStyle = { marginBottom: '10px', marginLeft: '120px', - borderColor: '#ffffff', - backgroundColor: '#ffffff' }; const iconStyle = { - color: '#527984', height: '25px', width : '25px' } @@ -204,8 +201,9 @@ class EditWidgetColorZonesControl extends React.Component { return Color zones - - + + +
{ this.state.widget.customProperties.zones.map((zone, idx) => { @@ -255,7 +253,9 @@ class EditWidgetColorZonesControl extends React.Component {
- + + + this.closeEditModal(data)} widget={this.state.widget} zoneIndex={this.state.selectedIndex} controlId={'strokeStyle'} /> diff --git a/src/widget/toolbox-item.js b/src/widget/toolbox-item.js index e2aa402..4c268c5 100644 --- a/src/widget/toolbox-item.js +++ b/src/widget/toolbox-item.js @@ -51,7 +51,7 @@ class ToolboxItem extends React.Component { if (this.props.disabled === false) { return this.props.connectDragSource(
- + {this.props.icon && } {this.props.name} diff --git a/src/widget/widget-toolbox.js b/src/widget/widget-toolbox.js index 4483f1b..ee48d37 100644 --- a/src/widget/widget-toolbox.js +++ b/src/widget/widget-toolbox.js @@ -96,7 +96,6 @@ class WidgetToolbox extends React.Component { const disableDecrease = this.disableDecrease(); // Only one topology widget at the time is supported const iconStyle = { - color: '#527984', height: '25px', width : '25px' } @@ -104,15 +103,6 @@ class WidgetToolbox extends React.Component { const buttonStyle = { marginRight: '3px', height: '40px', - borderColor: '#527984', - backgroundColor: '#527984' - } - - const altButtonStyle = { - marginRight: '3px', - height: '40px', - borderColor: '#ffffff', - backgroundColor: '#ffffff' } const thereIsTopologyWidget = this.props.widgets != null && Object.values(this.props.widgets).filter(w => w.type === 'Topology').length > 0; @@ -124,15 +114,15 @@ class WidgetToolbox extends React.Component {
Show/ hide available Cosmetic Widgets } > - Show/ hide available Displaying Widgets } > - Show/ hide available Manipulation Widgets } > -
@@ -142,13 +132,13 @@ class WidgetToolbox extends React.Component { Grid: { this.props.grid > 1 ? this.props.grid : 'Disabled' } Increase dashboard height } > - Decrease dashboard height } > - @@ -157,7 +147,7 @@ class WidgetToolbox extends React.Component {





-
+