@@ -63,6 +63,7 @@ public class ConfigValues {
6363 private MutableObject <DiscordStatus > discordStatus = new MutableObject <>(DiscordStatus .AUTO_STATUS );
6464 private MutableObject <DiscordStatus > discordAutoDefault = new MutableObject <>(DiscordStatus .NONE );
6565 @ Getter private List <String > discordCustomStatuses = new ArrayList <>();
66+ @ Getter private MutableFloat mapZoom = new MutableFloat (0.18478261F ); // 1.3
6667
6768 public ConfigValues (File settingsConfigFile ) {
6869 this .settingsConfigFile = settingsConfigFile ;
@@ -157,6 +158,8 @@ public void loadValues() {
157158 deserializeEnumValueFromOrdinal (discordAutoDefault , "discordAutoDefault" );
158159 deserializeStringCollection (discordCustomStatuses , "discordCustomStatuses" );
159160
161+ deserializeNumber (mapZoom , "mapZoom" , float .class );
162+
160163 int configVersion ;
161164 if (settingsConfig .has ("configVersion" )) {
162165 configVersion = settingsConfig .get ("configVersion" ).getAsInt ();
@@ -352,6 +355,8 @@ public void saveConfig() {
352355 }
353356 settingsConfig .add ("discordCustomStatuses" , discordCustomStatusesArray );
354357
358+ settingsConfig .addProperty ("mapZoom" , mapZoom );
359+
355360 settingsConfig .addProperty ("configVersion" , CONFIG_VERSION );
356361 int largestFeatureID = 0 ;
357362 for (Feature feature : Feature .values ()) {
@@ -636,9 +641,7 @@ public Color getColor(Feature feature, int alpha) {
636641 }
637642
638643 if (chromaFeatures .contains (feature )) {
639- Color color = ChromaManager .getCurrentColor ();
640-
641- return new Color (color .getRed (), color .getGreen (), color .getBlue (), alpha );
644+ return new Color (ChromaManager .getChromaColor (0 , 0 ));
642645 }
643646
644647 Color color = getColor (feature );
@@ -648,7 +651,7 @@ public Color getColor(Feature feature, int alpha) {
648651
649652 public Color getColor (Feature feature ) {
650653 if (chromaFeatures .contains (feature )) {
651- return ChromaManager .getCurrentColor ( );
654+ return new Color ( ChromaManager .getChromaColor ( 0 , 0 ) );
652655 }
653656
654657 ColorCode defaultColor = feature .getDefaultColor ();
0 commit comments