From 2f8d97336681441b6175a625522fbc26cf85f317 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 16 Oct 2015 12:52:10 -0700 Subject: [PATCH] Restore native window chrome // FREEBIE --- background.html | 1 - js/panel_controller.js | 2 -- js/views/inbox_view.js | 4 ---- stylesheets/_global.scss | 4 ++-- stylesheets/manifest.css | 4 ++-- 5 files changed, 4 insertions(+), 11 deletions(-) diff --git a/background.html b/background.html index 4b7c78537..a4fee62b9 100644 --- a/background.html +++ b/background.html @@ -10,7 +10,6 @@
  • Submit debug log
  • - Signal
    diff --git a/js/panel_controller.js b/js/panel_controller.js index af2c94579..aa5145c82 100644 --- a/js/panel_controller.js +++ b/js/panel_controller.js @@ -63,8 +63,6 @@ extension.windows.open({ id: 'inbox', url: 'index.html', - type: 'panel', - frame: 'none', focused: true, width: 580, height: 440, diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 01aa7d815..dc8b9ed1a 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -119,10 +119,6 @@ extension.windows.beforeUnload(function() { this.inboxListView.stopListening(); }.bind(this)); - - new Whisper.WindowControlsView({ - appWindow: options.appWindow - }).$el.appendTo(this.$('#header')); }, events: { 'click': 'closeMenu', diff --git a/stylesheets/_global.scss b/stylesheets/_global.scss index 64dc52f08..158343f0a 100644 --- a/stylesheets/_global.scss +++ b/stylesheets/_global.scss @@ -85,7 +85,7 @@ button.back { .menu { position: relative; - float: left; + float: right; height: 36px; padding-right: 8px; @@ -101,7 +101,7 @@ button.back { z-index: 1; top: 100%; - left: 0; + right: 0; margin: 0; padding: 0; border: solid 1px $blue; diff --git a/stylesheets/manifest.css b/stylesheets/manifest.css index 8fed1d80b..60a910ed8 100644 --- a/stylesheets/manifest.css +++ b/stylesheets/manifest.css @@ -84,7 +84,7 @@ button.back { .menu { position: relative; - float: left; + float: right; height: 36px; padding-right: 8px; } .menu .hamburger { @@ -97,7 +97,7 @@ button.back { color: #454545; z-index: 1; top: 100%; - left: 0; + right: 0; margin: 0; padding: 0; border: solid 1px #2090ea;