mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-22 15:40:31 -04:00
Rework icons
This commit is contained in:
@@ -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 -> {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user