[gnome-music] Resized songs list for better viewing in large window.
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Resized songs list for better viewing in large window.
- Date: Tue, 2 Feb 2016 14:01:23 +0000 (UTC)
commit 8da5ba4b9985bdc3d28111de23de3a4f5900ee85
Author: Saiful B. Khan <saifulbkhan gmail com>
Date: Tue Feb 2 18:31:58 2016 +0530
Resized songs list for better viewing in large window.
When the music window is large the list entries appear very far
away from each other making it look bad as well as harder to read.
The Mainview window being used for Songs view was using FILL
alignment to store the song list which automatically spread out
when the window was enlarged. To keep the columns nearer to each
other in large windows, the list widget was aligned to CENTER and
and a dedicated width was assigned to title, album and artist
renderers. Each of those three columns now have a width of 300.
https://bugzilla.gnome.org/show_bug.cgi?id=760171
gnomemusic/view.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 35ac266..bb9b0d5 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -489,6 +489,7 @@ class Songs(ViewContainer):
@log
def _add_list_renderers(self):
list_widget = self.view.get_generic_view()
+ list_widget.set_halign(Gtk.Align.CENTER)
cols = list_widget.get_columns()
cells = cols[0].get_cells()
cells[2].set_visible(False)
@@ -508,7 +509,7 @@ class Songs(ViewContainer):
xalign=0.0,
yalign=0.5,
height=48,
- width=500,
+ width=300,
ellipsize=Pango.EllipsizeMode.END
)
@@ -532,7 +533,7 @@ class Songs(ViewContainer):
artist_renderer = Gd.StyledTextRenderer(
xpad=32,
- width=100,
+ width=300,
ellipsize=Pango.EllipsizeMode.END
)
artist_renderer.add_class('dim-label')
@@ -547,7 +548,7 @@ class Songs(ViewContainer):
type_renderer = Gd.StyledTextRenderer(
xpad=32,
- width=100,
+ width=300,
ellipsize=Pango.EllipsizeMode.END
)
type_renderer.add_class('dim-label')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]