Skip to content

Commit

Permalink
feat: add rounded corners to cover art
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien authored and SoongNoonien committed Nov 1, 2024
1 parent d3deaa2 commit c04e38c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/de.wagnermartin.Plattenalbum.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<gresource prefix="/de/wagnermartin/Plattenalbum">
<file>de.wagnermartin.Plattenalbum.metainfo.xml</file>
<file>ShortcutsWindow.ui</file>
<file>style.css</file>
</gresource>
<gresource prefix="/de/wagnermartin/Plattenalbum/icons/scalable/actions">
<file alias="lyrics-symbolic.svg">lyrics-symbolic.svg</file>
Expand Down
3 changes: 3 additions & 0 deletions data/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.cover {
border-radius: 9px;
}
1 change: 1 addition & 0 deletions src/plattenalbum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,7 @@ class AlbumCover(Gtk.Widget):
def __init__(self):
super().__init__(hexpand=True)
self._picture=Gtk.Picture()
self._picture=Gtk.Picture(css_classes=["cover"])
self._picture.set_parent(self)
self.connect("destroy", lambda *args: self._picture.unparent())

Expand Down

0 comments on commit c04e38c

Please sign in to comment.