Skip to content

Commit

Permalink
Added copyright, deleted unused file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbambas committed Apr 24, 2016
1 parent 8174995 commit c7ac591
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 20 deletions.
18 changes: 18 additions & 0 deletions plugins/Readability/data/Call.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2016 Jaroslav Bambas <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */

%1

%2
Expand Down
8 changes: 0 additions & 8 deletions plugins/Readability/data/RM-Type-Controls-Arrow.svg

This file was deleted.

20 changes: 19 additions & 1 deletion plugins/Readability/data/Toolbar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2016 Jaroslav Bambas <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */

function readablilityToolbar(){
renderToolbar();
addListeners();
Expand All @@ -7,7 +25,7 @@ function renderToolbar(){
var toolbar = document.createElement('div');
document.getElementById('container').appendChild(toolbar);

toolbar.innerHTML = '<ul visible="true" id="reader-toolbar" class="toolbar"><li><button id="close-button" class="button close-button"></button></li><ul id="style-dropdown" class="dropdown"><li><button id="style-button" class="dropdown-toggle button style-button"></button></li><li style="top: 48px;" id="reader-popup" class="dropdown-popup"><div id="font-type-buttons"><button id="sans-serif-button" class="sans-serif-button selected"><div class="name">Aa</div><div class="description">Sans-serif</div></button><button id="serif-button" class="serif-button"><div class="name">Aa</div><div class="description">Serif</div></button></div><hr><div id="font-size-buttons"><button id="font-size-minus" class="minus-button"></button><button id="font-size-sample">Aa</button><button id="font-size-plus" class="plus-button"></button></div><hr><div id="color-scheme-buttons"><button id="light-button" class="light-button"><div class="name">Light</div></button><button id="dark-button" class="dark-button"><div class="name">Dark</div></button><button id="sepia-button" class="sepia-button selected"><div class="name">Sepia</div></button></div><div class="dropdown-arrow"></div></li></ul></ul>';
toolbar.innerHTML = '<ul visible="true" id="reader-toolbar" class="toolbar"><li><button id="close-button" class="button close-button"></button></li><ul id="style-dropdown" class="dropdown"><li><button id="style-button" class="dropdown-toggle button style-button"></button></li><li style="top: 48px;" id="reader-popup" class="dropdown-popup"><div id="font-type-buttons"><button id="sans-serif-button" class="sans-serif-button selected"><div class="name">Aa</div><div class="description">Sans-serif</div></button><button id="serif-button" class="serif-button"><div class="name">Aa</div><div class="description">Serif</div></button></div><hr><div id="font-size-buttons"><button id="font-size-minus" class="minus-button"></button><button id="font-size-plus" class="plus-button"></button></div><hr><div id="color-scheme-buttons"><button id="light-button" class="light-button"><div class="name">Light</div></button><button id="dark-button" class="dark-button"><div class="name">Dark</div></button><button id="sepia-button" class="sepia-button selected"><div class="name">Sepia</div></button></div><div class="dropdown-arrow"></div></li></ul></ul>';
}

function addListeners(){
Expand Down
10 changes: 0 additions & 10 deletions plugins/Readability/data/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,6 @@ body.loaded {
background-color: #dadada;
}

/* Only used on Android */
#font-size-sample {
display: none;
}

.minus-button,
.plus-button {
background-color: transparent;
Expand Down Expand Up @@ -498,11 +493,6 @@ body.loaded {

/*======= Toolbar icons =======*/

/* Android-only controls */
.share-button {
display: none;
}

.close-button {
background-image: url(%1);
height: 68px;
Expand Down
1 change: 0 additions & 1 deletion plugins/Readability/readability.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
<file>data/RM-Type-Controls-24x24.png</file>
<file>data/RM-Type-Controls-Arrow.png</file>
<file>data/RM-Delete-24x24.png</file>
<file>data/RM-Type-Controls-Arrow.svg</file>
</qresource>
</RCC>

0 comments on commit c7ac591

Please sign in to comment.