style(burgs): some presets change, new icons

This commit is contained in:
Azgaar 2025-04-21 14:06:35 +02:00
parent d6335b034b
commit e80c98aea3
6 changed files with 320 additions and 206 deletions

View file

@ -252,16 +252,19 @@ function editBurg(id) {
function editGroupLabelStyle() {
const g = elSelected.node().parentNode.id;
closeDialogs(".stable");
editStyle("labels", g);
}
function editGroupIconStyle() {
const g = elSelected.node().parentNode.id;
closeDialogs(".stable");
editStyle("burgIcons", g);
}
function editGroupAnchorStyle() {
const g = elSelected.node().parentNode.id;
closeDialogs(".stable");
editStyle("anchors", g);
}

View file

@ -866,12 +866,12 @@ styleFontSize.on("change", function () {
styleFontPlus.on("click", function () {
const current = +styleFontSize.value || 12;
changeFontSize(getEl(), Math.min(current + 1, 999));
changeFontSize(getEl(), Math.min(rn(current + 0.1, 1), 999));
});
styleFontMinus.on("click", function () {
const current = +styleFontSize.value || 12;
changeFontSize(getEl(), Math.max(current - 1, 1));
changeFontSize(getEl(), Math.max(rn(current - 0.1, 1), 0.1));
});
function changeFontSize(el, size) {