mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-16 11:45:09 +01:00
feat: various improvements
- Update to MidnightLib 1.7.0 and use its features to make the config screen more reliable - Fix background gradient being opaque briefly when fading out while not in a world - Fix 1.21.5 compat (still compatible with 1.21.4 as well :D)
This commit is contained in:
@@ -19,6 +19,7 @@ public class BlurConfig extends MidnightConfig {
|
||||
public static boolean blurContainers = true;
|
||||
@Entry(category = SCREENS)
|
||||
public static boolean blurTitleScreen = false;
|
||||
@Condition(requiredOption = "blurTitleScreen", visibleButLocked = true)
|
||||
@Entry(category = SCREENS)
|
||||
public static boolean darkenTitleScreen = false;
|
||||
@Entry(category = ANIMATIONS, min = 0, max = 2000, isSlider = true)
|
||||
@@ -31,14 +32,19 @@ public class BlurConfig extends MidnightConfig {
|
||||
public static int radius = 5;
|
||||
@Entry(category = STYLE)
|
||||
public static boolean useGradient = true;
|
||||
@Condition(requiredOption = "useGradient", visibleButLocked = true)
|
||||
@Entry(category = STYLE, isColor = true, width = 7, min = 7)
|
||||
public static String gradientStart = "#000000";
|
||||
@Condition(requiredOption = "useGradient", visibleButLocked = true)
|
||||
@Entry(category = STYLE, isSlider = true, min = 0, max = 255)
|
||||
public static int gradientStartAlpha = 75;
|
||||
@Condition(requiredOption = "useGradient", visibleButLocked = true)
|
||||
@Entry(category = STYLE, isColor = true, width = 7, min = 7)
|
||||
public static String gradientEnd = "#000000";
|
||||
@Condition(requiredOption = "useGradient", visibleButLocked = true)
|
||||
@Entry(category = STYLE, isSlider = true, min = 0, max = 255)
|
||||
public static int gradientEndAlpha = 75;
|
||||
@Condition(requiredOption = "useGradient", visibleButLocked = true)
|
||||
@Entry(category = STYLE, isSlider = true, min = 0, max = 360)
|
||||
public static int gradientRotation = 0;
|
||||
@Entry(category = STYLE)
|
||||
|
||||
Reference in New Issue
Block a user