mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
qupzilla patched for Chakra/kde look
This commit is contained in:
parent
31c5a47e7f
commit
5baf544b68
@ -2,18 +2,32 @@
|
||||
|
||||
pkgname=qupzilla
|
||||
pkgver=1.1.5
|
||||
pkgrel=3
|
||||
commit=7536da2
|
||||
pkgrel=4
|
||||
commit=05d6622
|
||||
pkgdesc="A very fast open source browser based on WebKit core"
|
||||
url="http://www.qupzilla.com"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL3')
|
||||
depends=('qt')
|
||||
source=("https://www.github.com/nowrep/QupZilla/tarball/master/nowrep-QupZilla-${commit}.tar.gz")
|
||||
md5sums=('17b8823cb604b7a38a02400d03c16efc')
|
||||
source=("https://www.github.com/nowrep/QupZilla/tarball/master/nowrep-QupZilla-${commit}.tar.gz"
|
||||
'searchenginesmanager.diff'
|
||||
'speeddial.diff'
|
||||
'preferences.diff'
|
||||
'qupzilla.diff'
|
||||
'start-white.png')
|
||||
md5sums=('d2d4460b44f0bb07e38b5ea1a8c54b36'
|
||||
'd4ada584b731f392380570c002f4d13d'
|
||||
'6ae6712cb6960a3132bb7176b22d1a0f'
|
||||
'945f9530f75f4c5e6097459d7f2ee918'
|
||||
'8e495fa90d5043fb4d0d6e1cac097290'
|
||||
'fc705d7aba952361a626a2c79726bbfa')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/nowrep-QupZilla-${commit}/"
|
||||
patch -Np0 -i "${srcdir}/searchenginesmanager.diff"
|
||||
patch -Np0 -i "${srcdir}/speeddial.diff"
|
||||
patch -Np0 -i "${srcdir}/preferences.diff"
|
||||
patch -Np0 -i "${srcdir}/qupzilla.diff"
|
||||
export USE_WEBGL="true"
|
||||
export KDE="true"
|
||||
qmake QupZilla.pro
|
||||
@ -22,5 +36,7 @@ build() {
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/nowrep-QupZilla-${commit}/"
|
||||
mkdir -p ${pkgdir}/usr/share/icons
|
||||
install -m 644 -p ${srcdir}/start-white.png ${pkgdir}/usr/share/icons/
|
||||
make INSTALL_ROOT=$pkgdir install
|
||||
}
|
25
qupzilla/preferences.diff
Normal file
25
qupzilla/preferences.diff
Normal file
@ -0,0 +1,25 @@
|
||||
--- src/preferences/ppreferences.cpp 2012-02-02 17:26:15.000000000 -0500
|
||||
+++ src/preferences/preferences.cpp 2012-02-03 18:12:13.456035828 -0500
|
||||
@@ -88,11 +88,11 @@
|
||||
Settings settings;
|
||||
//GENERAL URLs
|
||||
settings.beginGroup("Web-URL-Settings");
|
||||
- m_homepage = settings.value("homepage", "qupzilla:start").toString();
|
||||
+ m_homepage = settings.value("homepage", "qupzilla:speeddial").toString();
|
||||
m_newTabUrl = settings.value("newTabUrl", "qupzilla:speeddial").toString();
|
||||
ui->homepage->setText(m_homepage);
|
||||
ui->newTabUrl->setText(m_newTabUrl);
|
||||
- int afterLaunch = settings.value("afterLaunch", 1).toInt();
|
||||
+ int afterLaunch = settings.value("afterLaunch", 2).toInt();
|
||||
settings.endGroup();
|
||||
ui->afterLaunch->setCurrentIndex(afterLaunch);
|
||||
ui->checkUpdates->setChecked(settings.value("Web-Browser-Settings/CheckUpdates", DEFAULT_CHECK_UPDATES).toBool());
|
||||
@@ -143,7 +143,7 @@
|
||||
//APPEREANCE
|
||||
m_themesManager = new ThemeManager(ui->themesWidget);
|
||||
settings.beginGroup("Browser-View-Settings");
|
||||
- ui->showStatusbar->setChecked(settings.value("showStatusBar", true).toBool());
|
||||
+ ui->showStatusbar->setChecked(settings.value("showStatusBar", false).toBool());
|
||||
ui->showBookmarksToolbar->setChecked(p_QupZilla->bookmarksToolbar()->isVisible());
|
||||
ui->showNavigationToolbar->setChecked(p_QupZilla->navigationBar()->isVisible());
|
||||
ui->showHome->setChecked(settings.value("showHomeButton", true).toBool());
|
29
qupzilla/qupzilla.diff
Normal file
29
qupzilla/qupzilla.diff
Normal file
@ -0,0 +1,29 @@
|
||||
--- src/app/qupzilla.cpp 2012-02-02 17:26:15.000000000 -0500
|
||||
+++ src/app/qupzilla.cpp 2012-02-03 19:13:47.872107140 -0500
|
||||
@@ -122,7 +122,7 @@
|
||||
|
||||
Settings settings;
|
||||
settings.beginGroup("Web-URL-Settings");
|
||||
- int afterLaunch = settings.value("afterLaunch", 1).toInt();
|
||||
+ int afterLaunch = settings.value("afterLaunch", 2).toInt();
|
||||
settings.endGroup();
|
||||
settings.beginGroup("SessionRestore");
|
||||
bool startingAfterCrash = settings.value("isCrashed", false).toBool();
|
||||
@@ -531,7 +531,7 @@
|
||||
|
||||
//Url settings
|
||||
settings.beginGroup("Web-URL-Settings");
|
||||
- m_homepage = settings.value("homepage", "qupzilla:start").toUrl();
|
||||
+ m_homepage = settings.value("homepage", "qupzilla:speeddial").toUrl();
|
||||
m_newtab = settings.value("newTabUrl", "qupzilla:speeddial").toUrl();
|
||||
settings.endGroup();
|
||||
|
||||
@@ -546,7 +546,7 @@
|
||||
bool showBackForwardIcons = settings.value("showBackForwardButtons", true).toBool();
|
||||
bool showBookmarksToolbar = settings.value("showBookmarksToolbar", true).toBool();
|
||||
bool showNavigationToolbar = settings.value("showNavigationToolbar", true).toBool();
|
||||
- bool showMenuBar = settings.value("showMenubar", true).toBool();
|
||||
+ bool showMenuBar = settings.value("showMenubar", false).toBool();
|
||||
bool showAddTab = settings.value("showAddTabButton", false).toBool();
|
||||
bool makeTransparent = settings.value("useTransparentBackground", false).toBool();
|
||||
m_sideBarWidth = settings.value("SideBarWidth", 250).toInt();
|
37
qupzilla/searchenginesmanager.diff
Normal file
37
qupzilla/searchenginesmanager.diff
Normal file
@ -0,0 +1,37 @@
|
||||
--- src/opensearch/searchenginesmanager.cpp 2012-02-02 18:04:29.000000000 -0500
|
||||
+++ src/opensearch/searchenginesmanager.cpp 2012-02-02 18:05:15.050820457 -0500
|
||||
@@ -43,7 +43,7 @@
|
||||
{
|
||||
Settings settings;
|
||||
settings.beginGroup("SearchEngines");
|
||||
- m_startingEngineName = settings.value("activeEngine", "Google").toString();
|
||||
+ m_startingEngineName = settings.value("activeEngine", "DuckDuckGo").toString();
|
||||
settings.endGroup();
|
||||
|
||||
connect(this, SIGNAL(enginesChanged()), this, SLOT(scheduleSave()));
|
||||
@@ -104,6 +104,12 @@
|
||||
|
||||
void SearchEnginesManager::restoreDefaults()
|
||||
{
|
||||
+ Engine duck;
|
||||
+ duck.name = "DuckDuckGo";
|
||||
+ duck.icon = QIcon(":/icons/menu/duck.png");
|
||||
+ duck.url = "https://duckduckgo.com/?q=%s";
|
||||
+ duck.shortcut = "d";
|
||||
+
|
||||
Engine google;
|
||||
google.name = "Google";
|
||||
google.icon = QIcon(":icons/menu/google.png");
|
||||
@@ -125,12 +131,6 @@
|
||||
yt.shortcut = "yt";
|
||||
yt.suggestionsUrl = "http://suggestqueries.google.com/complete/search?ds=yt&output=firefox&q=%s";
|
||||
|
||||
- Engine duck;
|
||||
- duck.name = "DuckDuckGo";
|
||||
- duck.icon = QIcon(":/icons/menu/duck.png");
|
||||
- duck.url = "https://duckduckgo.com/?q=%s";
|
||||
- duck.shortcut = "d";
|
||||
-
|
||||
addEngine(google, false);
|
||||
addEngine(wiki, false);
|
||||
addEngine(yt, false);
|
28
qupzilla/speeddial.diff
Normal file
28
qupzilla/speeddial.diff
Normal file
@ -0,0 +1,28 @@
|
||||
--- src/plugins/speeddial.cpp 2012-02-02 17:26:15.000000000 -0500
|
||||
+++ src/plugins/speeddial.cpp 2012-02-03 14:55:33.231695258 -0500
|
||||
@@ -36,18 +36,17 @@
|
||||
Settings settings;
|
||||
settings.beginGroup("SpeedDial");
|
||||
m_allPages = settings.value("pages", "").toString();
|
||||
- m_backgroundImage = settings.value("background", "").toString();
|
||||
- m_backgroundImageSize = settings.value("backsize", "auto").toString();
|
||||
+ m_backgroundImage = settings.value("background", "file:///usr/share/icons/start-white.png").toString();
|
||||
+ m_backgroundImageSize = settings.value("backsize", "contain").toString();
|
||||
m_maxPagesInRow = settings.value("pagesrow", 4).toInt();
|
||||
- m_sizeOfSpeedDials = settings.value("sdsize", 231).toInt();
|
||||
+ m_sizeOfSpeedDials = settings.value("sdsize", 150).toInt();
|
||||
settings.endGroup();
|
||||
|
||||
if (m_allPages.isEmpty()) {
|
||||
- m_allPages = "url:\"http://www.google.com\"|title:\"Google\";"
|
||||
- "url:\"http://www.qupzilla.com\"|title:\"QupZilla\";"
|
||||
- "url:\"http://blog.qupzilla.com\"|title:\"QupZilla Blog\";"
|
||||
- "url:\"https://github.com/nowrep/QupZilla\"|title:\"QupZilla GitHub\";"
|
||||
- "url:\"http://facebook.com\"|title:\"Facebook\";";
|
||||
+ m_allPages = "url:\"http://www.chakra-linux.org/\"|title:\"The Chakra Project - Welcome\";"
|
||||
+ "url:\"http://www.chakra-project.org/bbs/\"|title:\"Forums\";"
|
||||
+ "url:\"http://webchat.freenode.net/?channels=chakra/\"|title:\"IRC\";"
|
||||
+ "url:\"http://www.youtube.com/html5\"|title:\"YouTube-html5\";";
|
||||
}
|
||||
|
||||
m_thumbnailsDir = mApp->getActiveProfilPath() + "thumbnails/";
|
BIN
qupzilla/start-white.png
Normal file
BIN
qupzilla/start-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue
Block a user