[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:       Marco Martin <notmart () gmail ! com>
Date:       2011-03-27 12:29:52
Message-ID: 20110327122952.74344AC8CA () svn ! kde ! org
[Download RAW message or body]

SVN commit 1226172 by mart:

pressed effect for current category


 M  +3 -1      contents/ui/ComplexComponents/FeedList.qml  
 M  +1 -0      contents/ui/ComplexComponents/ItemsList.qml  
 M             platformcontents/application/tablet/images/listitem.svgz  


--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/contents/ui/ComplexComponents/FeedList.qml \
#1226171:1226172 @@ -46,8 +46,9 @@
             id: feedListHeader
             text: i18n("Show All")
             unread: BookKeeping.totalUnreadCount
+            state: (feedList.feedCategory == "")?"sunken":"normal"
             onClicked: {
-                feedCategory = ""
+                feedList.feedCategory = ""
                 feedList.itemClicked()
             }
             Connections {
@@ -63,6 +64,7 @@
         text: feed_title
         icon: model.icon
         unread: BookKeeping.unreadForSource(feed_url)
+        state: (feedCategory == feed_url)?"sunken":"normal"
 
         onClicked: {
             feedCategory = feed_url
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/contents/ui/ComplexComponents/ItemsList.qml \
#1226171:1226172 @@ -64,6 +64,7 @@
     section.criteria: ViewSection.FullString
     section.delegate: ListItem {
         id: sectionDelegate
+        state: "section"
         Text {
             anchors.verticalCenter: parent.verticalCenter
             anchors.left: sectionDelegate.padding.left


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

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