From df5afe99e358497318f9ffd5b361ecaa097b185a Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Wed, 30 Sep 2026 21:47:45 +0200 Subject: [PATCH] Remove the upgrade of opaque theme colors from before 0.1.3 Configs saved before 0.1.3 (without a menu blur) had their preset background and primary colors made translucent on load. It's no longer needed, so Theme drops it, along with ConfigManager.isSaved, which only it used. Co-Authored-By: Claude Opus 5.5 --- .../saturnclient/config/ConfigManager.java | 8 ------- .../java/org/saturnclient/config/Theme.java | 23 ------------------- 2 files changed, 31 deletions(-) diff --git a/src/main/java/org/saturnclient/config/ConfigManager.java b/src/main/java/org/saturnclient/config/ConfigManager.java index d9c4535..070f867 100644 --- a/src/main/java/org/saturnclient/config/ConfigManager.java +++ b/src/main/java/org/saturnclient/config/ConfigManager.java @@ -163,14 +163,6 @@ public class ConfigManager { } } - /** - * Whether the config file has a value for {@code name} in this namespace, - * which tells which version last saved it. - */ - public boolean isSaved(String name) { - return getSaved(name) != null; - } - private JsonNode getSaved(String name) { JsonNode source = cachedJson != null ? cachedJson : loadAndCache(); if (source == null || !source.isObject()) diff --git a/src/main/java/org/saturnclient/config/Theme.java b/src/main/java/org/saturnclient/config/Theme.java index d2269c2..a0b0eaf 100644 --- a/src/main/java/org/saturnclient/config/Theme.java +++ b/src/main/java/org/saturnclient/config/Theme.java @@ -81,29 +81,6 @@ public class Theme { config.property("Widget Radius", WIDGET_RADIUS, "Corner rounding of buttons and cards"); config.property("Font", FONT, "Font of every Saturn screen"); - - if (!parent.isSaved(Config.MENU_BLUR)) { - upgradeOpaqueColors(); - } - } - - /** - * Before 0.1.3 panels and cards were made translucent in code, and the - * background and primary colors were saved fully opaque. Saved colors that - * are an old default or preset get the translucency the colors now carry - * themselves; colors the player picked are left as they are. Runs only on - * configs from older versions, so a preset color later set opaque on - * purpose stays opaque. - */ - private static void upgradeOpaqueColors() { - for (Preset preset : PRESETS) { - if (BACKGROUND.value == (preset.background() | 0xFF000000)) { - BACKGROUND.value = preset.background(); - } - if (PRIMARY.value == (preset.primary() | 0xFF000000)) { - PRIMARY.value = preset.primary(); - } - } } /**