added a button to toggle the font

This commit is contained in:
Mark Schmale 2011-08-26 16:19:23 +02:00
parent 7e4bba0e31
commit 419d2bbd93
3 changed files with 10 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Before After
Before After

View file

@ -122,6 +122,10 @@ var padeditbar = (function()
else if (cmd == 'save')
{
padsavedrevs.saveNow();
}
else if (cmd == 'tglfont')
{
pad.changeViewOption('useMonospaceFont', !(pad.padOptions.view&&pad.padOptions.view.useMonospaceFont));
}
else
{

View file

@ -76,6 +76,12 @@
<div class="buttonicon" style="background-position:0px -86px"></div>
</a>
</li>
<li class="separator"></li>
<li onClick="window.pad&&pad.editbarClick('tglfont');return false;" >
<a id="monospace" title="toggle the font between monospace and normal">
<div class="buttonicon" style="background-position:0px -436px"></div>
</a>
</li>
</ul>
<ul id="menu_right">