Rework icons

This commit is contained in:
crschnick
2025-06-12 05:21:49 +00:00
parent 252a20829b
commit 74110cd099
8 changed files with 9 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ import io.xpipe.app.core.AppI18n;
import io.xpipe.app.core.AppRestart;
import io.xpipe.app.util.PlatformThread;
import javafx.beans.property.ReadOnlyObjectWrapper;
import javafx.css.PseudoClass;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
@@ -31,7 +32,7 @@ public class AppPrefsSidebarComp extends SimpleComp {
.toList();
var buttons = effectiveCategories.stream()
.<Comp<?>>map(appPrefsCategory -> {
return new ButtonComp(AppI18n.observable(appPrefsCategory.getId()), appPrefsCategory.getIcon().createGraphicNode(), () -> {
return new ButtonComp(AppI18n.observable(appPrefsCategory.getId()), new ReadOnlyObjectWrapper<>(appPrefsCategory.getIcon()), () -> {
AppPrefs.get().getSelectedCategory().setValue(appPrefsCategory);
})
.apply(struc -> {

View File

@@ -35,7 +35,7 @@ public class DeveloperCategory extends AppPrefsCategory {
@Override
protected LabelGraphic getIcon() {
return new LabelGraphic.IconGraphic("mdoal-developer_mode");
return new LabelGraphic.IconGraphic("mdi2c-code-tags");
}
@Override

View File

@@ -35,7 +35,7 @@ public class IconsCategory extends AppPrefsCategory {
@Override
protected LabelGraphic getIcon() {
return new LabelGraphic.IconGraphic("mdi2b-brush-variant");
return new LabelGraphic.IconGraphic("mdi2v-view-grid-plus-outline");
}
@Override

View File

@@ -19,7 +19,7 @@ public class LoggingCategory extends AppPrefsCategory {
@Override
protected LabelGraphic getIcon() {
return new LabelGraphic.IconGraphic("mdi2i-invoice-text-multiple-outline");
return new LabelGraphic.IconGraphic("mdi2t-text-box-search-outline");
}
@Override

View File

@@ -13,7 +13,7 @@ public class SecurityCategory extends AppPrefsCategory {
@Override
protected LabelGraphic getIcon() {
return new LabelGraphic.IconGraphic("mdi2i-infinity");
return new LabelGraphic.IconGraphic("mdi2s-security-network");
}
public Comp<?> create() {

View File

@@ -14,7 +14,7 @@ public class SshCategory extends AppPrefsCategory {
@Override
protected LabelGraphic getIcon() {
return new LabelGraphic.IconGraphic("mdi2s-ssh");
return new LabelGraphic.IconGraphic("mdi2c-console-network-outline");
}
@Override

View File

@@ -34,7 +34,7 @@ public class TroubleshootCategory extends AppPrefsCategory {
@Override
protected LabelGraphic getIcon() {
return new LabelGraphic.IconGraphic("mdi2i-infinity");
return new LabelGraphic.IconGraphic("mdoal-bug_report");
}
@Override

View File

@@ -26,7 +26,7 @@ public class VaultCategory extends AppPrefsCategory {
@Override
protected LabelGraphic getIcon() {
return new LabelGraphic.IconGraphic("mdsal-lock");
return new LabelGraphic.IconGraphic("mdi2d-database-lock-outline");
}
@SneakyThrows