From 29fcb0808366349e53368e479e64fd1d03de6941 Mon Sep 17 00:00:00 2001 From: David Norton Date: Fri, 28 Jul 2006 16:49:19 +0000 Subject: [PATCH] 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. --- chrome/chromeFiles/content/scholar/overlay.js | 6 +++++ .../chromeFiles/content/scholar/overlay.xul | 4 ++-- .../skin/default/scholar/overlay.css | 21 ++++++++++++++++++ .../scholar/toolbar-fullscreen-bottom.png | Bin 0 -> 581 bytes .../scholar/toolbar-fullscreen-top.png | Bin 0 -> 585 bytes .../default/scholar/toolbar-fullscreen.png | Bin 520 -> 0 bytes .../skin/default/scholar/toolbar-note-add.png | Bin 0 -> 641 bytes 7 files changed, 29 insertions(+), 2 deletions(-) create mode 100755 chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen-bottom.png create mode 100755 chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen-top.png delete mode 100755 chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen.png create mode 100755 chrome/chromeFiles/skin/default/scholar/toolbar-note-add.png diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js index 066dfface..ebbc1779d 100644 --- 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 index f26a12b13..f38bf8d2d 100644 --- a/chrome/chromeFiles/content/scholar/overlay.xul +++ b/chrome/chromeFiles/content/scholar/overlay.xul @@ -81,7 +81,7 @@ - +