forked from fuchsmich/smpc
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make amount of tiles on mainpage even by adding About tile (thanks Fu…
…chsmich)
- Loading branch information
Showing
11 changed files
with
335 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
|
||
BackgroundItem { | ||
id: gridItem | ||
property alias text: itemLabel.text | ||
property alias iconSource: itemIcon.source | ||
width: Theme.itemSizeHuge | ||
height: width | ||
Rectangle { | ||
anchors.fill: parent | ||
anchors.margins: Theme.paddingSmall | ||
color: Theme.rgba( | ||
Theme.highlightBackgroundColor, | ||
Theme.highlightBackgroundOpacity) | ||
} | ||
Column { | ||
anchors.centerIn: parent | ||
Image { | ||
id: itemIcon | ||
//source: icon | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
} | ||
Label { | ||
id: itemLabel | ||
anchors { | ||
horizontalCenter: parent.horizontalCenter | ||
} | ||
font.pixelSize: Theme.fontSizeMedium | ||
width: gridItem.width - (2 * Theme.paddingSmall) | ||
horizontalAlignment: "AlignHCenter" | ||
scale: paintedWidth > width ? (width / paintedWidth) : 1 | ||
//text: name | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
903c75e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you.
ATM I've got very little spare time for this project, sorry. But I'll be back. 🤖