Tell when glass can be drawn at all
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -34,6 +34,15 @@ public class Config {
|
||||
return Property.floatProp(1f).range(0.5f, 2f, 0.05f).unit("×");
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether any glass can be drawn: a glass blur is on, and a background it
|
||||
* goes behind isn't solid.
|
||||
*/
|
||||
public static boolean usesGlass() {
|
||||
boolean translucent = Theme.getPanelBg() >>> 24 < 0xFF || Theme.PRIMARY.value >>> 24 < 0xFF;
|
||||
return translucent && (menuBlur.value > 0 || widgetBlur.value > 0);
|
||||
}
|
||||
|
||||
public static IdentifierRef getLogo() {
|
||||
return realisticLogo.value ? Textures.REALISTIC_LOGO : Textures.LOGO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user