Commit ddeb914f authored by Leo Iannacone's avatar Leo Iannacone

added file_fontsize preference

parent e33aec65
...@@ -23,6 +23,7 @@ config.web.preferences.autoscroll = true ...@@ -23,6 +23,7 @@ config.web.preferences.autoscroll = true
config.web.preferences.header = true config.web.preferences.header = true
config.web.preferences.sidebar = true config.web.preferences.sidebar = true
config.web.preferences.file_background = true config.web.preferences.file_background = true
config.web.preferences.file_fontsize = 13 // valid values are [13..16]
config.web.preferences.debug = 0 // debug level - 0 means disabled config.web.preferences.debug = 0 // debug level - 0 means disabled
// DO NOT EDIT these ones // DO NOT EDIT these ones
......
...@@ -381,6 +381,7 @@ function Page_Distrubion(socket) ...@@ -381,6 +381,7 @@ function Page_Distrubion(socket)
if (! config.preferences.file_background) { if (! config.preferences.file_background) {
$("#file pre").addClass("no-background") $("#file pre").addClass("no-background")
} }
$("#file pre").css('font-size', config.preferences.file_fontsize)
} }
var select = function() { var select = function() {
......
...@@ -113,15 +113,15 @@ footer { ...@@ -113,15 +113,15 @@ footer {
font-size: 15px; font-size: 15px;
} }
#preferences .debug #debug { #preferences .select select {
width: 58px; width: 68px;
float:left; float:left;
margin-right: 10px; margin-right: 10px;
} }
#preferences .debug label { #preferences .select label {
font-weight: normal; font-weight: normal;
padding-top: 6px; line-height: 35px;
} }
#file .no-background { #file .no-background {
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
<dt>File background</dt><dd>Remove file background if it makes you uncomfortable while reading a log.</dd> <dt>File background</dt><dd>Remove file background if it makes you uncomfortable while reading a log.</dd>
<dt class="debug">Debug level</dt><dd class="debug">Set debug level, please take a look at <a href="/javascripts/debug.js">debug.js</a> for more information. Level <code>0</code> means no debug.</dd> <dt>File font-size</dt><dd>Increase the font size for files content.</dd>
<dt class="debug">Debug level</dt><dd class="debug">Set debug level, please take a look at <a href="/javascripts/debug.js">debug.js</a> for more information. Level <code>0</code> means no debug. Please <strong>DO NOT</strong> set debug if you do not really need it. Debug can affect perfomance.</dd>
</dl> </dl>
</section> </section>
...@@ -54,7 +56,16 @@ ...@@ -54,7 +56,16 @@
<input id="file_background" type="checkbox"> Enable file background <input id="file_background" type="checkbox"> Enable file background
</label> </label>
</div> </div>
<div class="debug"> <div class="select">
<select id="file_fontsize" class="form-control">
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
</select>
<label for="debug">File font-size</label>
</div>
<div class="select debug">
<select id="debug" class="form-control"> <select id="debug" class="form-control">
<option>0</option> <option>0</option>
<option>1</option> <option>1</option>
...@@ -62,7 +73,7 @@ ...@@ -62,7 +73,7 @@
<option>3</option> <option>3</option>
<option>4</option> <option>4</option>
</select> </select>
<label for="debug">Set debug level</label> <label for="debug">Debug level</label>
</div> </div>
</div> </div>
</div> <!-- /#prefernces --> </div> <!-- /#prefernces -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment