Remove flattr icon and use styled link instead.
This change is mainly driven by Debian declaring the button non-free so it must be removed when distributing OpenSCAD in Debian.
This commit is contained in:
parent
85aa71bb4b
commit
9768a0adc9
4 changed files with 20 additions and 7 deletions
BIN
icons/flattr.png
BIN
icons/flattr.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
|
|
@ -29,7 +29,6 @@
|
||||||
<file>icons/prefs3DView.png</file>
|
<file>icons/prefs3DView.png</file>
|
||||||
<file>icons/prefsEditor.png</file>
|
<file>icons/prefsEditor.png</file>
|
||||||
<file>icons/prefsUpdate.png</file>
|
<file>icons/prefsUpdate.png</file>
|
||||||
<file>icons/flattr.png</file>
|
|
||||||
<file>src/AboutDialog.html</file>
|
<file>src/AboutDialog.html</file>
|
||||||
<file>images/export.png</file>
|
<file>images/export.png</file>
|
||||||
<file>images/axes.png</file>
|
<file>images/axes.png</file>
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,6 @@ public:
|
||||||
AboutDialog(QWidget *) {
|
AboutDialog(QWidget *) {
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
this->setWindowTitle( QString(_("About OpenSCAD")) + " " + openscad_shortversionnumber.c_str());
|
this->setWindowTitle( QString(_("About OpenSCAD")) + " " + openscad_shortversionnumber.c_str());
|
||||||
QUrl flattr_qurl(":icons/flattr.png" );
|
|
||||||
this->aboutText->loadResource( QTextDocument::ImageResource, flattr_qurl );
|
|
||||||
QString tmp = this->aboutText->toHtml();
|
QString tmp = this->aboutText->toHtml();
|
||||||
tmp.replace("__VERSION__", openscad_detailedversionnumber.c_str());
|
tmp.replace("__VERSION__", openscad_detailedversionnumber.c_str());
|
||||||
this->aboutText->setHtml(tmp);
|
this->aboutText->setHtml(tmp);
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,29 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
||||||
|
|
||||||
|
<style type=text/css>
|
||||||
|
body {
|
||||||
|
font: 13pt Arial,sans-serif;
|
||||||
|
}
|
||||||
|
.flattr-link {
|
||||||
|
color: white;
|
||||||
|
background: #88B058;
|
||||||
|
font: bold 14px Helvetica,sans-serif;
|
||||||
|
}
|
||||||
|
.donate-link {
|
||||||
|
color: white;
|
||||||
|
background: dodgerblue;
|
||||||
|
font: bold 14px Helvetica,sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
<body style="font-family:'Arial'; font-size:13pt;">
|
<p align="right">
|
||||||
|
<a class="flattr-link" href="https://flattr.com/submit/auto?user_id=openscad&url=http://openscad.org&title=OpenSCAD&language=&tags=github&category=software"> Flattr this! </a>
|
||||||
<p>
|
<a class="donate-link" href="http://www.openscad.org/community.html"> Donate </a>
|
||||||
<a align=right href="https://flattr.com/submit/auto?user_id=openscad&url=http://openscad.org&title=OpenSCAD&language=&tags=github&category=software"><img align=right src=":icons/flattr.png" /></a>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue