Skip to content

Commit 9204845

Browse files
authored
🎨 [Frontend] Unify border-radius (#6451)
1 parent d5b30c4 commit 9204845

File tree

15 files changed

+62
-224
lines changed

15 files changed

+62
-224
lines changed

services/static-webserver/client/source/class/osparc/announcement/AnnouncementUIFactory.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ qx.Class.define("osparc.announcement.AnnouncementUIFactory", {
3636
alignX: "center",
3737
padding: 12,
3838
allowGrowX: true,
39-
maxWidth: 300
40-
});
41-
loginAnnouncement.getContentElement().setStyles({
42-
"border-radius": "8px"
39+
maxWidth: osparc.auth.core.BaseAuthPage.FORM_WIDTH,
40+
decorator: "rounded",
4341
});
4442

4543
if (title) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
7575
});
7676
control.getChildControl("image").set({
7777
anonymous: true,
78-
decorator: "rounded"
78+
decorator: "rounded",
7979
});
8080
this._add(control, {
8181
row: 0,

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ qx.Class.define("osparc.dashboard.SearchBarFilter", {
2828
this.set({
2929
backgroundColor: "input_background",
3030
paddingLeft: 6,
31-
height: this.self().HEIGHT
32-
});
33-
this.getContentElement().setStyles({
34-
"border-radius": "5px"
31+
height: this.self().HEIGHT,
32+
decorator: "rounded",
3533
});
3634

3735
this.__buildLayout();

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ qx.Class.define("osparc.dashboard.WorkspaceHeader", {
9191
alignY: "middle",
9292
alignX: "center",
9393
allowGrowX: true,
94-
allowGrowY: true
95-
});
96-
control.getContentElement().setStyles({
97-
"border-radius": "4px"
94+
allowGrowY: true,
95+
decorator: "rounded",
9896
});
9997
this._add(control);
10098
break;

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ qx.Class.define("osparc.dashboard.WorkspacesAndFoldersTreeItem", {
2323

2424
this.set({
2525
indent: 12, // defaults to 19,
26-
});
27-
28-
this.getContentElement().setStyles({
29-
"border-radius": "8px"
26+
decorator: "rounded",
3027
});
3128

3229
this.set({

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ qx.Class.define("osparc.desktop.credits.CreditsServiceListItem", {
8585
minHeight: 32,
8686
minWidth: 32
8787
});
88-
control.getChildControl("image").getContentElement().setStyles({
89-
"border-radius": "4px"
88+
control.getChildControl("image").set({
89+
decorator: "rounded",
9090
});
9191
this._add(control, this.self().GRID.ICON);
9292
break;

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,13 @@ qx.Class.define("osparc.info.CommentAdd", {
6565
allowShrinkX: true,
6666
allowShrinkY: true,
6767
maxWidth: 32,
68-
maxHeight: 32
68+
maxHeight: 32,
69+
decorator: "rounded",
6970
});
7071
const userEmail = osparc.auth.Data.getInstance().getEmail();
7172
control.set({
7273
source: osparc.utils.Avatar.getUrl(userEmail, 32)
7374
});
74-
control.getContentElement().setStyles({
75-
"border-radius": "8px"
76-
});
7775
const layout = this.getChildControl("add-comment-layout");
7876
layout.add(control, {
7977
row: 0,

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ qx.Class.define("osparc.info.CommentUI", {
6060
control = new qx.ui.basic.Image().set({
6161
scale: true,
6262
maxWidth: 32,
63-
maxHeight: 32
64-
});
65-
control.getContentElement().setStyles({
66-
"border-radius": "8px"
63+
maxHeight: 32,
64+
decorator: "rounded",
6765
});
6866
this.getChildControl("meta-data-grid").add(control, {
6967
row: 0,

services/static-webserver/client/source/class/osparc/notification/NotificationsContainer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ qx.Class.define("osparc.notification.NotificationsContainer", {
2727
zIndex: osparc.utils.Utils.FLOATING_Z_INDEX,
2828
maxWidth: osparc.notification.NotificationUI.MAX_WIDTH,
2929
maxHeight: 250,
30-
backgroundColor: "background-main-3"
30+
backgroundColor: "background-main-3",
31+
decorator: "rounded",
3132
});
3233
osparc.utils.Utils.setIdToWidget(this, "notificationsContainer");
3334

services/static-webserver/client/source/class/osparc/study/PricingUnit.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ qx.Class.define("osparc.study.PricingUnit", {
2323

2424
this.set({
2525
padding: 10,
26-
center: true
27-
});
28-
this.getContentElement().setStyles({
29-
"border-radius": "4px"
26+
center: true,
27+
decorator: "rounded",
3028
});
3129

3230
this.setUnitData(new osparc.pricing.UnitData(pricingUnit));

0 commit comments

Comments
 (0)