update theme to the newest devbuild
This commit is contained in:
@@ -95,6 +95,7 @@ public class MeteorRoundedGuiTheme extends GuiTheme {
|
||||
public final Setting<SettingColor> checkboxColor = color("checkbox", "Color of checkbox.", new SettingColor(135, 0, 255));
|
||||
public final Setting<SettingColor> plusColor = color("plus", "Color of plus button.", new SettingColor(255, 255, 255));
|
||||
public final Setting<SettingColor> minusColor = color("minus", "Color of minus button.", new SettingColor(255, 255, 255));
|
||||
public final Setting<SettingColor> favoriteColor = color("favorite", "Color of checked favorite button.", new SettingColor(255, 255, 0));
|
||||
|
||||
// Text
|
||||
|
||||
@@ -175,8 +176,8 @@ public class MeteorRoundedGuiTheme extends GuiTheme {
|
||||
// Widgets
|
||||
|
||||
@Override
|
||||
public WWindow window(String title) {
|
||||
return w(new WMeteorWindow(title));
|
||||
public WWindow window(WWidget icon, String title) {
|
||||
return w(new WMeteorWindow(icon, title));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -270,6 +271,11 @@ public class MeteorRoundedGuiTheme extends GuiTheme {
|
||||
return w(new WMeteorTopBar());
|
||||
}
|
||||
|
||||
@Override
|
||||
public WFavorite favorite(boolean checked) {
|
||||
return w(new WMeteorFavorite(checked));
|
||||
}
|
||||
|
||||
// Colors
|
||||
|
||||
@Override
|
||||
|
||||
@@ -28,6 +28,7 @@ public class WMeteorModule extends WPressable implements MeteorWidget {
|
||||
|
||||
public WMeteorModule(Module module) {
|
||||
this.module = module;
|
||||
this.tooltip = module.description;
|
||||
|
||||
if (module.isActive()) {
|
||||
animationProgress1 = 1;
|
||||
|
||||
@@ -9,16 +9,17 @@ import anticope.rejects.utils.gui.GuiUtils;
|
||||
import anticope.rejects.gui.themes.rounded.MeteorRoundedGuiTheme;
|
||||
import meteordevelopment.meteorclient.gui.renderer.GuiRenderer;
|
||||
import anticope.rejects.gui.themes.rounded.MeteorWidget;
|
||||
import meteordevelopment.meteorclient.gui.widgets.WWidget;
|
||||
import meteordevelopment.meteorclient.gui.widgets.containers.WWindow;
|
||||
|
||||
public class WMeteorWindow extends WWindow implements MeteorWidget {
|
||||
public WMeteorWindow(String title) {
|
||||
super(title);
|
||||
public WMeteorWindow(WWidget icon, String title) {
|
||||
super(icon, title);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected WHeader header() {
|
||||
return new WMeteorHeader();
|
||||
protected WHeader header(WWidget icon) {
|
||||
return new WMeteorHeader(icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -29,6 +30,10 @@ public class WMeteorWindow extends WWindow implements MeteorWidget {
|
||||
}
|
||||
|
||||
private class WMeteorHeader extends WHeader {
|
||||
public WMeteorHeader(WWidget icon) {
|
||||
super(icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onRender(GuiRenderer renderer, double mouseX, double mouseY, double delta) {
|
||||
GuiUtils.quadRounded(renderer, this, theme().accentColor.get(), ((MeteorRoundedGuiTheme)theme).roundAmount());
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package anticope.rejects.gui.themes.rounded.widgets.pressable;
|
||||
|
||||
import anticope.rejects.gui.themes.rounded.MeteorWidget;
|
||||
import meteordevelopment.meteorclient.gui.widgets.pressable.WFavorite;
|
||||
import meteordevelopment.meteorclient.utils.render.color.Color;
|
||||
|
||||
public class WMeteorFavorite extends WFavorite implements MeteorWidget {
|
||||
public WMeteorFavorite(boolean checked) {
|
||||
super(checked);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Color getColor() {
|
||||
return theme().favoriteColor.get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user