no message

This commit is contained in:
2024-10-14 15:19:13 +03:00
parent 8eef367bd4
commit 5e09fb44ea
634 changed files with 3751 additions and 3263 deletions

View File

@@ -12,27 +12,26 @@ import java.awt.*;
import java.util.LinkedHashMap;
import java.util.Stack;
public class UI_ {
public static boolean active=false; //есть ли интерфейс. в консольных версиях не нужен.
public static boolean active = false; //есть ли интерфейс. в консольных версиях не нужен.
public static MenuElement[] last_menu_path; //для меню
public static boolean isActive() {
return active;
}
//---
public static LinkedHashMap<Class<? extends DataSet>, DataMenuBar> menuBars = new LinkedHashMap<>();
public static Stack<Component> windowsStack = new Stack<>();
static VisualiserTheme theme = new DefaultTheme();
public static boolean isActive() {
return active;
}
public static VisualiserTheme getTheme() {
return theme;
}
public static void setTheme(VisualiserTheme theme_in){
theme= theme_in;
public static void setTheme(VisualiserTheme theme_in) {
theme = theme_in;
}
public static Component getFrontWindow() {
Component res = null;
try {
res = windowsStack.peek();
} catch (Exception ignored){
} catch (Exception ignored) {
}
return res;
}