Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static void reloadPreferences( final PageContext pageContext ) {
prefs.put("Layout", TextUtil.getStringProperty( props, "jspwiki.defaultprefs.template.layout", "fluid" ) );
prefs.put("Language", TextUtil.getStringProperty( props, "jspwiki.defaultprefs.template.language", getLocale( ctx ).toString() ) );
prefs.put("SectionEditing", TextUtil.getStringProperty( props, "jspwiki.defaultprefs.template.sectionediting", "true" ) );
prefs.put("Appearance", TextUtil.getStringProperty( props, "jspwiki.defaultprefs.template.appearance", "true" ) );
//prefs.put("Appearance", TextUtil.getStringProperty( props, "jspwiki.defaultprefs.template.appearance", "true" ) );

//editor cookies
prefs.put("autosuggest", TextUtil.getStringProperty( props, "jspwiki.defaultprefs.template.autosuggest", "true" ) );
Expand Down
2 changes: 1 addition & 1 deletion jspwiki-main/src/main/resources/ini/jspwiki.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ jspwiki.use.external.logconfig = true
#
# Set the name of the skin.
# Default value is PlainVanilla
jspwiki.defaultprefs.template.skinname =PlainVanilla
jspwiki.defaultprefs.template.skinname=default

# Set the format of dates
jspwiki.defaultprefs.template.dateformat =dd-MMM-yyyy HH:mm
Expand Down
3 changes: 3 additions & 0 deletions jspwiki-war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,12 @@
<resource>
<directory>${project.build.directory}/generated-sources/wro</directory>
</resource>
<!--this direcotry use to host the dark mode css file, which was moved to
the skins dir on templates/default/dark
<resource>
<directory>src/main/styles/static</directory>
</resource>
-->
</webResources>
</configuration>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion jspwiki-war/src/main/scripts/wiki/Prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Javascript routines to support JSPWiki UserPreferences
});

//FFS: add click-triggers to some preferences: prefLayout, prefOrientation,
form.prefAppearance.onchange = function(event){
form.prefSkin.onchange = function(event){
console.log( this, getValue(this) );

}
Expand Down
10 changes: 0 additions & 10 deletions jspwiki-war/src/main/webapp/templates/default/PreferencesTab.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,6 @@
</label>
</div>

<div class="form-group form-inline ">
<label class="control-label form-col-20" for="prefAppearance"><fmt:message key="prefs.user.appearance"/></label>
<label class="form-control form-switch xpref-appearance">
<!--<fmt:message key="prefs.user.appearance.light"/>-->
<input id="prefAppearance" name="prefAppearance" data-pref="Appearance"
type="checkbox" class="" value="on" ${prefs.Appearance ? 'checked="checked"' : ''} >
<fmt:message key="prefs.user.appearance.dark"/>
</label>
</div>

<c:if test='${not empty skins}'>
<div class="form-group">
<label class="control-label form-col-20" for="prefSkin"><fmt:message key="prefs.user.skin"/></label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ String.I18N.PREFIX = "javascript.";
<link rel="stylesheet" type="text/css" media="screen, projection, print" id="main-stylesheet"
href="<wiki:Link format='url' templatefile='haddock.css'/>" />

<c:if test="${prefs.Appearance }">
<link rel="stylesheet" type="text/css" media="screen, projection, print" id="main-stylesheet"
href="<wiki:Link format='url' templatefile='haddock-dark.css'/>"/>
</c:if>

<wiki:IncludeResources type="stylesheet"/>
<wiki:IncludeResources type="inlinecss" />
Expand Down
Loading
Loading