Another icon

This commit is contained in:
Daniel
2025-04-15 16:39:51 +02:00
parent 1e876a888f
commit 385a413870
3 changed files with 15 additions and 15 deletions

View File

@ -508,7 +508,6 @@ function createTitle(component, modules) {
var left = document.createElement('span'); var left = document.createElement('span');
// var status_icon = document.createElement('p'); // var status_icon = document.createElement('p');
// status_icon.classList.add("status-icon"); // status_icon.classList.add("status-icon");
var title = component.title;
if (component.info) { if (component.info) {
left.classList.add("col-left", "event-toggle-info"); left.classList.add("col-left", "event-toggle-info");
@ -522,21 +521,22 @@ function createTitle(component, modules) {
} }
left.innerHTML = component.title + "<sup><b>(i)</b></sup>"; left.innerHTML = component.title + "<sup><b>(i)</b></sup>";
} else { }
if (modules) {
var icon_status = '<img class = "modules-icon status-icon" src="res/icon_status.png">';
var icon_edit = '<img class = "modules-icon edit-icon" src="res/icon_edit.png">';
var icon_info = '<img class = "modules-icon info-icon" src="res/icon_info.png" onclick = getGroup(1,"' + title + '")>';
left.innerHTML = '<span class = "modules-title">' + component.title + '</span>'; var title = component.title;
if (component.statusname) { if (modules) {
left.innerHTML += icon_status; var icon_status = '<img class = "modules-icon status-icon" src="res/icon_status.png">';
} var icon_edit = '<img class = "modules-icon edit-icon" src="res/icon_edit.png">';
left.innerHTML += icon_edit; var icon_info = '<img class = "modules-icon info-icon" src="res/icon_info.png" onclick = getGroup(1,"' + title + '")>';
left.innerHTML += icon_info;
} else { left.innerHTML = '<span class = "modules-title">' + component.title + '</span>';
left.innerHTML = component.title; if (component.statusname) {
left.innerHTML += icon_status;
} }
left.innerHTML += icon_edit;
left.innerHTML += icon_info;
} else {
left.innerHTML = component.title;
} }
return left; return left;
} }

View File

@ -87,7 +87,7 @@ new Settings()
.treat("showMain", "sm", to_bool, true) .treat("showMain", "sm", to_bool, true)
.treat("showConsole", "sc", to_bool, true) .treat("showConsole", "sc", to_bool, true)
.treat("showOverview", "so", to_bool, false) .treat("showOverview", "so", to_bool, false)
.treat("showGraphics", "sg", to_bool, false) // false) .treat("showGraphics", "sg", to_bool, true) // false)
.treat("hideRightPart", "hr", to_bool, false) //used to completely disable the right part .treat("hideRightPart", "hr", to_bool, false) //used to completely disable the right part
.treat("wideGraphs", "wg", to_bool, false) //used to toggle the size of the graphs part .treat("wideGraphs", "wg", to_bool, false) //used to toggle the size of the graphs part
.treat("showAsync", "sa", to_bool, false) .treat("showAsync", "sa", to_bool, false)

BIN
client/res/icon_close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB