Skip to content

Commit cf8ae1c

Browse files
authored
🎨 Update font: Manrope (#4815)
1 parent 3c742bb commit cf8ae1c

File tree

16 files changed

+86
-79
lines changed

16 files changed

+86
-79
lines changed

services/static-webserver/client/source/boot/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
<!-- <meta property="og:description" id="openGraphDescription" content="open online simulations for Stimulating Peripheral Activity to Relieve Conditions" /> -->
3434
<!-- <meta property="og:image" id="openGraphImage" content="../resource/osparc/favicon-osparc.png" /> -->
3535

36+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Manrope">
37+
3638
<style>
3739
body {
3840
padding: 0px;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ qx.Class.define("osparc.Application", {
241241
osparc.store.StaticInfo.getInstance().getPlatformName()
242242
.then(platformName => {
243243
if (platformName !== "master") {
244-
// first, pop up new relaese window
244+
// first, pop up new release window
245245
this.__checkNewRelease();
246246
// then, pop up cookies accepted window. It will go on top.
247247
this.__checkCookiesAccepted();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ qx.Class.define("osparc.auth.core.BaseAuthPage", {
105105
*/
106106
_addTitleHeader: function(txt) {
107107
let lbl = new qx.ui.basic.Label(txt).set({
108-
font: "headline",
108+
font: "text-24",
109109
alignX: "center"
110110
});
111111
this.add(lbl, {

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
6262
PADDING: 10,
6363
SPACING_IN: 5,
6464
SPACING: 15,
65-
TITLE_MAX_HEIGHT: 34, // two lines
65+
// TITLE_MAX_HEIGHT: 34, // two lines in Roboto
66+
TITLE_MAX_HEIGHT: 38, // two lines in Manrope
6667
POS: {
6768
TITLE: {
6869
row: 0,
@@ -224,7 +225,8 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
224225
}
225226
}
226227
});
227-
maxHeight -= 4;
228+
// maxHeight -= 4; // for Roboto
229+
maxHeight -= 18; // for Manrope
228230
iconLayout.getChildControl("image").setMaxHeight(maxHeight);
229231
iconLayout.setMaxHeight(maxHeight);
230232
iconLayout.recheckSize();

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ qx.Class.define("osparc.dashboard.ResourceMoreOptions", {
4545

4646
popUpInWindow: function(moreOpts) {
4747
const title = qx.locale.Manager.tr("Details");
48-
return osparc.ui.window.Window.popUpInWindow(moreOpts, title, this.WIDTH, this.HEIGHT);
48+
return osparc.ui.window.Window.popUpInWindow(moreOpts, title, this.WIDTH, this.HEIGHT).set({
49+
maxHeight: 1000
50+
});
4951
},
5052

5153
createPage: function(title, widget, icon, id) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ qx.Class.define("osparc.desktop.wallets.WalletEditor", {
110110
}
111111
case "create": {
112112
const buttons = this.getChildControl("buttonsLayout");
113-
control = new osparc.ui.form.FetchButton(this.tr("Create"));
113+
control = new osparc.ui.form.FetchButton(this.tr("Create")).set({
114+
appearance: "strong-button"
115+
});
114116
control.addListener("execute", () => {
115117
if (this.__validator.validate()) {
116118
control.setFetching(true);

services/static-webserver/client/source/class/osparc/editor/ClusterEditor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ qx.Class.define("osparc.editor.ClusterEditor", {
185185
}
186186
case "create": {
187187
const buttons = this.getChildControl("buttonsLayout");
188-
control = new osparc.ui.form.FetchButton(this.tr("Create"));
188+
control = new osparc.ui.form.FetchButton(this.tr("Create")).set({
189+
appearance: "strong-button"
190+
});
189191
control.addListener("execute", () => {
190192
if (this.__validator.validate()) {
191193
control.setFetching(true);

services/static-webserver/client/source/class/osparc/editor/OrganizationEditor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ qx.Class.define("osparc.editor.OrganizationEditor", {
110110
}
111111
case "create": {
112112
const buttons = this.getChildControl("buttonsLayout");
113-
control = new osparc.ui.form.FetchButton(this.tr("Create"));
113+
control = new osparc.ui.form.FetchButton(this.tr("Create")).set({
114+
appearance: "strong-button"
115+
});
114116
control.addListener("execute", () => {
115117
if (this.__validator.validate()) {
116118
control.setFetching(true);

services/static-webserver/client/source/class/osparc/info/StudyLarge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ qx.Class.define("osparc.info.StudyLarge", {
7171

7272
const title = osparc.info.StudyUtils.createTitle(this.getStudy()).set({
7373
font: "text-14",
74-
maxWidth: 400
74+
maxWidth: 380
7575
});
7676
const titleLayout = this.__createViewWithEdit(title, this.__openTitleEditor);
7777
let text = osparc.product.Utils.getStudyAlias({firstUpperCase: true}) + " Id";

services/static-webserver/client/source/class/osparc/navigation/NavigationBar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,9 @@ qx.Class.define("osparc.navigation.NavigationBar", {
184184
break;
185185
case "logo-powered":
186186
control = new osparc.ui.basic.PoweredByOsparc().set({
187-
width: 50,
188187
padding: 3,
189188
paddingTop: 1,
190-
maxHeight: 50
189+
maxHeight: this.self().HEIGHT - 2
191190
});
192191
this.getChildControl("left-items").add(control);
193192
break;

services/static-webserver/client/source/class/osparc/navigation/UserMenuButton.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ qx.Class.define("osparc.navigation.UserMenuButton", {
207207
this.getChildControl("log-in");
208208
} else {
209209
this.getChildControl("user-center");
210+
if (osparc.data.Permissions.getInstance().isProductOwner()) {
211+
this.getChildControl("po-center");
212+
}
210213
this.getChildControl("preferences");
211214
this.getChildControl("organizations");
212215
this.getChildControl("clusters");

services/static-webserver/client/source/class/osparc/po/Invitations.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ qx.Class.define("osparc.po.Invitations", {
179179
const respLabel = new qx.ui.basic.Label(this.tr("Data encrypted in the invitation"));
180180
vBox.add(respLabel);
181181

182-
delete respData["invitation_link"];
182+
const printData = osparc.utils.Utils.deepCloneObject(respData);
183+
delete printData["invitation_link"];
183184
const invitationRespViewer = new osparc.ui.basic.JsonTreeWidget(respData, "invitation-data");
184185
const container = new qx.ui.container.Scroll();
185186
container.add(invitationRespViewer);

services/static-webserver/client/source/class/osparc/theme/Appearance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ qx.Theme.define("osparc.theme.Appearance", {
9898
style: function(states) {
9999
return {
100100
marginLeft: 2,
101-
font: "small"
101+
font: "text-12"
102102
};
103103
}
104104
},

services/static-webserver/client/source/class/osparc/theme/Font.js

Lines changed: 47 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -20,149 +20,139 @@ qx.Theme.define("osparc.theme.Font", {
2020
extend: osparc.theme.common.Font,
2121

2222
fonts: {
23-
"text-30": {
24-
size: 30,
25-
family: ["Roboto", "sanf-serif"],
23+
"defaults": {
24+
family: ["Manrope", "Roboto", "sanf-serif"],
2625
color: "text"
2726
},
2827

28+
"default": {
29+
include: "defaults",
30+
size: 13
31+
},
32+
33+
"text-30": {
34+
include: "defaults",
35+
size: 30
36+
},
37+
2938
"text-26": {
30-
size: 24,
31-
family: ["Roboto", "sanf-serif"],
32-
color: "text"
39+
include: "defaults",
40+
size: 24
3341
},
3442

3543
"text-24": {
36-
size: 24,
37-
family: ["Roboto", "sanf-serif"],
38-
color: "text"
44+
include: "defaults",
45+
size: 24
3946
},
4047

4148
"text-22": {
42-
size: 22,
43-
family: ["Roboto", "sanf-serif"],
44-
color: "text"
49+
include: "defaults",
50+
size: 22
4551
},
4652

4753
"title-20": {
54+
include: "defaults",
4855
size: 20,
49-
family: ["Roboto", "sanf-serif"],
50-
color: "text",
5156
bold: true
5257
},
5358

5459
"text-20": {
55-
size: 20,
56-
family: ["Roboto", "sanf-serif"],
57-
color: "text"
60+
include: "defaults",
61+
size: 20
5862
},
5963

6064
"title-18": {
65+
include: "defaults",
6166
size: 18,
62-
family: ["Roboto", "sanf-serif"],
63-
color: "text",
6467
bold: true
6568
},
6669

6770
"text-18": {
68-
size: 18,
69-
family: ["Roboto", "sanf-serif"],
70-
color: "text"
71+
include: "defaults",
72+
size: 18
7173
},
7274

7375
"title-16": {
76+
include: "defaults",
7477
size: 16,
75-
family: ["Roboto", "sanf-serif"],
76-
color: "text",
7778
bold: true
7879
},
7980

8081
"text-16": {
81-
size: 16,
82-
family: ["Roboto", "sanf-serif"],
83-
color: "text"
82+
include: "defaults",
83+
size: 16
8484
},
8585

8686
"text-15": {
87-
size: 15,
88-
family: ["Roboto", "sanf-serif"],
89-
color: "text"
87+
include: "defaults",
88+
size: 15
9089
},
9190

9291
"title-14": {
92+
include: "defaults",
9393
size: 14,
94-
family: ["Roboto", "sanf-serif"],
95-
color: "text",
9694
bold: true
9795
},
9896

9997
"text-14": {
100-
size: 14,
101-
family: ["Roboto", "sanf-serif"],
102-
color: "text"
98+
include: "defaults",
99+
size: 14
103100
},
104101

105102
"link-label-14": {
103+
include: "defaults",
106104
size: 14,
107-
family: ["Roboto", "sanf-serif"],
108105
color: "text-darker",
109106
decoration: "underline"
110107
},
111108

112109
"text-13": {
113-
size: 13,
114-
family: ["Roboto", "sanf-serif"],
115-
color: "text"
110+
include: "defaults",
111+
size: 13
116112
},
117113

118114
"text-12": {
119-
size: 12,
120-
family: ["Roboto", "sanf-serif"],
121-
color: "text"
115+
include: "defaults",
116+
size: 12
122117
},
123118

124119
"text-12-italic": {
120+
include: "defaults",
125121
size: 12,
126-
family: ["Roboto", "sanf-serif"],
127-
color: "text",
128122
italic: true
129123
},
130124

131125
"link-label-12": {
126+
include: "defaults",
132127
size: 12,
133-
family: ["Roboto", "sanf-serif"],
134128
color: "text-darker",
135129
decoration: "underline"
136130
},
137131

138132
"text-11": {
139-
size: 11,
140-
family: ["Roboto", "sanf-serif"],
141-
color: "text"
133+
include: "defaults",
134+
size: 11
142135
},
143136

144137
"text-11-italic": {
138+
include: "defaults",
145139
size: 11,
146-
family: ["Roboto", "sanf-serif"],
147-
color: "text",
148140
italic: true
149141
},
150142

151143
"text-10": {
152-
size: 10,
153-
family: ["Roboto", "sanf-serif"],
154-
color: "text"
144+
include: "defaults",
145+
size: 10
155146
},
156147

157148
"text-9": {
158-
size: 9,
159-
family: ["Roboto", "sanf-serif"],
160-
color: "text"
149+
include: "defaults",
150+
size: 9
161151
},
162152

163153
"workbench-start-hint": {
154+
include: "defaults",
164155
size: 20,
165-
family: ["Roboto", "sanf-serif"],
166156
color: "workbench-start-hint",
167157
bold: true
168158
}

services/static-webserver/client/source/class/osparc/ui/basic/PoweredByOsparc.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ qx.Class.define("osparc.ui.basic.PoweredByOsparc", {
5050
switch (id) {
5151
case "powered-by":
5252
control = new qx.ui.basic.Label(this.tr("powered by")).set({
53-
minWidth: 47,
5453
alignX: "center",
5554
font: "text-9"
5655
});
@@ -60,13 +59,18 @@ qx.Class.define("osparc.ui.basic.PoweredByOsparc", {
6059
control = new qx.ui.basic.Image().set({
6160
width: 42,
6261
height: 33,
63-
scale: true,
64-
alignX: "center"
62+
scale: true
6563
});
6664
const logoContainer = new qx.ui.container.Composite(new qx.ui.layout.HBox().set({
6765
alignY: "bottom"
6866
}));
67+
logoContainer.add(new qx.ui.core.Spacer(), {
68+
flex: 1
69+
});
6970
logoContainer.add(control);
71+
logoContainer.add(new qx.ui.core.Spacer(), {
72+
flex: 1
73+
});
7074
this._add(logoContainer);
7175
break;
7276
}

services/static-webserver/client/source/class/osparc/ui/window/Window.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,23 @@ qx.Class.define("osparc.ui.window.Window", {
5858
},
5959

6060
statics: {
61-
popUpInWindow: function(widget, title = "", width = 400, height = 400, icon) {
61+
popUpInWindow: function(widget, title = "", width = 400, minHeight = 400, icon) {
6262
const win = new osparc.ui.window.Window(title, icon).set({
63-
layout: new qx.ui.layout.VBox(10),
63+
layout: new qx.ui.layout.Grow(),
6464
autoDestroy: true,
6565
contentPadding: 10,
6666
showMinimize: false,
6767
showMaximize: false,
6868
resizable: true,
6969
width: width,
70-
height: height,
70+
minHeight: minHeight,
7171
modal: true,
7272
clickAwayClose: true
7373
});
7474

7575
const scroll = new qx.ui.container.Scroll();
7676
scroll.add(widget);
77-
win.add(scroll, {
78-
flex: 1
79-
});
77+
win.add(scroll);
8078

8179
win.center();
8280
win.open();

0 commit comments

Comments
 (0)