Skip to content

Commit

Permalink
another set of icons
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Dec 11, 2023
1 parent 6e34962 commit 1cfdd7b
Show file tree
Hide file tree
Showing 7 changed files with 417 additions and 33 deletions.
3 changes: 3 additions & 0 deletions app/icons/Youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 42 additions & 17 deletions app/icons/icons.qrc
Original file line number Diff line number Diff line change
@@ -1,34 +1,59 @@
<RCC>
<qresource prefix="/">
<file>Arrow Link Right.svg</file>
<file>Back.svg</file>
<file>Bubble.svg</file>
<file>AcceptInvitationImage.svg</file>
<file>AcceptInvitationLogoImage.svg</file>
<file>Calendar.svg</file>
<file>Hide.svg</file>
<file>Search.svg</file>
<file>Show.svg</file>
<file>X Mark.svg</file>
<file>Error.svg</file>
<file>Archaeology.svg</file>
<file>Arrow Down.svg</file>
<file>Arrow Link Right.svg</file>
<file>Arrow Up.svg</file>
<file>QR Code.svg</file>
<file>Back.svg</file>
<file>Briefcase.svg</file>
<file>Bubble.svg</file>
<file>Calendar.svg</file>
<file>Checkmark.svg</file>
<file>CloseButton.svg</file>
<file>UploadImage.svg</file>
<file>ReachedDataLimitImage.svg</file>
<file>Close.svg</file>
<file>Waiting.svg</file>
<file>CloseButton.svg</file>
<file>Delete.svg</file>
<file>Done.svg</file>
<file>Download.svg</file>
<file>Edit.svg</file>
<file>Electricity.svg</file>
<file>Engineering.svg</file>
<file>Environmental.svg</file>
<file>Error.svg</file>
<file>Facebook.svg</file>
<file>Hide.svg</file>
<file>Info.svg</file>
<file>Linkedin.svg</file>
<file>Mastodon.svg</file>
<file>More.svg</file>
<file>MorePhotos.svg</file>
<file>Mouth.svg</file>
<file>Natural Resources.svg</file>
<file>Other.svg</file>
<file>Others.svg</file>
<file>ProjectButtonMore.svg</file>
<file>QGIS.svg</file>
<file>QR Code.svg</file>
<file>ReachedDataLimitImage.svg</file>
<file>Reddit.svg</file>
<file>Search.svg</file>
<file>Show.svg</file>
<file>Social media.svg</file>
<file>State and Local.svg</file>
<file>Stop.svg</file>
<file>Download.svg</file>
<file>Info.svg</file>
<file>Subscriptions.svg</file>
<file>Sync.svg</file>
<file>MorePhotos.svg</file>
<file>Teacher.svg</file>
<file>Telecommunication.svg</file>
<file>Terms.svg</file>
<file>Tractor.svg</file>
<file>Transportation.svg</file>
<file>UploadImage.svg</file>
<file>Waiting.svg</file>
<file>Water resources.svg</file>
<file>X Mark.svg</file>
<file>X Twitter.svg</file>
<file>Youtube.svg</file>
</qresource>
</RCC>
78 changes: 64 additions & 14 deletions app/mmstyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,38 +75,63 @@ class MMStyle: public QObject
Q_PROPERTY( QColor shadowColor READ shadowColor CONSTANT )

// Icons
Q_PROPERTY( QUrl archaeologyIcon READ archaeologyIcon CONSTANT )
Q_PROPERTY( QUrl arrowDownIcon READ arrowDownIcon CONSTANT )
Q_PROPERTY( QUrl arrowLinkRightIcon READ arrowLinkRightIcon CONSTANT )
Q_PROPERTY( QUrl searchIcon READ searchIcon CONSTANT )
Q_PROPERTY( QUrl arrowUpIcon READ arrowUpIcon CONSTANT )
Q_PROPERTY( QUrl backIcon READ backIcon CONSTANT )
Q_PROPERTY( QUrl briefcaseIcon READ briefcaseIcon CONSTANT )
Q_PROPERTY( QUrl bubbleIcon READ bubbleIcon CONSTANT )
Q_PROPERTY( QUrl calendarIcon READ calendarIcon CONSTANT )
Q_PROPERTY( QUrl showIcon READ showIcon CONSTANT )
Q_PROPERTY( QUrl hideIcon READ hideIcon CONSTANT )
Q_PROPERTY( QUrl xMarkIcon READ xMarkIcon CONSTANT )
Q_PROPERTY( QUrl errorIcon READ errorIcon CONSTANT )
Q_PROPERTY( QUrl arrowUpIcon READ arrowUpIcon CONSTANT )
Q_PROPERTY( QUrl arrowDownIcon READ arrowDownIcon CONSTANT )
Q_PROPERTY( QUrl qrCodeIcon READ qrCodeIcon CONSTANT )
Q_PROPERTY( QUrl checkmarkIcon READ checkmarkIcon CONSTANT )
Q_PROPERTY( QUrl closeButtonIcon READ closeButtonIcon CONSTANT )
Q_PROPERTY( QUrl closeIcon READ closeIcon CONSTANT )
Q_PROPERTY( QUrl waitingIcon READ waitingIcon CONSTANT )
Q_PROPERTY( QUrl deleteIcon READ deleteIcon CONSTANT )
Q_PROPERTY( QUrl doneIcon READ doneIcon CONSTANT )
Q_PROPERTY( QUrl downloadIcon READ downloadIcon CONSTANT )
Q_PROPERTY( QUrl editIcon READ editIcon CONSTANT )
Q_PROPERTY( QUrl electricityIcon READ electricityIcon CONSTANT )
Q_PROPERTY( QUrl engineeringIcon READ engineeringIcon CONSTANT )
Q_PROPERTY( QUrl environmentalIcon READ environmentalIcon CONSTANT )
Q_PROPERTY( QUrl errorIcon READ errorIcon CONSTANT )
Q_PROPERTY( QUrl facebookIcon READ facebookIcon CONSTANT )
Q_PROPERTY( QUrl hideIcon READ hideIcon CONSTANT )
Q_PROPERTY( QUrl infoIcon READ infoIcon CONSTANT )
Q_PROPERTY( QUrl linkedinIcon READ linkedinIcon CONSTANT )
Q_PROPERTY( QUrl mastodonIcon READ mastodonIcon CONSTANT )
Q_PROPERTY( QUrl moreIcon READ moreIcon CONSTANT )
Q_PROPERTY( QUrl morePhotosIcon READ morePhotosIcon CONSTANT )
Q_PROPERTY( QUrl mouthIcon READ mouthIcon CONSTANT )
Q_PROPERTY( QUrl naturalResourcesIcon READ naturalResourcesIcon CONSTANT )
Q_PROPERTY( QUrl otherIcon READ otherIcon CONSTANT )
Q_PROPERTY( QUrl othersIcon READ othersIcon CONSTANT )
Q_PROPERTY( QUrl projectButtonMoreIcon READ projectButtonMoreIcon CONSTANT )
Q_PROPERTY( QUrl qgisIcon READ qgisIcon CONSTANT )
Q_PROPERTY( QUrl qrCodeIcon READ qrCodeIcon CONSTANT )
Q_PROPERTY( QUrl redditIcon READ redditIcon CONSTANT )
Q_PROPERTY( QUrl searchIcon READ searchIcon CONSTANT )
Q_PROPERTY( QUrl showIcon READ showIcon CONSTANT )
Q_PROPERTY( QUrl socialMediaIcon READ socialMediaIcon CONSTANT )
Q_PROPERTY( QUrl stateAndLocalIcon READ stateAndLocalIcon CONSTANT )
Q_PROPERTY( QUrl stopIcon READ stopIcon CONSTANT )
Q_PROPERTY( QUrl subscriptionsIcon READ subscriptionsIcon CONSTANT )
Q_PROPERTY( QUrl syncIcon READ syncIcon CONSTANT )
Q_PROPERTY( QUrl infoIcon READ infoIcon CONSTANT )
Q_PROPERTY( QUrl downloadIcon READ downloadIcon CONSTANT )
Q_PROPERTY( QUrl morePhotosIcon READ morePhotosIcon CONSTANT )
Q_PROPERTY( QUrl teacherIcon READ teacherIcon CONSTANT )
Q_PROPERTY( QUrl telecommunicationIcon READ telecommunicationIcon CONSTANT )
Q_PROPERTY( QUrl termsIcon READ termsIcon CONSTANT )
Q_PROPERTY( QUrl tractorIcon READ tractorIcon CONSTANT )
Q_PROPERTY( QUrl transportationIcon READ transportationIcon CONSTANT )
Q_PROPERTY( QUrl waitingIcon READ waitingIcon CONSTANT )
Q_PROPERTY( QUrl waterResourcesIcon READ waterResourcesIcon CONSTANT )
Q_PROPERTY( QUrl xMarkIcon READ xMarkIcon CONSTANT )
Q_PROPERTY( QUrl xTwitterIcon READ xTwitterIcon CONSTANT )
Q_PROPERTY( QUrl youtubeIcon READ youtubeIcon CONSTANT )

// Images
Q_PROPERTY( QUrl uploadImage READ uploadImage CONSTANT )
Q_PROPERTY( QUrl reachedDataLimitImage READ reachedDataLimitImage CONSTANT )
Q_PROPERTY( QUrl acceptInvitationImage READ acceptInvitationImage CONSTANT )
Q_PROPERTY( QUrl acceptInvitationLogoImage READ acceptInvitationLogoImage CONSTANT )
Q_PROPERTY( QUrl reachedDataLimitImage READ reachedDataLimitImage CONSTANT )
Q_PROPERTY( QUrl uploadImage READ uploadImage CONSTANT )

// Map items
Q_PROPERTY( double mapItemHeight READ mapItemHeight CONSTANT )
Expand Down Expand Up @@ -194,6 +219,31 @@ class MMStyle: public QObject
QUrl infoIcon() {return QUrl( "qrc:/Info.svg" );}
QUrl downloadIcon() {return QUrl( "qrc:/Download.svg" );}
QUrl morePhotosIcon() {return QUrl( "qrc:/MorePhotos.svg" );}
QUrl archaeologyIcon() {return QUrl( "qrc:/Archaeology.svg" );}
QUrl briefcaseIcon() {return QUrl( "qrc:/Briefcase.svg" );}
QUrl electricityIcon() {return QUrl( "qrc:/Electricity.svg" );}
QUrl engineeringIcon() {return QUrl( "qrc:/Engineering.svg" );}
QUrl environmentalIcon() {return QUrl( "qrc:/Environmental.svg" );}
QUrl facebookIcon() {return QUrl( "qrc:/Facebook.svg" );}
QUrl linkedinIcon() {return QUrl( "qrc:/Linkedin.svg" );}
QUrl mastodonIcon() {return QUrl( "qrc:/Mastodon.svg" );}
QUrl mouthIcon() {return QUrl( "qrc:/Mouth.svg" );}
QUrl naturalResourcesIcon() {return QUrl( "qrc:/Natural Resources.svg" );}
QUrl otherIcon() {return QUrl( "qrc:/Other.svg" );}
QUrl othersIcon() {return QUrl( "qrc:/Others.svg" );}
QUrl qgisIcon() {return QUrl( "qrc:/QGIS.svg" );}
QUrl redditIcon() {return QUrl( "qrc:/Reddit.svg" );}
QUrl socialMediaIcon() {return QUrl( "qrc:/Social media.svg" );}
QUrl stateAndLocalIcon() {return QUrl( "qrc:/State and Local.svg" );}
QUrl subscriptionsIcon() {return QUrl( "qrc:/Subscriptions.svg" );}
QUrl teacherIcon() {return QUrl( "qrc:/Teacher.svg" );}
QUrl telecommunicationIcon() {return QUrl( "qrc:/Telecommunication.svg" );}
QUrl termsIcon() {return QUrl( "qrc:/Terms.svg" );}
QUrl tractorIcon() {return QUrl( "qrc:/Tractor.svg" );}
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 acceptInvitationLogoImage() {return QUrl( "qrc:/AcceptInvitationLogoImage.svg" ); }
QUrl acceptInvitationImage() {return QUrl( "qrc:/AcceptInvitationImage.svg" ); }
Expand Down
6 changes: 4 additions & 2 deletions gallery/qml.qrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<RCC>
<qresource prefix="/">
<file>qml/Main.qml</file>
<file>qml/pages/StylePage.qml</file>
<file>qml/pages/MiscPage.qml</file>
<file>qml/pages/IconsPage.qml</file>
<file>qml/IconBox.qml</file>
<file>qml/pages/StylePage.qml</file>
<file>qml/pages/MiscPage.qml</file>
<file>qml/pages/InitialGalleryPage.qml</file>
<file>qml/pages/InputsPage.qml</file>
<file>qml/pages/ButtonsPage.qml</file>
Expand Down
40 changes: 40 additions & 0 deletions gallery/qml/IconBox.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic

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

Column {
spacing: 5
id: root

property var source
property var text

Label {
text: root.text
}

Rectangle {
width: 50
height: 50
// color: root.color
border.color: "gray"

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

}
4 changes: 4 additions & 0 deletions gallery/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ ApplicationWindow {
title: "Style"
source: "StylePage.qml"
}
ListElement {
title: "Icons"
source: "IconsPage.qml"
}
ListElement {
title: "Buttons"
source: "ButtonsPage.qml"
Expand Down
Loading

0 comments on commit 1cfdd7b

Please sign in to comment.