diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-08 02:38:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-10 22:15:10 +0200 |
commit | 667bd0a8450835f9b95b8ce83fb4f04a7df6d4ca (patch) | |
tree | a202cb184a88313c24c407d94d5c3147d144a57e /data | |
parent | rekonq 0.2.56 with session management (recover on crash) (diff) | |
download | rekonq-667bd0a8450835f9b95b8ce83fb4f04a7df6d4ca.tar.xz |
HUGE HUGE HUGE COMMIT!
First implementation of "rekonq home page"
- Added icons && htmls for it
- fixed pics places && CMakeLists.txt
- Added a HomePage class to create the "rekonq home Page"
- Modified setting to load on new tab start
1) rekonq home page (default)
2) blank page
3) an url (to set)
- removed home page button
- fixed WebPage && loadUrl slot to load "home:" scheme
- Added a toolbar method in BookmarksProvider to load bookmarks in the homepage
The page needs a lot of love, but I think this is a really good starting point for.
Hope you like it :)
Diffstat (limited to 'data')
-rw-r--r-- | data/CMakeLists.txt | 9 | ||||
-rw-r--r-- | data/closed.png | bin | 0 -> 118 bytes | |||
-rw-r--r-- | data/home.html | 116 | ||||
-rw-r--r-- | data/open.png | bin | 0 -> 120 bytes |
4 files changed, 118 insertions, 7 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 93b9f83c..062bc138 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,5 +1,5 @@ INSTALL( - FILES loading.mng + FILES closed.png loading.mng open.png webkit-icon.png DESTINATION ${DATA_INSTALL_DIR}/rekonq/pics ) @@ -14,11 +14,6 @@ INSTALL( ) INSTALL( - FILES notfound.html + FILES notfound.html home.html DESTINATION ${DATA_INSTALL_DIR}/rekonq/htmls ) - -INSTALL( - FILES webkit-icon.png - DESTINATION ${DATA_INSTALL_DIR}/rekonq/pics -) diff --git a/data/closed.png b/data/closed.png Binary files differnew file mode 100644 index 00000000..2b1bf01e --- /dev/null +++ b/data/closed.png diff --git a/data/home.html b/data/home.html new file mode 100644 index 00000000..d1a200cf --- /dev/null +++ b/data/home.html @@ -0,0 +1,116 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + +<head> +<title>rekonq home page</title> +<style type="text/css"> + +html{ +margin:0; +padding:0; +} + +body{ +margin:0; +padding:0; +font-family: sans-serif; +font-size: 100%; +} + +/* ------------------------------------------------------- */ + +div#container{ +margin: 0; +} + +div#header{ +margin: 0; +padding: 2px; +background-color:#00f; +color: #ff0; +text-align: center; +} + +div#footer{ +background-color:#00f; +color: #ff0; +text-align: center; +} + +/* ------------------------------------------------------- */ + +h2{ +color: #00f; +} + +td{ +padding: 2em; +vertical-align: top; +} + +td.bookmarks{ + border-left: 2px solid #0000FF; + border-top-width: 0px; + border-bottom-width: 0px; +} + +.indent { +margin-left: 2em; +} +</style> + +<!-- =================================================================================== --> + +<script type="text/javascript"> +function ToggleVisibility(image, element) +{ + // Find the image. + var image = document.getElementById(image) + + // Find the element to hide/unhide. + var element = document.getElementById(element) + + // Check the element's current state. + if (element.style.display == "none") + { + // If hidden, unhide it. + element.style.display = "block"; + image.src = "%1open.png"; + } + else + { + // If not hidden, hide it. + element.style.display = "none"; + image.src = "%1closed.png"; + } +} +</script> + +<!-- =================================================================================== --> + +</head> + +<body> + +<div id="header"> +<h1>rekonq home page</h1> +</div> + +<table width="100%"> +<tr> +<td width="40%"><h2>History</h2></td> +<td width="60%"><h2>Bookmarks</h2></td> +</tr> + +<tr> +<td>%2</td> +<td class="bookmarks">%3</td> +</tr> +</table> + +<div id="footer"> +rekonq, lightweight Web Browser for KDE based on Webkit. +</div> + +</body> +</html> diff --git a/data/open.png b/data/open.png Binary files differnew file mode 100644 index 00000000..fee6f3fb --- /dev/null +++ b/data/open.png |