www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 29fcb0808366349e53368e479e64fd1d03de6941
parent 82106afc955bf92ce87813669ac721ee8f22edb7
Author: David Norton <david@nortoncrew.com>
Date:   Fri, 28 Jul 2006 16:49:19 +0000

The fullscreen button is now an image. It looks different depending on whether the pane is on top or bottom, and changes background when activated.

Diffstat:
Mchrome/chromeFiles/content/scholar/overlay.js | 6++++++
Mchrome/chromeFiles/content/scholar/overlay.xul | 4++--
Mchrome/chromeFiles/skin/default/scholar/overlay.css | 21+++++++++++++++++++++
Achrome/chromeFiles/skin/default/scholar/toolbar-fullscreen-bottom.png | 0
Achrome/chromeFiles/skin/default/scholar/toolbar-fullscreen-top.png | 0
Dchrome/chromeFiles/skin/default/scholar/toolbar-fullscreen.png | 0
Achrome/chromeFiles/skin/default/scholar/toolbar-note-add.png | 0
7 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js @@ -56,6 +56,8 @@ var ScholarPane = new function() newSplitter.setAttribute('resizeafter','closest'); appContent.removeChild(oldSplitter); appContent.insertBefore(newSplitter, document.getElementById('content')); + + document.getElementById('tb-fullscreen').setAttribute('scholartop','true'); } //Initialize collections view @@ -100,7 +102,10 @@ var ScholarPane = new function() document.getElementById('scholar-splitter').setAttribute('collapsed',!visible); if(!visible) + { document.getElementById('content').setAttribute('collapsed', false); + document.getElementById('tb-fullscreen').setAttribute('fullscreenmode', false); + } } function fullScreen() @@ -108,6 +113,7 @@ var ScholarPane = new function() var visible = document.getElementById('content').getAttribute('collapsed') == 'true'; document.getElementById('content').setAttribute('collapsed', !visible); document.getElementById('scholar-splitter').setAttribute('collapsed', !visible); + document.getElementById('tb-fullscreen').setAttribute('fullscreenmode', !visible); } /* diff --git a/chrome/chromeFiles/content/scholar/overlay.xul b/chrome/chromeFiles/content/scholar/overlay.xul @@ -81,7 +81,7 @@ <toolbarbutton id="tb-add" tooltiptext="&toolbar.newItem.label;" type="menu"> <menupopup/> </toolbarbutton> - <toolbarbutton label="New Note" oncommand="ScholarPane.newNote();"/> + <toolbarbutton id="tb-note-add" tooltiptext="New Standalone Note" oncommand="ScholarPane.newNote();"/> <spacer flex="1"/> <label value="&toolbar.search.label;" control="tb-search"/> <textbox id="tb-search" type="timed" timeout="250" command="cmd_scholar_search"/> @@ -152,7 +152,7 @@ <splitter id="scholar-view-splitter" resizebefore="closest" resizeafter="closest"/> <vbox> <toolbar align="right"> - <toolbarbutton id="tb-fullscreen" label="Toggle Fullscreen" oncommand="ScholarPane.fullScreen();"/> + <toolbarbutton id="tb-fullscreen" tooltiptext="Toggle Fullscreen Mode" oncommand="ScholarPane.fullScreen();"/> <toolbarbutton class="tabs-closebutton" oncommand="ScholarPane.toggleDisplay()"/> </toolbar> <groupbox flex="1"> diff --git a/chrome/chromeFiles/skin/default/scholar/overlay.css b/chrome/chromeFiles/skin/default/scholar/overlay.css @@ -84,11 +84,32 @@ list-style-image: url('chrome://scholar/skin/toolbar-item-add.png'); } +#tb-note-add +{ + list-style-image: url('chrome://scholar/skin/toolbar-note-add.png'); +} + #tb-item-menu { list-style-image: url('chrome://scholar/skin/cog.png'); } +#tb-fullscreen +{ + list-style-image: url('chrome://scholar/skin/toolbar-fullscreen-bottom.png'); +} + +#tb-fullscreen[scholartop="true"] +{ + list-style-image: url('chrome://scholar/skin/toolbar-fullscreen-top.png'); +} + +#tb-fullscreen[fullscreenmode="true"] +{ + background: #666666; + -moz-border-radius: 6px; +} + #tb-search { width: 150px; diff --git a/chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen-bottom.png b/chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen-bottom.png Binary files differ. diff --git a/chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen-top.png b/chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen-top.png Binary files differ. diff --git a/chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen.png b/chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen.png Binary files differ. diff --git a/chrome/chromeFiles/skin/default/scholar/toolbar-note-add.png b/chrome/chromeFiles/skin/default/scholar/toolbar-note-add.png Binary files differ.