Skip to content

Commit def03fc

Browse files
committed
hypertool icon
1 parent 0dcf3e6 commit def03fc

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,13 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
421421

422422
// hypertools filter
423423
const button = new qx.ui.toolbar.RadioButton("Hypertools", null);
424-
osparc.utils.Utils.replaceIconWithThumbnail(button, osparc.data.model.StudyUI.HYPERTOOL_ICON, 20);
424+
osparc.utils.Utils.replaceIconWithThumbnail(button, osparc.data.model.StudyUI.HYPERTOOL_ICON, 26);
425+
// align it with the rest of icons
426+
button.set({
427+
paddingLeft: 5,
428+
paddingTop: 0,
429+
paddingBottom: 0,
430+
});
425431
button.appType = "hypertool";
426432
this.__appTypeButtons.push(button);
427433

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,24 @@ qx.Class.define("osparc.dashboard.SearchBarFilter", {
261261
const serviceTypeMenu = new qx.ui.menu.Menu();
262262
menuButton.setMenu(serviceTypeMenu);
263263

264-
const iconSize = 12;
264+
const iconSize = 14;
265265
const serviceTypes = osparc.service.Utils.TYPES;
266266
Object.keys(serviceTypes).forEach(serviceId => {
267267
if (!["computational", "dynamic"].includes(serviceId)) {
268268
return;
269269
}
270270
const serviceType = serviceTypes[serviceId];
271271
const serviceTypeButton = new qx.ui.menu.Button(serviceType.label, serviceType.icon+iconSize);
272+
serviceTypeButton.getChildControl("icon").set({
273+
alignX: "center",
274+
});
272275
serviceTypeMenu.add(serviceTypeButton);
273276
serviceTypeButton.addListener("execute", () => this.__addChip("app-type", serviceId, serviceType.label), this);
274277
});
275278

276279
// hypertools filter
277280
const hypertoolTypeButton = new qx.ui.menu.Button("Hypertools", null);
278-
osparc.utils.Utils.replaceIconWithThumbnail(hypertoolTypeButton, osparc.data.model.StudyUI.HYPERTOOL_ICON, iconSize);
281+
osparc.utils.Utils.replaceIconWithThumbnail(hypertoolTypeButton, osparc.data.model.StudyUI.HYPERTOOL_ICON, 18);
279282
serviceTypeMenu.add(hypertoolTypeButton);
280283
hypertoolTypeButton.addListener("execute", () => this.__addChip("app-type", "hypertool", "Hypertools"), this);
281284
},

0 commit comments

Comments
 (0)