Added icon and desktop entry.
This commit is contained in:
parent
ed92c46f95
commit
060132be36
4 changed files with 115 additions and 1 deletions
12
setup.py
12
setup.py
|
@ -1,10 +1,20 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import setuptools
|
import setuptools
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
this_directory = Path(__file__).parent
|
||||||
|
desktop_entry_path = os.path.expanduser("~/.local/share/applications")
|
||||||
|
icon_path = os.path.expanduser("~/.local/share/icons/hicolor/scalable/apps")
|
||||||
|
|
||||||
|
os.makedirs(icon_path, exist_ok=True)
|
||||||
|
|
||||||
|
shutil.copy(f"{this_directory}/wobuzz.desktop", f"{desktop_entry_path}/wobuzz.desktop") # install desktop entry
|
||||||
|
shutil.copy(f"{this_directory}/wobuzz/icon.svg", f"{icon_path}/wobuzz.svg") # install icon
|
||||||
|
|
||||||
# use readme file as long description
|
# use readme file as long description
|
||||||
this_directory = Path(__file__).parent
|
|
||||||
long_description = (this_directory / "README.md").read_text()
|
long_description = (this_directory / "README.md").read_text()
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
|
|
10
wobuzz.desktop
Normal file
10
wobuzz.desktop
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Wobuzz
|
||||||
|
Comment=A simple audio player
|
||||||
|
Keywords=audio;music;player;wobuzz;wobbl;qt;
|
||||||
|
Categories=Multimedia;Media;AudioVideo;Audio;Player;Music;Qt;
|
||||||
|
Exec=wobuzz %F
|
||||||
|
Icon=wobuzz
|
||||||
|
Terminal=false
|
||||||
|
MimeType=audio/mpeg;audio/x-wav;audio/x-flac;audio/x-aiff;audio/x-m4a;audio/x-ms-wma;audio/x-vorbis+ogg;
|
90
wobuzz/icon.svg
Normal file
90
wobuzz/icon.svg
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="1024"
|
||||||
|
height="1024"
|
||||||
|
viewBox="0 0 270.93333 270.93333"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||||
|
sodipodi:docname="logo.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview7"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#ffffff"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="1"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="0.75989759"
|
||||||
|
inkscape:cx="452.0346"
|
||||||
|
inkscape:cy="337.54549"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1023"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="1075"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<g
|
||||||
|
inkscape:label="Ebene 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<path
|
||||||
|
style="fill:#6d758a;fill-opacity:1;stroke:none;stroke-width:0.367058px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m 182.77204,41.828827 c 26.1142,-31.9117865 53.72304,-45.9799062 62.67325,-40.7688755 8.53202,4.9675519 4.87612,41.4855685 -14.96576,76.6633855 -5.53567,9.814241 -55.03746,-26.937222 -47.70749,-35.89451 z"
|
||||||
|
id="path6997"
|
||||||
|
sodipodi:nodetypes="ssss" />
|
||||||
|
<path
|
||||||
|
style="fill:#a0abc7;fill-opacity:1;stroke:none;stroke-width:0.270795px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="M 193.6941,39.141138 C 213.07573,15.739162 233.56666,5.4225418 240.20939,9.2439645 246.54175,12.886834 243.82839,39.666714 229.102,65.46378 224.99349,72.660891 188.25388,45.709818 193.6941,39.141138 Z"
|
||||||
|
id="path6999"
|
||||||
|
sodipodi:nodetypes="ssss" />
|
||||||
|
<path
|
||||||
|
style="fill:#6d758a;fill-opacity:1;stroke:none;stroke-width:0.367058px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="M 88.161294,41.828827 C 62.047094,9.9170405 34.438258,-4.1510792 25.488049,1.0599515 16.95603,6.0275034 20.611925,42.54552 40.453804,77.723337 c 5.535677,9.814241 55.03746,-26.937222 47.70749,-35.89451 z"
|
||||||
|
id="path447"
|
||||||
|
sodipodi:nodetypes="ssss" />
|
||||||
|
<path
|
||||||
|
style="fill:#a0abc7;fill-opacity:1;stroke:none;stroke-width:0.270795px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="M 77.239241,39.141138 C 57.857608,15.739162 37.366675,5.4225418 30.723942,9.2439645 24.391585,12.886834 27.104944,39.666714 41.831339,65.46378 45.939849,72.660891 82.679453,45.709818 77.239241,39.141138 Z"
|
||||||
|
id="path2506"
|
||||||
|
sodipodi:nodetypes="ssss" />
|
||||||
|
<circle
|
||||||
|
style="fill:#141414;fill-opacity:1;stroke:none;stroke-width:0.338083;stroke-opacity:1"
|
||||||
|
id="path234"
|
||||||
|
cx="135.46666"
|
||||||
|
cy="151.87083"
|
||||||
|
r="119.0625" />
|
||||||
|
<circle
|
||||||
|
style="fill:#ffbf00;fill-opacity:1;stroke:none;stroke-width:0.262955;stroke-opacity:1"
|
||||||
|
id="circle2604"
|
||||||
|
cx="135.46666"
|
||||||
|
cy="151.87083"
|
||||||
|
r="92.604164" />
|
||||||
|
<circle
|
||||||
|
style="fill:#141414;fill-opacity:1;stroke:none;stroke-width:0.112695;stroke-opacity:1"
|
||||||
|
id="circle2602"
|
||||||
|
cx="135.46666"
|
||||||
|
cy="151.87083"
|
||||||
|
r="39.6875" />
|
||||||
|
</g>
|
||||||
|
<metadata
|
||||||
|
id="metadata344">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="" />
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 3.6 KiB |
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
from PyQt6.QtCore import Qt
|
from PyQt6.QtCore import Qt
|
||||||
|
from PyQt6.QtGui import QIcon
|
||||||
from PyQt6.QtWidgets import QMainWindow, QMenu
|
from PyQt6.QtWidgets import QMainWindow, QMenu
|
||||||
from .track_control import TrackControl
|
from .track_control import TrackControl
|
||||||
from .settings import Settings
|
from .settings import Settings
|
||||||
|
@ -12,7 +13,10 @@ class MainWindow(QMainWindow):
|
||||||
|
|
||||||
self.app = app
|
self.app = app
|
||||||
|
|
||||||
|
self.icon = QIcon(f"{self.app.utils.wobuzz_location}/icon.svg")
|
||||||
|
|
||||||
self.setWindowTitle("Wobuzz")
|
self.setWindowTitle("Wobuzz")
|
||||||
|
self.setWindowIcon(self.icon)
|
||||||
|
|
||||||
self.menu_bar = self.menuBar()
|
self.menu_bar = self.menuBar()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue