runelite config: enable custom chrome only on Windows
This commit is contained in:
@@ -32,6 +32,7 @@ import net.runelite.api.Constants;
|
|||||||
import net.runelite.client.Notifier;
|
import net.runelite.client.Notifier;
|
||||||
import net.runelite.client.ui.ContainableFrame;
|
import net.runelite.client.ui.ContainableFrame;
|
||||||
import net.runelite.client.ui.overlay.components.ComponentConstants;
|
import net.runelite.client.ui.overlay.components.ComponentConstants;
|
||||||
|
import net.runelite.client.util.OSType;
|
||||||
|
|
||||||
@ConfigGroup(RuneLiteConfig.GROUP_NAME)
|
@ConfigGroup(RuneLiteConfig.GROUP_NAME)
|
||||||
public interface RuneLiteConfig extends Config
|
public interface RuneLiteConfig extends Config
|
||||||
@@ -122,14 +123,14 @@ public interface RuneLiteConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "uiEnableCustomChrome",
|
keyName = "uiEnableCustomChrome",
|
||||||
name = "Enable custom window chrome",
|
name = "Enable custom window chrome",
|
||||||
description = "Use Runelite's custom window title and borders.",
|
description = "Use RuneLite's custom window title and borders.",
|
||||||
warning = "Please restart your client after changing this setting",
|
warning = "Please restart your client after changing this setting",
|
||||||
position = 15,
|
position = 15,
|
||||||
section = windowSettings
|
section = windowSettings
|
||||||
)
|
)
|
||||||
default boolean enableCustomChrome()
|
default boolean enableCustomChrome()
|
||||||
{
|
{
|
||||||
return true;
|
return OSType.getOSType() == OSType.Windows;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Range(
|
@Range(
|
||||||
|
|||||||
Reference in New Issue
Block a user