@@ -91,6 +91,9 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
9191 } ,
9292
9393 statics : {
94+ MORE_ICON : "https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/refs/heads/main/app/icons/arrows.png" ,
95+ FOLDER_ICON : "https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/refs/heads/main/app/icons/folder.png" ,
96+
9497 createMenuButton : function ( icon , title , infoText ) {
9598 title = osparc . utils . Utils . replaceTokens (
9699 title ,
@@ -153,10 +156,8 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
153156 switch ( id ) {
154157 case "new-folder" :
155158 this . addSeparator ( ) ;
156- control = this . self ( ) . createMenuButton (
157- "@FontAwesome5Solid/folder/16" ,
158- this . tr ( "New Folder" ) ,
159- ) ;
159+ control = this . self ( ) . createMenuButton ( null , this . tr ( "New Folder" ) ) ;
160+ this . self ( ) . setIcon ( control , this . self ( ) . FOLDER_ICON ) ;
160161 osparc . utils . Utils . setIdToWidget ( control , "newFolderButton" ) ;
161162 control . addListener ( "tap" , ( ) => this . __createNewFolder ( ) ) ;
162163 this . add ( control ) ;
@@ -206,7 +207,7 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
206207 appearance : "menu-wider" ,
207208 } ) ;
208209 hypertoolsMenuButton . setMenu ( hypertoolsMenu ) ;
209- this . self ( ) . setIcon ( hypertoolsMenuButton , osparc . data . model . StudyUI . HYPERTOOL_ICON ( 16 ) ) ;
210+ this . self ( ) . setIcon ( hypertoolsMenuButton , osparc . data . model . StudyUI . HYPERTOOL_ICON ) ;
210211
211212 hypertools . forEach ( templateData => {
212213 const hypertoolButton = this . self ( ) . createMenuButton ( null , templateData [ "name" ] ) ;
@@ -231,17 +232,15 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
231232 } ,
232233
233234 __addMoreMenu : function ( ) {
234- const moreMenuButton = this . self ( ) . createMenuButton ( "@FontAwesome5Solid/angle-double-right/16" , this . tr ( "More" ) ) ;
235- moreMenuButton . getChildControl ( "icon" ) . set ( {
236- marginLeft : 6 , // center it
237- } ) ;
235+ const moreMenuButton = this . self ( ) . createMenuButton ( null , this . tr ( "More" ) ) ;
238236 this . addAt ( moreMenuButton , this . __itemIdx ) ;
239237 this . __itemIdx ++ ;
240238
241239 const moreMenu = new qx . ui . menu . Menu ( ) . set ( {
242240 appearance : "menu-wider" ,
243241 } ) ;
244242 moreMenuButton . setMenu ( moreMenu ) ;
243+ this . self ( ) . setIcon ( moreMenuButton , this . self ( ) . MORE_ICON ) ;
245244
246245 const permissions = osparc . data . Permissions . getInstance ( ) ;
247246 if ( permissions . canDo ( "dashboard.templates.read" ) ) {
0 commit comments