no message

This commit is contained in:
2024-10-08 22:33:49 +03:00
parent 90546fc62e
commit e0974fe4a8
246 changed files with 1170 additions and 849 deletions

View File

@@ -1,6 +1,6 @@
package Common_old.UI.Menus;
import Common_old.Current;
import _VisualDVM.Syntax.ThemeElement;
import Common.Visual.CommonUI;
import Common.Visual.Themes.ThemeElement;
import javax.swing.*;
import javax.swing.event.PopupMenuEvent;
@@ -21,15 +21,15 @@ public class StyledPopupMenu extends JPopupMenu implements ThemeElement {
});
}
private void refreshTheme_r(MenuElement element) {
element.getComponent().setBackground(Current.getTheme().background);
element.getComponent().setForeground(Current.getTheme().foreground);
element.getComponent().setBackground(CommonUI.getTheme().background);
element.getComponent().setForeground(CommonUI.getTheme().foreground);
for (MenuElement se : element.getSubElements())
refreshTheme_r(se);
}
@Override
public void applyTheme() {
setBackground(Current.getTheme().background);
setForeground(Current.getTheme().foreground);
setBackground(CommonUI.getTheme().background);
setForeground(CommonUI.getTheme().foreground);
refreshTheme_r(this);
}
public void CheckElementsVisibility() {