no message

This commit is contained in:
2024-10-11 00:00:30 +03:00
parent a11b7711f7
commit f317ab1aa1
341 changed files with 1866 additions and 1688 deletions

View File

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