Skip to content

Commit 49e1745

Browse files
jsaq007ignapas
andauthored
🎨 App design and Web presence alignment (#5065)
Co-authored-by: Ignacio Pascual <[email protected]>
1 parent 4708085 commit 49e1745

37 files changed

+224
-82
lines changed

services/static-webserver/client/source/class/osparc/About.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ qx.Class.define("osparc.About", {
9494
contentPaddingLeft: 0,
9595
barPosition: "top"
9696
});
97-
tabView.getChildControl("pane").setBackgroundColor("background-main-2");
97+
tabView.getChildControl("pane").setBackgroundColor("transparent_overlay");
9898
this.add(tabView, {
9999
flex: 1
100100
});
@@ -113,8 +113,7 @@ qx.Class.define("osparc.About", {
113113
layout.setColumnFlex(0, 1);
114114
layout.setColumnFlex(1, 1);
115115
const tabPage = new qx.ui.tabview.Page(title).set({
116-
layout,
117-
backgroundColor: "background-main-2"
116+
layout
118117
});
119118
return tabPage;
120119
},

services/static-webserver/client/source/class/osparc/auth/LoginPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ qx.Class.define("osparc.auth.LoginPage", {
6262
control = new osparc.ui.basic.LogoWPlatform();
6363
control.setSize({
6464
width: 300,
65-
height: 120
65+
height: 90
6666
});
6767
control.setFont("text-18");
6868
this.getChildControl("main-layout").add(control);
@@ -133,7 +133,7 @@ qx.Class.define("osparc.auth.LoginPage", {
133133
this.getContentElement().setStyles({
134134
"background-image": backgroundImage,
135135
"background-repeat": "no-repeat",
136-
"background-size": "auto 85%", // auto width, 85% height
136+
"background-size": "auto 100%", // auto width, 85% height
137137
"background-position": "0% 100%" // left bottom
138138
});
139139
},

services/static-webserver/client/source/class/osparc/auth/LoginPageS4L.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ qx.Class.define("osparc.auth.LoginPageS4L", {
2929
const layout = new qx.ui.layout.HBox();
3030
this._setLayout(layout);
3131

32-
this.setBackgroundColor("#025887");
32+
this.setBackgroundColor("primary-background-color");
3333

3434
this._removeAll();
3535

@@ -54,20 +54,20 @@ qx.Class.define("osparc.auth.LoginPageS4L", {
5454
let backgroundImage = "";
5555
switch (osparc.product.Utils.getProductName()) {
5656
case "s4llite":
57-
backgroundImage = "url(resource/osparc/s4llite_splitimage.png)";
57+
backgroundImage = "url(resource/osparc/Sim4Life_login_page_master_transparent_bg.png)";
5858
break;
5959
case "s4lacad":
60-
backgroundImage = "url(resource/osparc/s4lacad_splitimage.png)";
60+
backgroundImage = "url(resource/osparc/Sim4Life_login_page_master_transparent_bg.png)";
6161
break;
6262
case "s4ldesktop":
63-
backgroundImage = "url(resource/osparc/s4ldesktop_splitimage.png)";
63+
backgroundImage = "url(resource/osparc/Sim4Life_login_page_master_transparent_bg.png)";
6464
break;
6565
case "s4ldesktopacad":
66-
backgroundImage = "url(resource/osparc/s4ldesktopacad_splitimage.png)";
66+
backgroundImage = "url(resource/osparc/Sim4Life_login_page_master_transparent_bg.png)";
6767
break;
6868
case "s4l":
6969
default:
70-
backgroundImage = "url(resource/osparc/s4l_splitimage.png)";
70+
backgroundImage = "url(resource/osparc/Sim4Life_login_page_master_transparent_bg.png)";
7171
break;
7272
}
7373
this._setBackgroundImage(backgroundImage);

services/static-webserver/client/source/class/osparc/dashboard/GridButtonBase.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,11 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
129129
},
130130
TSR: {
131131
row: 2,
132-
column: 0,
133-
colSpan: 2
132+
column: 0
134133
},
135134
HITS: {
136135
row: 2,
137-
column: 2,
138-
colSpan: 2
136+
column: 2
139137
},
140138
UPDATES: {
141139
row: 0,

services/static-webserver/client/source/class/osparc/dashboard/GridButtonItem.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ qx.Class.define("osparc.dashboard.GridButtonItem", {
7878
break;
7979
case "tags":
8080
control = new qx.ui.container.Composite(new qx.ui.layout.Flow(5, 3)).set({
81-
anonymous: true
81+
anonymous: true,
82+
paddingLeft: osparc.dashboard.GridButtonBase.PADDING,
83+
paddingRight: osparc.dashboard.GridButtonBase.PADDING,
84+
paddingBottom: osparc.dashboard.GridButtonBase.PADDING / 2
8285
});
8386
this._mainLayout.add(control, osparc.dashboard.GridButtonBase.POS.TAGS);
8487
break;

services/static-webserver/client/source/class/osparc/dashboard/ResourceMoreOptions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ qx.Class.define("osparc.dashboard.ResourceMoreOptions", {
5252

5353
createPage: function(title, widget, icon, id) {
5454
const tabPage = new qx.ui.tabview.Page().set({
55-
backgroundColor: "background-main-2",
5655
paddingLeft: 20,
5756
layout: new qx.ui.layout.VBox(10),
5857
icon: icon + "/24"

services/static-webserver/client/source/class/osparc/dashboard/SearchBarFilter.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ qx.Class.define("osparc.dashboard.SearchBarFilter", {
2626
this._setLayout(new qx.ui.layout.HBox(5));
2727

2828
this.set({
29-
backgroundColor: "background-main-2",
29+
backgroundColor: "input_background",
3030
paddingLeft: 6,
3131
height: 36
3232
});
3333
this.getContentElement().setStyles({
34-
"border-radius": "8px"
34+
"border-radius": "5px"
3535
});
3636

3737
this.__buildLayout();
@@ -92,12 +92,15 @@ qx.Class.define("osparc.dashboard.SearchBarFilter", {
9292
break;
9393
case "text-field":
9494
control = new qx.ui.form.TextField().set({
95-
backgroundColor: "background-main-2",
95+
backgroundColor: "input_background",
9696
font: "text-16",
9797
placeholder: this.tr("search"),
9898
alignY: "bottom",
9999
marginBottom: 4
100100
});
101+
control.getContentElement().setStyles({
102+
"border-bottom": "none"
103+
});
101104
this._add(control, {
102105
flex: 1
103106
});

services/static-webserver/client/source/class/osparc/desktop/MainPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ qx.Class.define("osparc.desktop.MainPage", {
4343
construct: function() {
4444
this.base(arguments);
4545

46-
this._setLayout(new qx.ui.layout.VBox(null, null, "separator-vertical"));
46+
this._setLayout(new qx.ui.layout.VBox(null, null));
4747

4848
this._add(osparc.notification.RibbonNotifications.getInstance());
4949

@@ -119,7 +119,7 @@ qx.Class.define("osparc.desktop.MainPage", {
119119
msg += "<br><br>";
120120
msg += this.tr("Make sure you saved your changes to:");
121121
msg += "<br>";
122-
msg += this.tr("- current <b>smash file</b> (running <b>simulations</b>, if any, will be terminated)");
122+
msg += this.tr("- current <b>smash file</b>");
123123
msg += "<br>";
124124
msg += this.tr("- current <b>notebooks</b> (<b>jupyterlab</b> session will be terminated)");
125125
win.set({

services/static-webserver/client/source/class/osparc/desktop/SlideshowView.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ qx.Class.define("osparc.desktop.SlideshowView", {
231231
"border-radius": "12px"
232232
});
233233
view.set({
234-
backgroundColor: "background-main-2",
235234
maxWidth: node.isDynamic() ? null : 800,
236235
margin: this.self().CARD_MARGIN
237236
});

services/static-webserver/client/source/class/osparc/desktop/WorkbenchView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
3838
},
3939

4040
statics: {
41-
PRIMARY_COL_BG_COLOR: "background-main-2",
41+
PRIMARY_COL_BG_COLOR: "transparent",
4242
TAB_BUTTON_HEIGHT: 46,
4343

4444
decorateSplitter: function(splitter) {

0 commit comments

Comments
 (0)