mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Use native QML icon support
This commit is contained in:
@@ -129,14 +129,9 @@ CenteredGridView {
|
|||||||
implicitWidth: 85
|
implicitWidth: 85
|
||||||
implicitHeight: 85
|
implicitHeight: 85
|
||||||
|
|
||||||
Image {
|
icon.source: "qrc:/res/play_arrow_FILL1_wght700_GRAD200_opsz48.svg"
|
||||||
source: "qrc:/res/play_arrow_FILL1_wght700_GRAD200_opsz48.svg"
|
icon.width: 75
|
||||||
anchors.centerIn: parent
|
icon.height: 75
|
||||||
sourceSize {
|
|
||||||
width: 75
|
|
||||||
height: 75
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
launchOrResumeSelectedApp(true)
|
launchOrResumeSelectedApp(true)
|
||||||
@@ -157,14 +152,9 @@ CenteredGridView {
|
|||||||
implicitWidth: 85
|
implicitWidth: 85
|
||||||
implicitHeight: 85
|
implicitHeight: 85
|
||||||
|
|
||||||
Image {
|
icon.source: "qrc:/res/stop_FILL1_wght700_GRAD200_opsz48.svg"
|
||||||
source: "qrc:/res/stop_FILL1_wght700_GRAD200_opsz48.svg"
|
icon.width: 75
|
||||||
anchors.centerIn: parent
|
icon.height: 75
|
||||||
sourceSize {
|
|
||||||
width: 75
|
|
||||||
height: 75
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
doQuitGame()
|
doQuitGame()
|
||||||
|
|||||||
@@ -7,17 +7,9 @@ ToolButton {
|
|||||||
|
|
||||||
activeFocusOnTab: true
|
activeFocusOnTab: true
|
||||||
|
|
||||||
// FIXME: We're using an Image here rather than icon.source because
|
icon.source: iconSource
|
||||||
// icons don't work on Qt 5.9 LTS.
|
icon.width: background.width * 1.10
|
||||||
Image {
|
icon.height: background.height * 1.10
|
||||||
id: image
|
|
||||||
source: iconSource
|
|
||||||
anchors.centerIn: parent.background
|
|
||||||
sourceSize {
|
|
||||||
width: parent.background.width * 1.10
|
|
||||||
height: parent.background.height * 1.10
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// This determines the size of the Material highlight. We increase it
|
// This determines the size of the Material highlight. We increase it
|
||||||
// from the default because we use larger than normal icons for TV readability.
|
// from the default because we use larger than normal icons for TV readability.
|
||||||
|
|||||||
Reference in New Issue
Block a user