many major changes, see store for details
- bump version to v0.4.0 - add theme support - add high contrast and light themes - remove settingcommand (broken) - add icon variants for certain themes - remove text shadows from interfaces other than the hud
This commit is contained in:
parent
854ce7201c
commit
bd5573c48f
38 changed files with 223 additions and 184 deletions
81
src/main/java/me/kawaiizenbo/moonlight/theme/Theme.java
Normal file
81
src/main/java/me/kawaiizenbo/moonlight/theme/Theme.java
Normal file
|
@ -0,0 +1,81 @@
|
|||
package me.kawaiizenbo.moonlight.theme;
|
||||
|
||||
public class Theme
|
||||
{
|
||||
public static final Theme LIGHT = new Theme(
|
||||
"Light",
|
||||
new ThemeColor(0x222222),
|
||||
new ThemeColor(0xFFFFFF),
|
||||
new ThemeColor(0xFFFFFF),
|
||||
new ThemeColor(0xDDDDDD),
|
||||
new ThemeColor(0x00AAAA),
|
||||
new ThemeColor(0x55FFFF),
|
||||
new ThemeColor(0x222222),
|
||||
false,
|
||||
false
|
||||
);
|
||||
public static final Theme HIGHCONTRAST = new Theme(
|
||||
"High Contrast",
|
||||
new ThemeColor(0x000000),
|
||||
new ThemeColor(0xFFFFFF),
|
||||
new ThemeColor(0xFFFFFF),
|
||||
new ThemeColor(0x777777),
|
||||
new ThemeColor(0x00AAAA),
|
||||
new ThemeColor(0xFFFFFF),
|
||||
new ThemeColor(0x000000),
|
||||
false,
|
||||
true
|
||||
);
|
||||
public static final Theme DARK = new Theme(
|
||||
"Dark",
|
||||
new ThemeColor(0xFFFFFF),
|
||||
new ThemeColor(0xFFFFFF),
|
||||
new ThemeColor(0x222222),
|
||||
new ThemeColor(0x333333),
|
||||
new ThemeColor(0x55FFFF),
|
||||
new ThemeColor(0x55FFFF),
|
||||
new ThemeColor(0xFFFFFF),
|
||||
false,
|
||||
false
|
||||
);
|
||||
public static final Theme[] THEME_LIST =
|
||||
{
|
||||
LIGHT, HIGHCONTRAST, DARK
|
||||
};
|
||||
|
||||
public String name;
|
||||
public ThemeColor text;
|
||||
public ThemeColor headerText;
|
||||
public ThemeColor background;
|
||||
public ThemeColor hover;
|
||||
public ThemeColor accent;
|
||||
public ThemeColor hudAccent;
|
||||
public ThemeColor border;
|
||||
public boolean useDarkIcons;
|
||||
public boolean themedWindowBorders;
|
||||
|
||||
public Theme(
|
||||
String name,
|
||||
ThemeColor text,
|
||||
ThemeColor headerText,
|
||||
ThemeColor background,
|
||||
ThemeColor hover,
|
||||
ThemeColor accent,
|
||||
ThemeColor hudAccent,
|
||||
ThemeColor border,
|
||||
boolean useDarkIcons,
|
||||
boolean themedWindowBorders
|
||||
)
|
||||
{
|
||||
this.name = name;
|
||||
this.text = text;
|
||||
this.headerText = headerText;
|
||||
this.background = background;
|
||||
this.hover = hover;
|
||||
this.accent = accent;
|
||||
this.hudAccent = hudAccent;
|
||||
this.border = border;
|
||||
this.useDarkIcons = useDarkIcons;
|
||||
this.themedWindowBorders = themedWindowBorders;
|
||||
}
|
||||
}
|
32
src/main/java/me/kawaiizenbo/moonlight/theme/ThemeColor.java
Normal file
32
src/main/java/me/kawaiizenbo/moonlight/theme/ThemeColor.java
Normal file
|
@ -0,0 +1,32 @@
|
|||
package me.kawaiizenbo.moonlight.theme;
|
||||
|
||||
public class ThemeColor
|
||||
{
|
||||
public int r, g, b;
|
||||
|
||||
public ThemeColor(int r, int g, int b)
|
||||
{
|
||||
this.r = r;
|
||||
this.g = g;
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
public ThemeColor(int RGBcolor)
|
||||
{
|
||||
this.r = (RGBcolor&0x00FF0000)>>16;
|
||||
this.g = (RGBcolor&0x0000FF00)>>8;
|
||||
this.b = (RGBcolor&0x000000FF)>>0;
|
||||
}
|
||||
|
||||
public int getRGB()
|
||||
{
|
||||
return ((255&0x0ff)<<24)|((r&0x0ff)<<16)|((g&0x0ff)<<8)|(b&0x0ff);
|
||||
}
|
||||
|
||||
public void setRGB(int RGBcolor)
|
||||
{
|
||||
this.r = RGBcolor&0x00FF0000;
|
||||
this.g = RGBcolor&0x0000FF00;
|
||||
this.b = RGBcolor&0x000000FF;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue