Cosmetic changes on macOS

This commit is contained in:
Victor 2019-10-26 00:48:28 +11:00
parent 0a09634a4a
commit fa6974f0e1
8 changed files with 37 additions and 4 deletions

BIN
app-dmg-background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
dmgicon.icns Normal file

Binary file not shown.

View file

@ -85,11 +85,11 @@ macx {
# ICON = icon-bp.icns
} else {
TARGET = "Entertaining Mines"
# ICON = icon.icns
ICON = icon.icns
}
INCLUDEPATH += "/usr/local/include/the-libs" "/usr/local/include/libentertaining"
LIBS += -L/usr/local/lib -lthe-libs -lentertaining
# QMAKE_POST_LINK += $$quote(cp $${PWD}/dmgicon.icns $${PWD}/app-dmg-background.png $${PWD}/node-appdmg-config*.json $${OUT_PWD}/..)
QMAKE_POST_LINK += $$quote(cp $${PWD}/dmgicon.icns $${PWD}/app-dmg-background.png $${PWD}/node-appdmg-config*.json $${OUT_PWD}/..)
}

View file

@ -13,6 +13,10 @@
<property name="windowTitle">
<string>Entertaining Mines</string>
</property>
<property name="windowIcon">
<iconset resource="resources.qrc">
<normaloff>:/icons/entertaining-mines.svg</normaloff>:/icons/entertaining-mines.svg</iconset>
</property>
<widget class="QWidget" name="centralwidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Ignored" vsizetype="Ignored">
@ -72,6 +76,8 @@
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<resources>
<include location="resources.qrc"/>
</resources>
<connections/>
</ui>

BIN
icon.icns Normal file

Binary file not shown.

View file

@ -37,7 +37,7 @@ int main(int argc, char *argv[])
a.setOrganizationName("theSuite");
a.setOrganizationDomain("");
a.setApplicationIcon(QIcon::fromTheme("entertaining-mines", QIcon(":/icons/icon.svg")));
a.setApplicationIcon(QIcon::fromTheme("entertaining-mines", QIcon(":/icons/entertaining-mines.svg")));
a.setApplicationVersion("0.1");
a.setGenericName(QApplication::translate("main", "Minesweeper"));
// a.setAboutDialogSplashGraphic(a.aboutDialogSplashGraphicFromSvg(":/icons/aboutsplash.svg"));

26
node-appdmg-config.json Normal file
View file

@ -0,0 +1,26 @@
{
"title": "Entertaining Mines",
"icon": "dmgicon.icns",
"background": "app-dmg-background.png",
"icon-size": 48,
"window": {
"size": {
"width": 600,
"height": 420
}
},
"contents": [
{
"x": 125,
"y": 225,
"type": "file",
"path": "Entertaining Mines.app"
},
{
"x": 470,
"y": 225,
"type": "link",
"path": "/Applications"
}
]
}

View file

@ -6,5 +6,6 @@
<file>tiles/flag.svg</file>
<file>tiles/mine.svg</file>
<file>tiles/flagNot.svg</file>
<file>icons/entertaining-mines.svg</file>
</qresource>
</RCC>