Skip to content

Commit

Permalink
Cards: add a simple shadow
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Chapuis <[email protected]>
  • Loading branch information
Tofee committed Mar 18, 2014
1 parent 73da4ca commit 43f3086
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ A copy of this license is included in the file
The following files are distributed under the Apache License, Version 2.0 :
qml/images/glow.png
qml/images/default-app-icon.png
qml/images/card-shadow-tile.png
qml/images/empty-launcher.png
qml/images/wm-corner-bottom-left.png
qml/images/wm-corner-bottom-rightt.png
Expand Down
14 changes: 14 additions & 0 deletions qml/CardView/CardWindowDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ Item {

scale: isCurrent ? 1.0: 0.9

BorderImage {
source: Qt.resolvedUrl("../images/card-shadow-tile.png");
//sourceSize: Qt.size(87,87);

anchors.centerIn: cardWindowWrapper
width: cardWindowWrapper.width+2*30
height: cardWindowWrapper.height+2*30

border { left: 30; top: 30; right: 30; bottom: 30 }
horizontalTileMode: BorderImage.Stretch
verticalTileMode: BorderImage.Stretch

}

Item {
id: cardWindowWrapper

Expand Down
Binary file added qml/images/card-shadow-tile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 43f3086

Please sign in to comment.