Skip to content

Commit

Permalink
[RequestContactDevRectangle.qml] Omit deleted `../scripts/ExternalLin…
Browse files Browse the repository at this point in the history
…ks.js`
  • Loading branch information
Olf0 authored Oct 15, 2023
1 parent 340bc4a commit b83de12
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions qml/components/RequestContactDevRectangle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import QtQuick 2.0
import Sailfish.Silica 1.0

import "../scripts/ExternalLinks.js" as ExternalLinks

Item {

property Item flickable
Expand Down Expand Up @@ -38,14 +36,14 @@ Item {
leftMargin: Theme.paddingSmall
verticalCenter: parent.verticalCenter
}
width: parent.width - mailButton.width - 3*Theme.paddingSmall
width: parent.width - githubButton.width - 3*Theme.paddingSmall
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
text: qsTr("Let me know if you're missing some of your favorite comics in this list")
text: qsTr("Please report if you like to see some additional comic(s)")
font.pixelSize: Theme.fontSizeExtraSmall
}

IconButton {
id: mailButton
id: githubButton
height: Theme.iconSizeMedium
width: Theme.iconSizeMedium
anchors {
Expand All @@ -55,20 +53,15 @@ Item {
verticalCenter: parent.verticalCenter
}
icon {
source: "image://theme/icon-m-mail"
source: Theme.colorScheme == 0 ? "qrc:/icon/light/github" : "qrc:/icon/dark/github"
height: Theme.iconSizeMedium
fillMode: Image.PreserveAspectFit
}
}

MouseArea {
anchors.fill: parent
onClicked: {
var mailRequestMail = constants.maintainerMail
var mailRequestSubject = constants.mailSubjectHeader
var mailRequestMessage = constants.mailBodyHeader + "Please add these comics to the app: "
ExternalLinks.mail(mailRequestMail, mailRequestSubject, mailRequestMessage)
}
onClicked: Qt.openUrlExternally(constants.issuesGithub)
}
}
}

0 comments on commit b83de12

Please sign in to comment.