From 919cb37d3192eeaeceeb3971650ec46fdd6bbaaa Mon Sep 17 00:00:00 2001 From: megabigbug Date: Sat, 17 Oct 2009 23:20:14 +0200 Subject: another homepage style --- data/CMakeLists.txt | 2 +- data/bg2.png | Bin 0 -> 1898 bytes data/button.png | Bin 0 -> 740 bytes data/home.html | 23 +++++++++++++++-------- data/tile.gif | Bin 514 -> 304 bytes src/homepage.cpp | 8 ++++---- 6 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 data/bg2.png create mode 100644 data/button.png diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 34676cf0..bf01a44d 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,5 +1,5 @@ INSTALL( - FILES bg.png bot.gif busywidget.gif closed.png loading.mng open.png tile.gif top.png webkit-icon.png category.png + FILES bg2.png bg.png bot.gif busywidget.gif closed.png loading.mng open.png tile.gif top.png webkit-icon.png category.png button.png DESTINATION ${DATA_INSTALL_DIR}/rekonq/pics ) diff --git a/data/bg2.png b/data/bg2.png new file mode 100644 index 00000000..1ded2690 Binary files /dev/null and b/data/bg2.png differ diff --git a/data/button.png b/data/button.png new file mode 100644 index 00000000..22ef7643 Binary files /dev/null and b/data/button.png differ diff --git a/data/home.html b/data/home.html index 8b5cf296..5038ace8 100644 --- a/data/home.html +++ b/data/home.html @@ -66,9 +66,12 @@ width: 100%; } #navigation { -margin-top: 1%; -margin-bottom: 4%; +display: inline-block; +margin-top: 2%; +margin-bottom: 3%; text-align: center; +border-width: 5px; +-webkit-border-image: url(%2/bg2.png) 12 12 12 12 stretch stretch; } #content { @@ -81,24 +84,28 @@ margin: 2%; .link{ display: inline-block; -padding: 0 2%; } .link img{ -float:left; +vertical-align: middle; +margin-right: 5px; } .link a{ color: black; text-decoration:none; -font: normal bold 1.2em/2.5em sans-serif; -vertical-align: middle; +font: normal 1em sans-serif; } -#navigation .link:not(.current):not(.link:hover){ --webkit-opacity: 0.3; +.current{ +border-width: 6px; +-webkit-border-image: url(%2/selected.png) 6 stretch stretch; } +#navigation .link:not(.current){ +margin-right: 4px; +margin-left: 4px; +} /* -------------------------------------------------------- */ /* Thumbnail class */ diff --git a/data/tile.gif b/data/tile.gif index 5f739e49..32e06fff 100644 Binary files a/data/tile.gif and b/data/tile.gif differ diff --git a/src/homepage.cpp b/src/homepage.cpp index 4735315a..79345556 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -165,7 +165,7 @@ QString HomePage::homePageMenu(KUrl currentUrl) if(currentUrl == "rekonq:favorites" || currentUrl == "rekonq:home") menu += " current"; menu += "\">"; - menu += "iconPath("emblem-favorite", KIconLoader::Desktop) + "\" />"; + menu += "iconPath("emblem-favorite", KIconLoader::Desktop || KIconLoader::SizeSmall) + "\" />"; menu += i18n("Favorites"); menu += ""; @@ -173,7 +173,7 @@ QString HomePage::homePageMenu(KUrl currentUrl) if(currentUrl == "rekonq:allTabs") menu += " current"; menu += "\">"; - menu += "iconPath("tab-duplicate", KIconLoader::Desktop) + "\" />"; + menu += "iconPath("tab-duplicate", KIconLoader::Desktop || KIconLoader::SizeSmall) + "\" />"; menu += i18n("All Tabs"); menu += ""; @@ -181,7 +181,7 @@ QString HomePage::homePageMenu(KUrl currentUrl) if(currentUrl == "rekonq:bookmarks") menu += " current"; menu += "\">"; - menu += "iconPath("bookmarks", KIconLoader::Desktop) + "\" />"; + menu += "iconPath("bookmarks", KIconLoader::Desktop || KIconLoader::SizeSmall) + "\" />"; menu += i18n("Bookmarks"); menu += ""; @@ -189,7 +189,7 @@ QString HomePage::homePageMenu(KUrl currentUrl) if(currentUrl == "rekonq:history") menu += " current"; menu += "\">"; - menu += "iconPath("view-history", KIconLoader::Desktop) + "\" />"; + menu += "iconPath("view-history", KIconLoader::Desktop || KIconLoader::SizeSmall) + "\" />"; menu += i18n("History"); menu += ""; -- cgit v1.2.1