fixed new tab theme
This commit is contained in:
parent
0b23d2424a
commit
676b3bbb3a
@ -351,6 +351,7 @@ public class FilePanel extends JPanel {
|
||||
if (currentMode != null) {
|
||||
tab.setViewMode(currentMode);
|
||||
}
|
||||
applyConfiguredAppearance(tab);
|
||||
|
||||
String tabTitle = getTabTitle(path);
|
||||
|
||||
@ -397,6 +398,7 @@ public class FilePanel extends JPanel {
|
||||
if (mode != null) {
|
||||
tab.setViewMode(mode);
|
||||
}
|
||||
applyConfiguredAppearance(tab);
|
||||
|
||||
String tabTitle = getTabTitle(path);
|
||||
tabbedPane.addTab(tabTitle, tab);
|
||||
@ -1019,4 +1021,28 @@ public class FilePanel extends JPanel {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void applyConfiguredAppearance(FilePanelTab tab) {
|
||||
if (tab == null || appConfig == null) return;
|
||||
|
||||
Font font = appConfig.getGlobalFont();
|
||||
if (font != null) {
|
||||
tab.applyGlobalFont(font);
|
||||
}
|
||||
|
||||
Color bg = appConfig.getBackgroundColor();
|
||||
if (bg != null) {
|
||||
tab.applyBackgroundColor(bg);
|
||||
}
|
||||
|
||||
Color selection = appConfig.getSelectionColor();
|
||||
if (selection != null) {
|
||||
tab.applySelectionColor(selection);
|
||||
}
|
||||
|
||||
Color marked = appConfig.getMarkedColor();
|
||||
if (marked != null) {
|
||||
tab.applyMarkedColor(marked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user