Skip to content

Commit fd9cf74

Browse files
committed
osparc.widget.SectionBox
1 parent 476d90e commit fd9cf74

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ qx.Class.define("osparc.desktop.account.ProfilePage", {
5858
},
5959

6060
createSectionBox: function(title) {
61-
const box = osparc.ui.window.TabbedView.createSectionBox(title).set({
61+
const box = new osparc.widget.SectionBox(title).set({
6262
alignX: "left",
6363
maxWidth: 500
6464
});

services/static-webserver/client/source/class/osparc/desktop/preferences/pages/ConfirmationsPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ qx.Class.define("osparc.desktop.preferences.pages.ConfirmationsPage", {
125125

126126
__createExperimentalSettings: function() {
127127
// layout
128-
const box = osparc.ui.window.TabbedView.createSectionBox("Experimental preferences");
128+
const box = new osparc.widget.SectionBox("Experimental preferences");
129129

130130
const label = osparc.ui.window.TabbedView.createHelpLabel(this.tr(
131131
"This is a list of experimental preferences"

services/static-webserver/client/source/class/osparc/widget/SectionBox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ qx.Class.define("osparc.widget.SectionBox", {
4848
/** Background for the title; should match panel bg token */
4949
legendBackgroundColor: {
5050
check: "Color",
51-
init: "background-pane",
51+
init: "background-main-1",
5252
event: "changeLegendBackgroundColor",
5353
},
5454
},
@@ -57,7 +57,7 @@ qx.Class.define("osparc.widget.SectionBox", {
5757
_frame: null,
5858

5959
// Children you add to this widget will be forwarded into the frame:
60-
_getChildrenContainer: function() {
60+
getChildrenContainer: function() {
6161
return this._frame || this.getChildControl("frame");
6262
},
6363

@@ -72,7 +72,7 @@ qx.Class.define("osparc.widget.SectionBox", {
7272
color: "background-main-2",
7373
radius: 4,
7474
}),
75-
padding: [10 + 4, 10, 10, 10],
75+
padding: [10 + 6, 10, 10, 10],
7676
backgroundColor: "transparent",
7777
});
7878
// full size, but pushed down by frameTop

0 commit comments

Comments
 (0)