кнопка для сворачивания машин, и отмена восстановления меню анализов

This commit is contained in:
2024-04-03 01:12:14 +03:00
parent c40d6fbbfc
commit 002867274f
6 changed files with 49 additions and 6 deletions

View File

@@ -4,12 +4,29 @@ import Common.UI.Menus_2023.MenuBarButton;
import Common.UI.Menus_2023.VisualiserMenuBar;
import Common.UI.Themes.VisualiserFonts;
import Common.UI.UI;
import Visual_DVM_2021.Passes.PassCode_2021;
import Visual_DVM_2021.Passes.Pass_2021;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class CredentialsBar extends VisualiserMenuBar {
public MenuBarButton MachineButton;
public MenuBarButton UserButton;
MenuBarButton bExpand;
public CredentialsBar(){
this.add(bExpand = new MenuBarButton() {
{
setIcon("/icons/ExpandDown.png");
setToolTipText("Развернуть");
addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Pass_2021.passes.get(PassCode_2021.UpdateProperty).Do("collapseCredentials", false);
}
});
}
}, 0);
add(MachineButton = new MenuBarButton() {
{
setIcon("/icons/Machine.png");

View File

@@ -17,7 +17,7 @@ public class CompactnessSettingsMenu extends SettingsSubmenu {
);
addSeparator();
String [] propertiesNames = new String[]{
"collapseCredentials",
// "collapseCredentials",
"collapseProjectTrees",
"collapseFileGraphs",
"collapseFileMessages"