[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/declarative-applets/replacements/news/package
From:       Sebastian Kügler <sebas () kde ! org>
Date:       2011-04-24 2:13:08
Message-ID: 20110424021308.46870AC85D () svn ! kde ! org
[Download RAW message or body]

SVN commit 1228970 by sebas:

try to style the post view

This already gets us a transparant background, but not our text color.
PlasmaCore.Theme.styleSheet is undefined. :/

 M  +6 -5      contents/ui/ComplexComponents/ItemsList.qml  
 M  +2 -1      platformcontents/meego/generic/ui/MeegoComponents/PostsList.qml  


--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/contents/ui/ComplexComponents/ItemsList.qml \
#1228969:1228970 @@ -82,12 +82,13 @@
 
         onClicked: {
             BookKeeping.setArticleRead(link, feed_url);
-            articleRead = true
+            articleRead = true;
 
-            list.currentIndex = index
-            bodyView.articleUrl = link
-            bodyView.articleHtml = "<html><head><style type=\"text/css\">" + \
                theme.stylesheet + "</style></head><body>" + description + \
                "</body></html>"
-            list.itemClicked()
+            list.currentIndex = index;
+            bodyView.articleUrl = link;
+            var parsedHtml = "<html><head><style type=\"text/css\">" + \
theme.styleSheet + "</style></head><body>YAAAAHOOOOO!" + description + \
"</body></html>"; +            bodyView.articleHtml = parsedHtml;
+            list.itemClicked();
         }
     }
 }
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/platformcontents/meego/generic/ui/MeegoComponents/PostsList.qml \
#1228969:1228970 @@ -54,6 +54,7 @@
             }
         }
     }
+
     delegate: BasicListItem {
         title: model.title
         subtitle: Utils.date(model.time);
@@ -62,7 +63,7 @@
             BookKeeping.setArticleRead(link, feed_url);
             opacity = 0.5;
 
-            currentBody = "<html><head><style type=\"text/css\">" + theme.stylesheet \
+ "</style></head><body>" + model.description + "</body></html>"; +            \
currentBody = "<html><head><style type=\"text/css\"> StART " + theme.styleSheet + \
"</style></head><body>" + model.description + " END </body></html>";  currentTitle = \
model.title  currentUrl = model.link
             mainWindow.nextPage(browserPage);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic