no message

This commit is contained in:
2024-10-14 18:41:02 +03:00
parent 702529147d
commit 45447f34f8
54 changed files with 200 additions and 100 deletions

View File

@@ -1,4 +1,5 @@
package Common.Visual.Menus;
import Common.MainModule_;
import Common.Visual.Themes.ThemeElement;
import Common.Visual.UI_;
@@ -21,15 +22,15 @@ public class StyledPopupMenu extends JPopupMenu implements ThemeElement {
});
}
private void refreshTheme_r(MenuElement element) {
element.getComponent().setBackground(UI_.getTheme().background);
element.getComponent().setForeground(UI_.getTheme().foreground);
element.getComponent().setBackground(MainModule_.instance.getUI().getTheme().background);
element.getComponent().setForeground(MainModule_.instance.getUI().getTheme().foreground);
for (MenuElement se : element.getSubElements())
refreshTheme_r(se);
}
@Override
public void applyTheme() {
setBackground(UI_.getTheme().background);
setForeground(UI_.getTheme().foreground);
setBackground(MainModule_.instance.getUI().getTheme().background);
setForeground(MainModule_.instance.getUI().getTheme().foreground);
refreshTheme_r(this);
}
public void CheckElementsVisibility() {