Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7cc37b7c74 |
@@ -34,6 +34,15 @@ public class Config {
|
|||||||
return Property.floatProp(1f).range(0.5f, 2f, 0.05f).unit("×");
|
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() {
|
public static IdentifierRef getLogo() {
|
||||||
return realisticLogo.value ? Textures.REALISTIC_LOGO : Textures.LOGO;
|
return realisticLogo.value ? Textures.REALISTIC_LOGO : Textures.LOGO;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user