Skip to content

Commit

Permalink
icons page
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Dec 11, 2023
1 parent 1cfdd7b commit 4effcec
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 153 deletions.
2 changes: 1 addition & 1 deletion app/mmstyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class MMStyle: public QObject
QUrl transportationIcon() {return QUrl( "qrc:/Transportation.svg" );}
QUrl waterResourcesIcon() {return QUrl( "qrc:/Water resources.svg" );}
QUrl xTwitterIcon() {return QUrl( "qrc:/X Twitter.svg" );}
QUrl youtubeIcon() {return QUrl( "qrc:/Toutube.svg" );}
QUrl youtubeIcon() {return QUrl( "qrc:/Youtube.svg" );}

QUrl acceptInvitationLogoImage() {return QUrl( "qrc:/AcceptInvitationLogoImage.svg" ); }
QUrl acceptInvitationImage() {return QUrl( "qrc:/AcceptInvitationImage.svg" ); }
Expand Down
17 changes: 13 additions & 4 deletions gallery/qml/IconBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic

import "../../app/qml/components"
import "../app/qml/components"

Column {
spacing: 5
id: root

property var source
property var text
required property var source
required property var text
property bool colorise: false

Label {
text: root.text
Expand All @@ -27,14 +28,22 @@ Column {
Rectangle {
width: 50
height: 50
// color: root.color
border.color: "gray"

MMIcon {
id: icon

width: parent.width
height: parent.height
source: root.source
}


}

Component.onCompleted: {
if (root.colorise) {
icon.color = "black"
}
}
}
Loading

1 comment on commit 4effcec

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.12.495111 just submitted!

Please sign in to comment.