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.Trees;
import Common.MainModule_;
import Common.Utils.Utils_;
import Common.Visual.Fonts.VisualiserFonts;
import Common.Visual.UI_;
@@ -16,10 +17,10 @@ public class GraphTreeCellRenderer extends StyledTreeCellRenderer {
if (o instanceof FileObjectWithMessages) {
FileObjectWithMessages target = (FileObjectWithMessages) o;
setIcon(Utils_.getIcon(target.ImageKey()));
setFont(UI_.getTheme().Fonts.get(target.getFont()));
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(target.getFont()));
} else {
setIcon(null);
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeItalic));
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreeItalic));
}
setForeground(tree.getForeground());
return this;

View File

@@ -1,4 +1,5 @@
package Common.Visual.Trees;
import Common.MainModule_;
import Common.Visual.Fonts.VisualiserFonts;
import Common.Visual.Selectable;
import Common.Visual.UI_;
@@ -17,7 +18,7 @@ public class SelectionTreeCellRenderer extends StyledTreeCellRenderer {
setText(selectable.getSelectionText());
setIcon(selectable.GetSelectionIcon());
} else {
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeItalic));
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreeItalic));
setIcon(null);
}
setForeground(tree.getForeground());

View File

@@ -1,4 +1,5 @@
package Common.Visual.Trees;
import Common.MainModule_;
import Common.Visual.Fonts.VisualiserFonts;
import Common.Visual.Themes.ThemeElement;
import Common.Visual.UI_;
@@ -22,7 +23,7 @@ public class StyledTree extends JTree implements ThemeElement {
super(root_in);
root = root_in;
setOpaque(true);
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreePlain));
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreePlain));
setToggleClickCount(0); //отключение сворачивание разворачивания по двойному клику
//--
if (!getRenderer().equals(TreeRenderers.RendererUndefined))
@@ -86,8 +87,8 @@ public class StyledTree extends JTree implements ThemeElement {
}
@Override
public void applyTheme() {
setBackground(UI_.getTheme().trees_background);
setForeground(UI_.getTheme().foreground);
setBackground(MainModule_.instance.getUI().getTheme().trees_background);
setForeground(MainModule_.instance.getUI().getTheme().foreground);
menu.applyTheme();
}
protected GraphMenu createMenu() {

View File

@@ -1,4 +1,5 @@
package Common.Visual.Trees;
import Common.MainModule_;
import Common.Visual.Themes.ThemeElement;
import Common.Visual.UI_;
@@ -9,7 +10,7 @@ public class StyledTreeCellRenderer extends DefaultTreeCellRenderer implements T
}
@Override
public void applyTheme() {
setBackgroundNonSelectionColor(UI_.getTheme().trees_background);
setBackgroundSelectionColor(UI_.getTheme().selection_background);
setBackgroundNonSelectionColor(MainModule_.instance.getUI().getTheme().trees_background);
setBackgroundSelectionColor(MainModule_.instance.getUI().getTheme().selection_background);
}
}