Disabled theme button on jdk6 output until css is fixed

This commit is contained in:
Willem Cazander 2025-01-30 03:30:22 +01:00
parent 60a7e8b6b1
commit f9499a8c0f
3 changed files with 5 additions and 5 deletions

View file

@ -130,7 +130,7 @@ public class FCDocWriter {
doc.setFrameNavPrintParentParent(true);
doc.setGroupTypeName("summary", "Summary",1);
doc.setGroupTypeName("overview", "Overview",2);
//doc.setMetaStyleSheetThema("jdk6");
doc.setMetaStyleSheetThema("jdk6");
doc.addTreeNodeClassExclude(TDocCakeWord.class);
doc.setFrameNavConceptClass(TDocCakeSlice.class);

View file

@ -560,9 +560,6 @@ public class MaisDocGenerator implements MaisDocContentPrinter {
return;
}
String thema = doc.getMetaStyleSheetThema();
if (thema==null) {
thema = "jdk7";
}
List<String> cssResources = new ArrayList<String>(10);
cssResources.add("org/x4o/maisdoc/theme/base/api-theme.css");
cssResources.add("org/x4o/maisdoc/theme/base/api-html.css");
@ -1023,7 +1020,7 @@ public class MaisDocGenerator implements MaisDocContentPrinter {
}
writer.printTagEnd(Tag.ul);
if (isTop) {
if (isTop && "jdk7".equals(doc.getMetaStyleSheetThema()) && doc.getMetaStyleSheet()==null) {
writer.printTagStart(Tag.ul,MaisDocContentCss.navList);
writer.printTagStart(Tag.li);
writer.printTagStart(Tag.div);

View file

@ -118,6 +118,9 @@ public class MaisDoc {
setFrameNavPrintParentId(false);
}
if (metaStyleSheetThema==null) {
setMetaStyleSheetThema("jdk7");
}
if (noFrameAllTopJS==null) {
noFrameAllTopJS = "\nallClassesLink = document.getElementById(\"allclasses_navbar_top\");\n"+
"if(window==top) {\n\tallClassesLink.style.display = \"block\";\n} else {\n\tallClassesLink.style.display = \"none\";\n}\n";