Refactor dark mode to allow multiple themes

This commit is contained in:
Michael Schättgen 2019-03-28 00:54:30 +01:00
parent 9baaf824c6
commit cf4aecbd3e
7 changed files with 64 additions and 17 deletions

View file

@ -0,0 +1,19 @@
package com.beemdevelopment.aegis;
public enum Theme {
LIGHT,
DARK,
AMOLED;
public static Theme fromInteger(int x) {
switch(x) {
case 0:
return LIGHT;
case 1:
return DARK;
case 2:
return AMOLED;
}
return null;
}
}