@@ -46,7 +46,7 @@ qx.Class.define("osparc.desktop.preferences.pages.GeneralPage", {
4646
4747 members : {
4848 __addCreditsIndicatorSettings : function ( ) {
49- const box = osparc . ui . window . TabbedView . createSectionBox ( this . tr ( "Credits Indicator" ) ) ;
49+ const box = new osparc . widget . SectionBox ( this . tr ( "Credits Indicator" ) ) ;
5050
5151 const form = new qx . ui . form . Form ( ) ;
5252
@@ -93,10 +93,9 @@ qx.Class.define("osparc.desktop.preferences.pages.GeneralPage", {
9393 } ,
9494
9595 __addInactivitySetting : function ( ) {
96- const box = osparc . ui . window . TabbedView . createSectionBox ( this . tr ( "Automatic Shutdown of Idle Instances" ) ) ;
96+ const box = new osparc . widget . SectionBox ( this . tr ( "Automatic Shutdown of Idle Instances" ) ) ;
9797
98- const label = osparc . ui . window . TabbedView . createHelpLabel ( this . tr ( "Enter 0 to disable this function" ) , "text-13-italic" ) ;
99- box . add ( label ) ;
98+ box . addHelper ( this . tr ( "Enter 0 to disable this function" ) ) ;
10099
101100 const form = new qx . ui . form . Form ( ) ;
102101 const inactivitySpinner = new qx . ui . form . Spinner ( ) . set ( {
@@ -118,7 +117,7 @@ qx.Class.define("osparc.desktop.preferences.pages.GeneralPage", {
118117 } ,
119118
120119 __addJobConcurrencySetting : function ( ) {
121- const box = osparc . ui . window . TabbedView . createSectionBox ( this . tr ( "Job Concurrency" ) ) ;
120+ const box = new osparc . widget . SectionBox ( this . tr ( "Job Concurrency" ) ) ;
122121 const form = new qx . ui . form . Form ( ) ;
123122 const jobConcurrencySpinner = new qx . ui . form . Spinner ( ) . set ( {
124123 minimum : 1 ,
@@ -136,9 +135,9 @@ qx.Class.define("osparc.desktop.preferences.pages.GeneralPage", {
136135 } ,
137136
138137 __addLowDiskSpaceSetting : function ( ) {
139- const box = osparc . ui . window . TabbedView . createSectionBox ( this . tr ( "Low Disk Space Threshold" ) ) ;
140- const label = osparc . ui . window . TabbedView . createHelpLabel ( this . tr ( "Set the warning Threshold for Low Disk Space availability" ) , "text-13-italic" ) ;
141- box . add ( label ) ;
138+ const box = new osparc . widget . SectionBox ( this . tr ( "Low Disk Space Threshold" ) ) ;
139+ box . addHelper ( this . tr ( "Set the warning Threshold for Low Disk Space availability" ) ) ;
140+
142141 const form = new qx . ui . form . Form ( ) ;
143142 const diskUsageSpinner = new qx . ui . form . Spinner ( ) . set ( {
144143 minimum : 1 ,
@@ -157,10 +156,8 @@ qx.Class.define("osparc.desktop.preferences.pages.GeneralPage", {
157156 } ,
158157
159158 __addS4LUserPrivacySettings : function ( ) {
160- const box = osparc . ui . window . TabbedView . createSectionBox ( "Privacy Settings" ) ;
161-
162- const label = osparc . ui . window . TabbedView . createHelpLabel ( this . tr ( "Help us improve Sim4Life user experience" ) , "text-13-italic" ) ;
163- box . add ( label ) ;
159+ const box = new osparc . widget . SectionBox ( "Privacy Settings" ) ;
160+ box . addHelper ( this . tr ( "Help us improve Sim4Life user experience" ) ) ;
164161
165162 const preferencesSettings = osparc . Preferences . getInstance ( ) ;
166163
0 commit comments