Skip to content

Commit

Permalink
Add new Artist view and other things
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain M committed Aug 19, 2019
1 parent 92aaa72 commit e17c8c5
Show file tree
Hide file tree
Showing 33 changed files with 992 additions and 193 deletions.
8 changes: 8 additions & 0 deletions data/com.github.alainm23.byte.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
<binary>com.github.alainm23.byte</binary>
</provides>
​<releases>
<release version="0.1.3" date="2019-08-10">
<description>
<p>Fix some error and performance improvement</p>
<ul>
<li>Now you can update and delete your playlist</li>
</ul>
</description>
</release>
<release version="0.1.2" date="2019-08-10">
<description>
<p>Fix some error and performance improvement</p>
Expand Down
2 changes: 1 addition & 1 deletion data/com.github.alainm23.byte.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<enum id="com.github.alainm23.byte.repeat-mode">
<value nick="off" value="0" />
<value nick="all" value="1" />
<value nick="one" value="2" />
<value nick="one" value="2" />
</enum>

<enum id="com.github.alainm23.byte.tracks-sort-mode">
Expand Down
12 changes: 6 additions & 6 deletions data/resources/byte-album-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ selection {
.quick-find-cancel {
color: @colorAccent;
font-weight: bold;
padding-right: 0px;
}

.queue {
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('com.github.alainm23.byte',
'vala', 'c',
version: '0.1.2')
version: '0.1.3')

gnome = import('gnome')
i18n = import('i18n')
Expand Down
1 change: 1 addition & 0 deletions src/Dialogs/Settings.vala
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public class Dialogs.Settings : Gtk.Dialog {
var settings_04_label = new Gtk.Label (_("Music folder location"));

var library_filechooser = new Gtk.FileChooserButton (_("Select Music Folder…"), Gtk.FileChooserAction.SELECT_FOLDER);
library_filechooser.valign = Gtk.Align.CENTER;

File library_path = File.new_for_uri (Byte.settings.get_string ("library-location"));
library_filechooser.set_current_folder (library_path.get_path ());
Expand Down
11 changes: 10 additions & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class MainWindow : Gtk.Window {
private Views.Playlists playlists_view;
private Views.Favorites favorites_view;
private Views.Playlist playlist_view;
private Views.Artist artist_view;

private Views.Album album_view;

Expand Down Expand Up @@ -53,6 +54,7 @@ public class MainWindow : Gtk.Window {
playlists_view = new Views.Playlists ();
favorites_view = new Views.Favorites ();
playlist_view = new Views.Playlist ();
artist_view = new Views.Artist ();

library_stack.add_named (home_view, "home_view");
library_stack.add_named (albums_view, "albums_view");
Expand All @@ -63,6 +65,7 @@ public class MainWindow : Gtk.Window {
library_stack.add_named (playlists_view, "playlists_view");
library_stack.add_named (favorites_view, "favorites_view");
library_stack.add_named (playlist_view, "playlist_view");
library_stack.add_named (artist_view, "artist_view");

var library_view = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
library_view.pack_start (media_control, false, false, 0);
Expand Down Expand Up @@ -176,7 +179,6 @@ public class MainWindow : Gtk.Window {

home_view.go_artists_view.connect (() => {
library_stack.visible_child_name = "artists_view";
artists_view.get_all_artists ();
});

home_view.go_radios_view.connect (() => {
Expand All @@ -195,7 +197,14 @@ public class MainWindow : Gtk.Window {
quick_find.reveal = !quick_find.reveal_child;
});

artists_view.go_artist.connect ((artist) => {
library_stack.visible_child_name = "artist_view";
artist_view.artist = artist;
});

artist_view.go_back.connect (() => {
library_stack.visible_child_name = "artists_view";
});

Byte.database.reset_library.connect (() => {
main_stack.visible_child_name = "welcome_view";
Expand Down
1 change: 1 addition & 0 deletions src/Objects/Radio.vala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class Objects.Radio : GLib.Object {
public string favicon { get; set; default = ""; }
public string country { get; set; default = ""; }
public string state { get; set; default = ""; }
public string votes { get; set; default = ""; }

public Radio () {
}
Expand Down
Loading

0 comments on commit e17c8c5

Please sign in to comment.